mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00

The <br> element will produce a special LayoutBreak node in the layout tree, which forces a break in the line layout whenever encountered. This patch also makes LayoutBlock use the current line-height as the minimum effective height for each line box. This ensures that having multiple <br> elements in a row doesn't create 0-height line boxes.
14 lines
270 B
HTML
14 lines
270 B
HTML
<html>
|
|
<head><title>BR element test</title></head>
|
|
<body>
|
|
Hello world<br>
|
|
This is<br><br>
|
|
a test page<br>
|
|
for<br>
|
|
the<br>
|
|
<br>
|
|
BR element!
|
|
<br><br><br><br>
|
|
Does it work?
|
|
</body>
|
|
</html>
|