OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Basic User Interface Test: outline - inherit (basic)</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com/"> |
| 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> |
| 6 <link rel="help" title="7.1. 'outline' property" href="http://www.w3.org/TR/css3
-ui/#outline"> |
| 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> |
| 8 <meta name="flags" content=""> |
| 9 <meta name="assert" content="Test checks that the outline property inherits the
parent's value when outline set inherit"> |
| 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 <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 </body> |
OLD | NEW |