1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 18:45:08 +00:00
serenity/Tests/LibWeb/Layout/input/single-br-inline-layout.html
Mathis Wiehl 9927dab993 LibWeb: Don't drop single <br/> lines
Previously, when having inline contexts consisting of just a `<br/>`
tag, we would not create a line box.

Ensure that there is always a line box when a line is explicitly being
broken and also ensure it won't be trimmed due to being empty.

This will a fix a number of sites that use `<br>` tags for layouts
between block elements (even though the spec says they shouldn't).
2023-03-16 08:40:29 +00:00

15 lines
No EOL
259 B
HTML

<style>
body {
font-family: 'SerenitySans';
}
#begin {
height: 2px;
background-color: blue;
}
#end {
height: 2px;
background-color: red;
}
</style><div id="begin"></div><br><div id="end"></div>