aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-09 16:06:51 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-09 17:04:37 +0100
commitad28cc7559430baef7b219f344fff411994881a3 (patch)
tree83cc6a5b5c3173d8a634edcbc15a8cf1250a9c1b /test
parent586ff631ce66c4e6b87446555cbb67d49e66be48 (diff)
downloadchawan-ad28cc7559430baef7b219f344fff411994881a3.tar.gz
layout: refactor tree building phase
* remove inlineGroup - it was completely pointless now, and was the cause of some whitespace collapsing bugs * fix a float bug made visible by the above change * fix non-standard list item counter behavior
Diffstat (limited to 'test')
-rw-r--r--test/layout/absolute-in-absolute.color.expected2
-rw-r--r--test/layout/clear-on-new-bfc-only-clears-in-parent.expected2
-rw-r--r--test/layout/inline-float-before-and-after-clear.expected2
-rw-r--r--test/layout/position-absolute-block-in-inline.color.expected2
-rw-r--r--test/layout/position-absolute-margins.expected2
-rw-r--r--test/layout/quotes.expected7
-rw-r--r--test/layout/quotes.html17
7 files changed, 29 insertions, 5 deletions
diff --git a/test/layout/absolute-in-absolute.color.expected b/test/layout/absolute-in-absolute.color.expected
index 0e5ede43..ae9778ec 100644
--- a/test/layout/absolute-in-absolute.color.expected
+++ b/test/layout/absolute-in-absolute.color.expected
@@ -1,5 +1,5 @@
test
-test
+test
test2
test2
test2
diff --git a/test/layout/clear-on-new-bfc-only-clears-in-parent.expected b/test/layout/clear-on-new-bfc-only-clears-in-parent.expected
index c9c94361..4128fa09 100644
--- a/test/layout/clear-on-new-bfc-only-clears-in-parent.expected
+++ b/test/layout/clear-on-new-bfc-only-clears-in-parent.expected
@@ -3,7 +3,7 @@ test
-testtest
+testtest
test
diff --git a/test/layout/inline-float-before-and-after-clear.expected b/test/layout/inline-float-before-and-after-clear.expected
index c66997b7..97fd6962 100644
--- a/test/layout/inline-float-before-and-after-clear.expected
+++ b/test/layout/inline-float-before-and-after-clear.expected
@@ -1,4 +1,4 @@
-leftinline
+leftinline
clear
block
float
diff --git a/test/layout/position-absolute-block-in-inline.color.expected b/test/layout/position-absolute-block-in-inline.color.expected
index 839256f8..4a74f469 100644
--- a/test/layout/position-absolute-block-in-inline.color.expected
+++ b/test/layout/position-absolute-block-in-inline.color.expected
@@ -1,7 +1,7 @@
absolute 1
line absabsolute 2
absolute 3
-line four
+line four
absolute 4
absolute 5
line sixabsolute 6
diff --git a/test/layout/position-absolute-margins.expected b/test/layout/position-absolute-margins.expected
index 398aea9d..3ccca807 100644
--- a/test/layout/position-absolute-margins.expected
+++ b/test/layout/position-absolute-margins.expected
@@ -1,3 +1,3 @@
-test
+test
with top/left
without top/left
diff --git a/test/layout/quotes.expected b/test/layout/quotes.expected
index 741b1b18..dab25beb 100644
--- a/test/layout/quotes.expected
+++ b/test/layout/quotes.expected
@@ -1 +1,8 @@
test \test/ \atestb/
+1inc
+2inc
+3inc
+4inc
+5inc
+6inc
+7inc
diff --git a/test/layout/quotes.html b/test/layout/quotes.html
index 80aa88f1..8425646f 100644
--- a/test/layout/quotes.html
+++ b/test/layout/quotes.html
@@ -1,3 +1,20 @@
+<!DOCTYPE html>
+<style>
+div { quotes: "1" "" "2" "" "3" "" "4" "" "5" "" "6" "" "7" "" }
+#inc::before { content: open-quote }
+#dec::before { content: close-quote }
+</style>
<q style="quotes: none">test</q>
<q style="quotes: '\\' '/'">test</q>
<q style="quotes: '\\' '/' 'a' 'b'"><q>test</q></q>
+<div>
+<span>
+<div id=inc>inc</div>
+<div id=inc>inc</div>
+<div id=inc>inc</div>
+<div id=inc>inc</div>
+</span>
+<div id=inc>inc</div>
+<div id=inc>inc</div>
+</div>
+<div id=inc>inc</div>