1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 23:35:07 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/inline-node-not-inserted-into-generated-box.html
Sam Atkins 1132c858e9 LibWeb: Stop inserting inline nodes into a generated wrapper box
493dd5d93c caused the `::before`
pseudo-element node to be inserted before the element's content, which
caused issues with how we determine where to insert inline nodes into
the layout tree. At the time, I noticed the issue with contents of flex
containers, and prevented them from merging into a `::before` box.

However, a similar situation happens when we're not in a flex container,
but the pseudo-element has `display: block`. This commit fixes that
situation by using the same logic in both places, so a similar mistake
can't be made again.

This fixes the tab text being invisible on GitHub project pages. :^)
2023-10-11 07:05:23 +02:00

6 lines
114 B
HTML

<!DOCTYPE html><style>
body::before {
content: "foo";
display: block;
}
</style><body>bar