aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout/anb-whitespace.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-31 18:00:28 +0100
committerbptato <nincsnevem662@gmail.com>2024-10-31 18:38:16 +0100
commit2fa73721c6ddaa3a497d58f83e987e75194f300c (patch)
tree2ad3d9f9bc99b503f753395f9b4a19b38b28e448 /test/layout/anb-whitespace.html
parent8782fc0591b9aa72a4b61885cc2520afa2b60477 (diff)
downloadchawan-2fa73721c6ddaa3a497d58f83e987e75194f300c.tar.gz
layout: refactor flow and fix some bugs in the process
* factor out `margin' field from box state * get rid of RootInlineFragment * `nested' -> `children' * get rid of repositionChildren pass; now we handle relative positioning and -cha-center/-cha-right separately * cha-center, cha-right no longer applies to floats * use consistent naming scheme for tests * fix float bottom margin strut not being flushed * fix inline floats changing non-fit-content width
Diffstat (limited to 'test/layout/anb-whitespace.html')
-rw-r--r--test/layout/anb-whitespace.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/layout/anb-whitespace.html b/test/layout/anb-whitespace.html
new file mode 100644
index 00000000..716173a8
--- /dev/null
+++ b/test/layout/anb-whitespace.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+ul li:nth-child( 1n ) {
+ color: blue
+}
+</style>
+<ul>
+<li>hello
+<li>world
+<li>how
+<li>are
+<li>you