mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 11:25:07 +00:00

We shouldn't be putting generated pseudo elements inside elements that can't have children in the first place. This patch fixes two issues: - We stop generating pseudo elements for layout nodes that can't have children anyway. - We mark Layout::BreakNode as not being able to have children.
3 lines
135 B
HTML
3 lines
135 B
HTML
<!doctype html><style>
|
|
body ::before { content: "+"; }
|
|
</style><body><p>P should generate a ::before pseudo.</p><br>BR should not!
|