Files
ladybird/Tests/LibWeb/Layout/input/pseudo-element-position-absolute.html
Jelle Raaijmakers c845e2cef7 LibWeb: Don't join anonymous pseudo wrappers for block node insertion
This can happen if pseudo elements are absolutely positioned, they need
the nearest non-inline parent to determine their position.
2025-11-11 10:49:49 +01:00

15 lines
234 B
HTML

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