outline-002

outline - inherit (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks that the outline property inherits the parent's value when outline set inherit

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Basic User Interface Test: outline - inherit (basic)</title>
 4 <link href="http://www.intel.com/" rel="author" title="Intel">
 5 <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan">
 6 <link href="http://www.w3.org/TR/css3-ui/#outline" rel="help" title="7.1. 'outline' property">
 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 property inherits the parent's value when outline set inherit" name="assert">
10 <style>
11   #container {
12     background-color: red;
13     height: 100px;
14     width: 100px;
15   }
16   #parent {
17     background-color: red;
18     height: 80px;
19     left: 10px;
20     outline: 10px green solid;
21     position: relative;
22     top: 10px;
23     width: 80px;
24   }
25   #child {
26     background-color: green;
27     height: 60px;
28     left: 10px;
29     outline: inherit;
30     position: relative;
31     top: 10px;
32     width: 60px;
33   }
34 </style>
35 </head><body>
36   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
37   <div id="container">
38     <div id="parent">
39       <div id="child"></div>
40     </div>
41   </div>
42 
43 </body></html>