diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html')
-rw-r--r-- | testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html b/testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html new file mode 100644 index 0000000000..6f99f364e6 --- /dev/null +++ b/testing/web-platform/tests/css/filter-effects/filtered-block-is-container.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Filter: Filtered block establishes a containing block.</title> +<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> +<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty"> +<link rel="match" href="filtered-block-is-container-ref.html"> + +<style> +#scroller { + width: 500px; + height: 500px; + overflow: scroll +} +.spacer { + width: 1000px; + height: 500px; + background-color: lightgreen; +} +#filter { + /* no-op filter */ + filter: blur(0px); + width: 100px; + height: 50px; + background-color: lightblue; +} +#fixed, #absolute { + width: 100px; + height: 100px; +} +#fixed { + position: fixed; + top: 100px; + left: 150px; + background-color: green; +} +#absolute { + position: absolute; + top: 200px; + left: 300px; + background-color: blue; +} +</style> + +<div id="scroller"> + <div class="spacer"> + </div> + <div id="filter"> + <div id="fixed"></div> + <div id="absolute"></div> + </div> + <div class="spacer"> + </div> +</div> + +<script> +window.onload = function() { + document.getElementById("scroller").scrollTo(50, 250); +} +</script> + + |