ladybird/Tests/LibWeb/Layout/input/pseudo-element-with-display-block.html
Jelle Raaijmakers ac829cf60a LibWeb: Hoist anonymous wrappers out of parent inline nodes
When we generate pseudo elements, we create anonymous wrappers that
might end up in an InlineNode, even if they have `display: block` set.
This causes them not to be rendered.

Do not rely on inline continuation logic for these anonymous wrappers,
but rather find the first layout parent that's not an InlineNode and
insert it into that.

Fixes #5042.
2025-11-11 10:49:49 +01:00

11 lines
157 B
HTML

<!DOCTYPE html>
<style>
span::after {
background: green;
content: "";
display: block;
height: 50px;
width: 50px;
}
</style>
<span>foobar