mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Don't generate ::before/::after for BR elements
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.
This commit is contained in:
parent
a7c1af08ca
commit
80a78c4deb
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/awesomekling
Commit: 80a78c4deb
Pull-request: https://github.com/SerenityOS/serenity/pull/21079
4 changed files with 34 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
|||
<!doctype html><style>
|
||||
body ::before { content: "+"; }
|
||||
</style><body><p>P should generate a ::before pseudo.</p><br>BR should not!
|
Loading…
Add table
Add a link
Reference in a new issue