mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
80a78c4deb
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!
|