summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-004.html
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/box-shadow-overlapping-004.html
parentInitial commit. (diff)
downloadfirefox-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/box-shadow-overlapping-004.html')
-rw-r--r--testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-004.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-004.html b/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-004.html
new file mode 100644
index 0000000000..97b690b956
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-004.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+
+ <meta charset="UTF-8">
+
+ <title>CSS Background and Borders Test: box-shadow and overlapping of adjacent text</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+ <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#shadow-layers" >
+ <link rel="match" href="reference/box-shadow-overlapping-003-ref.html">
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+
+ <meta content="Box shadows do not affect layout. Box shadows take up no space. Box shadows do not affect or influence normal flow of boxes. Therefore, box shadows can 'collide' with other boxes and can overlap other boxes (inline box or line box) or be overlapped by other boxes. This test checks that the background of the following line box overlaps the box-shadow of an inline non-replaced box whose box-shadow expands onto and over the following line box. In this test, the box shadow of div#outer-box-shadow is red and protudes out and below onto the following line box. But since the glyphs of div#following-line-box are green, then such green color will overlap the red box shadow of div#outer-box-shadow." name="assert">
+
+ <style>
+ div
+ {
+ color: green;
+ float: left;
+ font-family: Ahem;
+ font-size: 100px;
+ line-height: 1;
+ }
+
+ div#outer-box-shadow
+ {
+ box-shadow: 0em 1em red;
+ }
+
+ /*
+
+ 1st <length>
+ Specifies the horizontal offset of the shadow. A positive value
+ draws a shadow that is offset to the right of the box, a negative
+ length to the left.
+
+ 2nd <length>
+ Specifies the vertical offset of the shadow. A positive value
+ offsets the shadow down, a negative one up.
+
+ */
+
+ div#following-line-box
+ {
+ clear: left;
+ }
+ </style>
+
+ <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.
+
+ <div id="outer-box-shadow">OVLPED</div>
+
+ <div id="following-line-box">OVLPNG</div>