box-shadow-001

Positive value of horizontal offset

WeasyPrint

This browser

Flags
internal
Assertion
A positive value for the horizontal offset of the 'box-shadow' draws a shadow that is offset to the right of the box.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
 3         <title>CSS Test: Positive value of horizontal offset</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#the-box-shadow" rel="help">
 6         <meta content="internal" name="flags">
 7         <meta content="A positive value for the horizontal offset of the 'box-shadow' draws a shadow that is offset to the right of the box." name="assert">
 8         <style type="text/css">
 9             #reference
10             {
11                 width: 2in;
12                 height: 1in;
13                 background: red;
14                 border: thin solid black;
15             }
16             div div
17             {
18                 width: 1in;
19                 height: 1in;
20                 border: thin solid black;
21                 background: white;
22                 box-shadow: black 96px 0px;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there is no red visible on the page.</p>
28         <div id="reference">
29             <div></div>
30         </div>
31     
32 </body></html>