revert-val-001.html (1157B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Cascade: 'revert' keyword for 'display' property of div element</title> 6 <link rel="author" title="Chris Rebert" href="http://chrisrebert.com"> 7 <link rel="help" href="https://www.w3.org/TR/css-cascade-4/#default"> 8 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3"> 9 <link rel="match" href="reference/ref-filled-green-100px-square.xht"> 10 <meta name="assert" content="On a <div>, display:revert should compute to display:block per the default styles for <div>s in the UA stylesheet."> 11 <style> 12 #outer { 13 background-color: red; 14 width: 100px; 15 height: 100px; 16 overflow: hidden; 17 } 18 #inner { 19 color: green; 20 background-color: green; 21 display: inline; 22 display: revert;/* since #inner is a <div>, this should compute to 'block' */ 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 <div id="outer"> 29 <div id="inner"> 30 This<br> 31 is<br> 32 filler<br> 33 text.<br> 34 This<br> 35 is<br> 36 filler<br> 37 text. 38 </div> 39 </div> 40 </body> 41 </html>