Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / css-backgrounds / box-shadow-overlapping-003.html
blob727162934aa76b9f145da26f491582163b980ff5
1 <!DOCTYPE html>
3 <meta charset="UTF-8">
5 <title>CSS Background and Borders Test: box-shadow and overlapping of adjacent text</title>
7 <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#shadow-layers" >
9 <link rel="match" href="reference/box-shadow-overlapping-003-ref.html">
10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
12 <meta content="" name="flags">
13 <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">
15 <style>
16 div
18 float: left;
19 font-family: Ahem;
20 font-size: 100px;
21 line-height: 1;
24 div#previous-line-box
26 color: red;
29 div#outer-box-shadow
31 box-shadow: 0em -1em;
32 clear: left;
33 color: green;
38 omitted colors default to the value of the color property.
40 1st <length>
41 Specifies the horizontal offset of the shadow. A positive value
42 draws a shadow that is offset to the right of the box, a negative
43 length to the left.
45 2nd <length>
46 Specifies the vertical offset of the shadow. A positive value
47 offsets the shadow down, a negative one up.
50 </style>
52 <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.
54 <div id="previous-line-box">OVLPED</div>
56 <div id="outer-box-shadow">OVLPNG</div>