diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-11 00:40:15 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-11 00:46:34 +0200 |
commit | 17bf0e843084712d9a914868ec44896f48d9d13a (patch) | |
tree | 4bafa32869cd5451090267005d8d81fded951f2f | |
parent | 48be38b8d04b9ca0c6796e259d762e4533d9a458 (diff) | |
download | chawan-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.nim | 4 | ||||
-rw-r--r-- | test/layout/float-clear-table.expected | 2 | ||||
-rw-r--r-- | test/layout/float-clear-table.html | 3 |
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> |