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/css-backgrounds/scroll-positioned-multiple-background-images.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/css-backgrounds/scroll-positioned-multiple-background-images.html')
-rw-r--r-- | testing/web-platform/tests/css/css-backgrounds/scroll-positioned-multiple-background-images.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/scroll-positioned-multiple-background-images.html b/testing/web-platform/tests/css/css-backgrounds/scroll-positioned-multiple-background-images.html new file mode 100644 index 0000000000..a9ca550ce3 --- /dev/null +++ b/testing/web-platform/tests/css/css-backgrounds/scroll-positioned-multiple-background-images.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>CSS Test: Scroll multiple background images that are positioned</title> +<link rel="author" title="Google" href="http://www.google.com/" /> +<link rel="match" href="reference/60x60-green-background.html"> +<link rel="help" href="http://www.w3.org/TR/css3-background/#layering"> +<meta name="flags" content="dom image scroll" /> +<meta name="assert" content="When multiple background images are positioned at (0px, 0px) and (0, 60px) of each 60px by 60px in a scrollable element, +and the element is scrolled to (0, 60px), only the second image is shown." /> +<style type="text/css"> + +#container { + width: 200px; + height: 200px; + overflow: hidden; +} + +#element-with-attachment-scroll { + width: 500px; + height: 500px; + background-image: url('/css/support/60x60-red.png'), url('support/60x60-green.png'); + background-position: 0 0, 0 60px; + background-repeat: no-repeat; +} + +</style> +</head> +<body> +<div id="container"><div id="element-with-attachment-scroll"><br></div></div> +<script> +document.getElementById('container').scrollTop = 60; +</script> +</body> +</html> |