diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/container-queries/dialog-backdrop-create.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/container-queries/dialog-backdrop-create.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/container-queries/dialog-backdrop-create.html b/testing/web-platform/tests/css/css-contain/container-queries/dialog-backdrop-create.html new file mode 100644 index 0000000000..f72bb69f68 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/container-queries/dialog-backdrop-create.html @@ -0,0 +1,30 @@ +<!doctype html> +<title>CSS Container Queries Test: ::backdrop appearing conditionally on dialog container</title> +<link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-queries"> +<link rel="match" href="top-layer-dialog-backdrop-ref.html"> +<style> + html { + /* Prevent multiple layout passes due to scrollbars */ + overflow: hidden; + background: red; + } + dialog { + container-type: size; + width: 100px; + height: 100px; + visibility: hidden; + } + dialog::backdrop { + display: none; + background-color: green; + } + @container (width > 1px) { + dialog::backdrop { + display: block; + } + } +</style> +<dialog id="dialog"></dialog> +<script> + dialog.showModal(); +</script> |