diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-backgrounds/background-336.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-backgrounds/background-336.html')
-rw-r--r-- | testing/web-platform/tests/css/css-backgrounds/background-336.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/background-336.html b/testing/web-platform/tests/css/css-backgrounds/background-336.html new file mode 100644 index 0000000000..b921732ca8 --- /dev/null +++ b/testing/web-platform/tests/css/css-backgrounds/background-336.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Backgrounds and Borders Test: background shorthand - two <box> values</title> + <link rel="author" title="Intel" href="http://www.intel.com" /> + <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background" /> + <meta name="flags" content="dom" /> + <meta name="assert" content="Check if two <box> values are present, then the first sets 'background-origin' and the second 'background-clip'" /> + <style> + #test { + background: border-box padding-box; + } + </style> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + </head> + <body> + <div id="log"></div> + <div id="test"></div> + <script> + var cs = getComputedStyle(document.getElementById("test"), null); + + test(function() { + assert_equals(cs.getPropertyValue("background-origin"), + "border-box", "background specified value for background-origin"); + }, "background_specified_box_two_origin"); + + test(function() { + assert_equals(cs.getPropertyValue("background-clip"), + "padding-box", "background specified value for background-clip"); + }, "background_specified_box_two_clip"); + </script> + </body> +</html> |