summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht
parentInitial commit. (diff)
downloadfirefox-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-image-width-006.xht')
-rw-r--r--testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht b/testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht
new file mode 100644
index 0000000000..aa487b76c5
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/border-image-width-006.xht
@@ -0,0 +1,55 @@
+<!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 Backgrounds and Borders Test: border image area - border-image-width</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-image-width" title="6.3. Drawing Areas: the 'border-image-width' property" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+
+ <meta name="flags" content="image" />
+ <meta content="This test checks that the border image area can still exists even if the border area (or border belt) of an element is inexistent, even if the content area of an element is inexistent. In this test, the border image fills the padding area and 25px of the extended-beyond-border-belt area, 25px into the margin area of the element." name="assert" />
+
+ <!--
+ created 2015-11-18
+ [css-backgrounds] Please remove the "unless there is a border image" wording
+ http://lists.w3.org/Archives/Public/www-style/2015Nov/0258.html
+ -->
+
+ <style type="text/css"><![CDATA[
+ p
+ {
+ margin-bottom: 41px; /* border-image-outset + 16px (1em) .
+ This 41px margin-bottom value is just to position the rendered layout to accurately match the reference file . */
+ }
+
+ div
+ {
+ background-color: red;
+ border-color: red;
+ border-style: none; /* or border-style: dotted or any other 'border-style' value */
+ border-width: 0px; /* so the border belt (or border area) of the element is 0px tall and 0px wide */
+ border-image-source: url("support/outline-5px-10px-15px-20px-green.png");
+ border-image-slice: 5% 10% 15% 20%; /* <number> Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. */
+ border-image-width: 50px; /* The four values of ‘border-image-width’ specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the the top, right, bottom, and left sides of the area, respectively. */
+ border-image-outset: 25px 25px 25px 25px; /* The border-image-outset values specify the amount by which the border image area *_ extends beyond the border box_*. */
+ height: 0px;
+ margin-left: 25px; /* == border-image-outset . This margin-left value is just to position the rendered layout to accurately match the reference file . */
+ padding: 25px 25px 25px 25px;
+ width: 0px;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div></div>
+
+ </body>
+</html> \ No newline at end of file