1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibWeb: Don't justify text lines that end in a forced break

These are treated the same as the last line in a block, per CSS-TEXT-3.
This commit is contained in:
Andreas Kling 2023-06-10 15:49:17 +02:00
parent 358a4fe3cb
commit 79d2c9f3e8
6 changed files with 106 additions and 12 deletions

View file

@ -0,0 +1,14 @@
<!doctype html><style>
div {
text-align: justify;
border: 1px solid black;
width: 100px;
height: 100px;
}
</style><div>
foo bar baz
foo bar baz<br>
foo bar baz
foo bar baz
foo bar baz<br>
foo bar baz