summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html
parentInitial commit. (diff)
downloadfirefox-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/background-attachment-local.html')
-rw-r--r--testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html b/testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html
new file mode 100644
index 0000000000..821c1c5445
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/background-attachment-local.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>
+ CSS Test: 'Background-attachment' with value 'local'
+ </title>
+ <link rel="author" title="Melanie Archer" href="mailto:job@twobanjos.com" />
+ <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-attachment" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="If 'background-attachment' is given the value 'local,' then the background image scrolls with the containing element's content when the element's content is scrolled" />
+<style type="text/css">
+ #test-container {
+ background-attachment: local;
+ background-image: url("support/cat.png");
+ background-repeat: no-repeat;
+ border: 1px solid blue;
+ height: 250px;
+ overflow: scroll;
+ padding: 100px 0 0;
+ width: 250px;
+ }
+
+ </style>
+ </head>
+ <body>
+ <p>
+ Test passes if the image of the cat scrolls out of view when the blue-bordered containing block is scrolled.
+ </p>
+ <div id="test-container">
+ Cupcake ipsum dolor sit. Amet applicake bonbon chocolate cake ice cream. Bear claw tootsie roll cotton candy biscuit. Sweet roll chupa chups gingerbread sugar plum icing muffin biscuit. Chocolate cake wafer pastry tart macaroon danish topping ice cream. Jujubes liquorice candy canes faworki. Jujubes cake caramels faworki pie cake sweet roll. Tiramisu sesame snaps candy cheesecake brownie souffle biscuit. Danish chupa chups donut. Donut tart marshmallow biscuit lollipop chupa chups jelly beans faworki. Sugar plum wafer faworki marshmallow brownie ice cream cotton candy marshmallow marzipan. Cheesecake gummi bears cupcake sweet croissant cookie chocolate bar sweet roll. Halvah cupcake carrot cake souffle carrot cake chocolate cake pastry gummi bears muffin. Sweet roll candy gingerbread dessert tart. Pastry oat cake jelly beans.
+ </div>
+ </body>
+</html>