diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-30 12:59:55 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-30 13:08:11 +0200 |
commit | ed2d399f716a3a0fb9175857781b0f70b54db032 (patch) | |
tree | 207cce94744e98a2aca996310776d0b2fba88698 /test | |
parent | 96d3d12445c9a2e3bb00c0c242bdec6d37b11084 (diff) | |
download | chawan-ed2d399f716a3a0fb9175857781b0f70b54db032.tar.gz |
layout: flex padding/margin fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/flex-main-padding-border-box.color.expected | 2 | ||||
-rw-r--r-- | test/layout/flex-main-padding-border-box.html | 6 | ||||
-rw-r--r-- | test/layout/flex-main-padding-margin.expected | 1 | ||||
-rw-r--r-- | test/layout/flex-main-padding-margin.html | 10 |
4 files changed, 19 insertions, 0 deletions
diff --git a/test/layout/flex-main-padding-border-box.color.expected b/test/layout/flex-main-padding-border-box.color.expected new file mode 100644 index 00000000..29e30647 --- /dev/null +++ b/test/layout/flex-main-padding-border-box.color.expected @@ -0,0 +1,2 @@ +[48;2;255;0;0mtest [49m + diff --git a/test/layout/flex-main-padding-border-box.html b/test/layout/flex-main-padding-border-box.html new file mode 100644 index 00000000..76b21bb4 --- /dev/null +++ b/test/layout/flex-main-padding-border-box.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<style>* { box-sizing: border-box }</style> +<div style="display: flex; margin-right: -2ch; margin-left: -2ch"> +<div style="flex-grow: 0; flex-shrink: 0; flex-basis: 100%; padding-right: 2ch; padding-left: 2ch"> +<div style="background: red"> +test diff --git a/test/layout/flex-main-padding-margin.expected b/test/layout/flex-main-padding-margin.expected new file mode 100644 index 00000000..e46c0088 --- /dev/null +++ b/test/layout/flex-main-padding-margin.expected @@ -0,0 +1 @@ + test test 2 diff --git a/test/layout/flex-main-padding-margin.html b/test/layout/flex-main-padding-margin.html new file mode 100644 index 00000000..44d42fe4 --- /dev/null +++ b/test/layout/flex-main-padding-margin.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<body> +<div style="display: flex; padding: 1ch 1em"> +<span style="margin-right: 10ch"> +test +</span> +<div style="flex-grow: 1"> +</div> +<div> +test 2 |