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/border-radius-clip-002.htm | |
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/border-radius-clip-002.htm')
-rw-r--r-- | testing/web-platform/tests/css/css-backgrounds/border-radius-clip-002.htm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/border-radius-clip-002.htm b/testing/web-platform/tests/css/css-backgrounds/border-radius-clip-002.htm new file mode 100644 index 0000000000..759bd5ce48 --- /dev/null +++ b/testing/web-platform/tests/css/css-backgrounds/border-radius-clip-002.htm @@ -0,0 +1,60 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Background is clipped to the curve of the content-box when 'background-clip: content-box'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"> + <link rel="match" href="reference/border-radius-clip-002-ref.htm"> + <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#corner-clipping"> + <meta name="assert" content="Background is clipped to the curve of the content-box when 'background-clip: content-box'"> + <meta name=fuzzy content="0-70;0-50"> + <style type="text/css"> + #test-base + { + width: 98px; + height: 98px; + border: 10px double black; + padding: 11px; + border-radius: 40px; + background: red url(support/swatch-red.png); + background-clip: content-box; + } + #reference-cover + { + margin: -120px 0 40px 20px; + width: 100px; + height: 100px; + border-radius: 20px; + background-color: black; + } + + #reference-base + { + width: 98px; + height: 98px; + margin-top: 62px; + margin-left: 20px; + border-radius: 20px; + background: red url(support/swatch-red.png); + } + #test-cover + { + margin-top: -120px; + border: 10px double black; + padding: 10px; + width: 100px; + height: 100px; + border-radius: 40px; + background-color: black; + background-clip: content-box; + } + </style> + </head> + <body> + <p>Test passes if there is no red visible on the page.</p> + <div id="test-base"></div> + <div id="reference-cover"></div> + <div id="reference-base"></div> + <div id="test-cover"></div> + </body> +</html> |