diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/contain-inline-size-flexitem.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/contain-inline-size-flexitem.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-inline-size-flexitem.html b/testing/web-platform/tests/css/css-contain/contain-inline-size-flexitem.html new file mode 100644 index 0000000000..12f60fadac --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-inline-size-flexitem.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<title>contain:inline-size on flexitem</title> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property"> +<link rel="help" href="https://drafts.csswg.org/css-contain-3/#containment-inline-size"> +<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width:100px; height:100px; background:red;"> + <div style="display:flex;"> + <div style="contain:inline-size; flex-basis:100px; background:green;"> + <div style="width:300px; height:100px;"></div> + </div> + </div> +</div> |