box-shadow-002

Positive values for spread distance

WeasyPrint

This browser

Assertion
Positive values of the spread distance cause the shadow to grow in all directions by the specified distance.

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 values for spread distance</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="" name="flags">
 7         <meta content="Positive values of the spread distance cause the shadow to grow in all directions by the specified distance." name="assert">
 8         <style type="text/css">
 9             #reference
10             {
11                 width: 120px;
12                 height: 120px;
13                 margin-left: 40px;
14                 margin-top: 10px;
15                 background: red;
16             }
17             #test
18             {
19                 width: 100px;
20                 height: 100px;
21                 background: black;
22                 box-shadow: 50px 10px 0 10px;
23                 margin-top: -120px;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if there is no red visible on the page.</p>
29         <div id="reference"></div>
30         <div id="test"></div>
31     
32 </body></html>