ladybird/Tests/LibWeb/Layout/input/br-should-not-generate-pseudo-before.html
Andreas Kling 80a78c4deb 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.
2023-09-14 21:46:28 +02:00

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!