summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html')
-rw-r--r--testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html b/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html
new file mode 100644
index 0000000000..dcae3f0506
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/box-shadow-overlapping-003.html
@@ -0,0 +1,55 @@
+<!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. In this test, the text ('OVLPED') is from a previous line box and is overlapped by a top outer box shadow box that is tall enough to overlap it entirely." name="assert">
+
+ <style>
+ div
+ {
+ float: left;
+ font-family: Ahem;
+ font-size: 100px;
+ line-height: 1;
+ }
+
+ div#previous-line-box
+ {
+ color: red;
+ }
+
+ div#outer-box-shadow
+ {
+ box-shadow: 0em -1em;
+ clear: left;
+ color: green;
+ }
+
+ /*
+
+ omitted colors default to the value of the color property.
+
+ 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.
+
+ */
+ </style>
+
+ <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.
+
+ <div id="previous-line-box">OVLPED</div>
+
+ <div id="outer-box-shadow">OVLPNG</div>