about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-11 00:40:15 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-11 00:46:34 +0200
commit17bf0e843084712d9a914868ec44896f48d9d13a (patch)
tree4bafa32869cd5451090267005d8d81fded951f2f
parent48be38b8d04b9ca0c6796e259d762e4533d9a458 (diff)
downloadchawan-17bf0e843084712d9a914868ec44896f48d9d13a.tar.gz
cssvalues: add "clear" to table wrapper box
this one is weird but I'm sure the standard is technically right
-rw-r--r--src/css/cssvalues.nim4
-rw-r--r--test/layout/float-clear-table.expected2
-rw-r--r--test/layout/float-clear-table.html3
3 files changed, 8 insertions, 1 deletions
diff --git a/src/css/cssvalues.nim b/src/css/cssvalues.nim
index e3a09a39..1d0f6425 100644
--- a/src/css/cssvalues.nim
+++ b/src/css/cssvalues.nim
@@ -1593,7 +1593,9 @@ func splitTable*(computed: CSSComputedValues):
     # wrapper & actual table layouts share the same sizing from the wrapper,
     # so we must add them here.
     cptPaddingLeft, cptPaddingRight, cptPaddingTop, cptPaddingBottom,
-    cptWidth, cptHeight, cptBoxSizing
+    cptWidth, cptHeight, cptBoxSizing,
+    # no clue why this isn't included in the standard
+    cptClear
   }
   for prop in CSSPropertyType:
     if prop in props:
diff --git a/test/layout/float-clear-table.expected b/test/layout/float-clear-table.expected
new file mode 100644
index 00000000..bebdf668
--- /dev/null
+++ b/test/layout/float-clear-table.expected
@@ -0,0 +1,2 @@
+                                                                            test
+                                                                            test
diff --git a/test/layout/float-clear-table.html b/test/layout/float-clear-table.html
new file mode 100644
index 00000000..6e396fd7
--- /dev/null
+++ b/test/layout/float-clear-table.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<div style="display: table; clear: right; float: right">test</div>
+<div style="display: table; clear: right; float: right">test</div>
doc/colorschemes.txt?h=v1.9.0b2&id=efdc7b16e9f422f2d95271e6d4bf64dd9a03ea33'>efdc7b16 ^
a2853ab6 ^
f597489c ^
efdc7b16 ^
29b05d00 ^


efdc7b16 ^
f597489c ^


efdc7b16 ^

a8f9cf2c ^

efdc7b16 ^






f597489c ^
efdc7b16 ^




23905709 ^
efdc7b16 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92