outline-style-012.html (1172B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Basic User Interface Test: outline-style - 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.3. 'outline-style' property" href="http://www.w3.org/TR/css3-ui/#outline-style"> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style"> 8 <link rel="match" href="reference/outline-style-012-ref.html"> 9 <meta name="assert" content="Test checks that the sub element outline style is same as parent element outline style when outline-style set inherit"> 10 <style> 11 #parent { 12 height: 110px; 13 margin: 30px; 14 outline-color: blue; 15 outline-style: dotted; 16 outline-width: 4px; 17 padding: 20px; 18 width: 110px; 19 } 20 #child { 21 height: 110px; 22 outline-color: green; 23 outline-style: inherit; 24 outline-width: 4px; 25 width: 110px; 26 } 27 </style> 28 <body> 29 <p>Test passes if there is a blank square with <strong>a green dotted</strong> border centered inside a blue dotted border.</p> 30 <div id="parent"> 31 <div id="child"></div> 32 </div> 33 </body>