outline-offset-001

outline-offset - length (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks that the outline-offset keeps spacing between outline and element content

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Basic User Interface Test: outline-offset - length (basic)</title>
 4 <link href="http://www.intel.com/" rel="author" title="Intel">
 5 <link href="http://www.w3.org/TR/css3-ui/#outline-offset" rel="help" title="7.5. 'outline-offset' property">
 6 <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan">
 7 <link href="reference/ref-filled-green-100px-square.htm" rel="match">
 8 <meta content="" name="flags">
 9 <meta content="Test checks that the outline-offset keeps spacing between outline and element content" name="assert">
10 <style>
11   #container {
12     background-color: green;
13     border: 20px red solid;
14     height: 60px;
15     width: 60px;
16   }
17   #test {
18     background-color: green;
19     height: 20px;
20     left: 20px;
21     outline: 20px green solid;
22     outline-offset: 20px;
23     position: relative;
24     top: 20px;
25     width: 20px;
26   }
27 </style>
28 </head><body>
29   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
30   <div id="container">
31     <div id="test"></div>
32   </div>
33 
34 </body></html>