box-shadow-inset-spread-without-border-radius

box-shadow

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
inset spread box-shadow should show shadow.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS Backgrounds and Borders Test: box-shadow</title>
 4     <link href="mailto:joy.xczhang@gmail.com" rel="author" title="Zhang Xiaochong">
 5     <link href="http://www.w3.org/TR/css3-background/#the-box-shadow" rel="help">
 6     <link href="reference/box-shadow-inset-spread-without-border-radius.htm" rel="match">
 7     <meta content="inset spread box-shadow should show shadow." name="assert">
 8     <style type="text/css">
 9         .container {
10             position: relative;
11         }
12         .container div {
13             position: absolute;
14             height: 150px;
15             width: 150px;
16             left: 0;
17             top: 0;
18         }
19         .container .test {
20             box-shadow: red 10px 10px 0 10px inset;
21         }
22         .container .ref {
23             background-color: green;
24         }
25     </style>
26 </head>
27 <body>
28     <p>The test passes if there is a filled green square and no red.</p>
29     <div class="container">
30         <div class="test"></div>
31         <div class="ref"></div>
32     </div>
33 
34 
35 </body></html>