about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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>