diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-31 16:57:23 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-31 16:57:48 +0200 |
commit | ee94caf0628730135c8bd4b46dc913a50d7ae2b6 (patch) | |
tree | d5102d02b605b0f85b91d350876c9c9d676bab83 /test | |
parent | 27a39add498a9b1dca790c11a14cc3320cce2e31 (diff) | |
download | chawan-ee94caf0628730135c8bd4b46dc913a50d7ae2b6.tar.gz |
layout: line box sizing fixes
* do not use inline block computed values for wrapper fragment * fix minimum line box height calculation
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/colored-inline-block-squares.color.expected | 36 | ||||
-rw-r--r-- | test/layout/colored-inline-block-squares.html | 13 | ||||
-rw-r--r-- | test/layout/line-height-change.expected | 4 | ||||
-rw-r--r-- | test/layout/line-height-change.html | 2 |
4 files changed, 55 insertions, 0 deletions
diff --git a/test/layout/colored-inline-block-squares.color.expected b/test/layout/colored-inline-block-squares.color.expected new file mode 100644 index 00000000..1e805e94 --- /dev/null +++ b/test/layout/colored-inline-block-squares.color.expected @@ -0,0 +1,36 @@ + + + +one [48;2;0;0;255m? [49m [48;2;0;0;255m? [49m ?? + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + [48;2;0;0;255m [49m [48;2;0;0;255m [49m + + [48;2;0;128;0m? [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49m + [48;2;0;128;0m [49mw + [48;2;255;0;0m? [49m w two + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + [48;2;255;0;0m [49m + diff --git a/test/layout/colored-inline-block-squares.html b/test/layout/colored-inline-block-squares.html new file mode 100644 index 00000000..47a3acd3 --- /dev/null +++ b/test/layout/colored-inline-block-squares.html @@ -0,0 +1,13 @@ +<div>one +<div style="display: inline-block; margin: 2ch; width: 20ch; height: 20ch; background-color: blue"> +?<br> +</div> +<div style="display: inline-block; margin: 6ch; width: 20ch; height: 20ch; background-color: blue"> +?<br> +</div> +?? +<div style="display: inline-block; margin-left: 5ch; margin-top: 1em; width: 20ch; background-color: green">?<br><br><br><br><br><br><br><br><br><br><br></div>w +<br> +<div style="display: inline-block; margin-left: 6ch; width: 20ch; height: 20ch; background-color: red">?</div> +w two +</div> diff --git a/test/layout/line-height-change.expected b/test/layout/line-height-change.expected new file mode 100644 index 00000000..ec17045e --- /dev/null +++ b/test/layout/line-height-change.expected @@ -0,0 +1,4 @@ + + +one +two diff --git a/test/layout/line-height-change.html b/test/layout/line-height-change.html new file mode 100644 index 00000000..1cae1f85 --- /dev/null +++ b/test/layout/line-height-change.html @@ -0,0 +1,2 @@ +<span style="line-height: 2em"><br>one</span><br> +two |