From 17bf0e843084712d9a914868ec44896f48d9d13a Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 11 Jun 2024 00:40:15 +0200 Subject: cssvalues: add "clear" to table wrapper box this one is weird but I'm sure the standard is technically right --- src/css/cssvalues.nim | 4 +++- test/layout/float-clear-table.expected | 2 ++ test/layout/float-clear-table.html | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/layout/float-clear-table.expected create mode 100644 test/layout/float-clear-table.html 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 @@ + +
test
+
test
-- cgit 1.4.1-2-gfad0