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-image-slice-007.htm | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.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-image-slice-007.htm')
-rw-r--r-- | testing/web-platform/tests/css/css-backgrounds/border-image-slice-007.htm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/border-image-slice-007.htm b/testing/web-platform/tests/css/css-backgrounds/border-image-slice-007.htm new file mode 100644 index 0000000000..7666444ce5 --- /dev/null +++ b/testing/web-platform/tests/css/css-backgrounds/border-image-slice-007.htm @@ -0,0 +1,52 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Test: The 'border-image-slice' property with the 'fill' keyword</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> + <!-- + Test rehabilitated by GĂ©rard Talbot + 2020-05-27 and 2020-09-28 + --> + <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-image-slice"> + <link rel="match" href="reference/border-image-slice-007-ref.html"> + <meta name="fuzzy" content="0-35;0-1250"> + <meta name="assert" content="This test checks that the 'fill' keyword, if present, causes the middle part of the border-image to be preserved."> + <style> + div + { + background-color: orange; + border-color: red; + border-style: double; + border-width: 40px; + border-image-slice: 40% 30% 20% 10% fill; + /* + The original test was using 'border-image-slice: 40% 15% 20% 5% fill'. + */ + border-image-source: url("support/9grid40-30-20-10-green.png"); + /* + The top side uses 3 blue borders of 24px wide interleaved with 2 + transparent areas of 24px wide. + So: 5 times 24px == 120px which is 40% of 300px + + The right side uses 3 blue borders of 18px wide interleaved with 2 + transparent areas of 18px wide. + So: 5 times 18px == 90px which is 30% of 300px + + The bottom side uses 3 blue borders of 4px wide interleaved with 2 + transparent areas of 12px wide. + So: 5 times 12px == 60px which is 20% of 300px + + The left side uses 3 blue borders of 6px wide interleaved with 2 + transparent areas of 6px wide. + So: 5 times 6px == 30px which is 10% of 300px + */ + height: 100px; + margin: 50px; + width: 200px; + } + </style> + + <p>Test passes if there is a filled green rectangle inside 3 blue borders interleaved with 2 orange borders and <strong>no red</strong>. + + <div></div> |