| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Cascade: 'revert' keyword interaction with !important</title> |
| <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> |
| <link rel="author" title="Mozilla" href="https://mozilla.org"> |
| <link rel="help" href="https://drafts.csswg.org/css-cascade/#default"> |
| <link rel="match" href="reference/ref-filled-green-100px-square.xht"> |
| <style> |
| #outer { |
| background-color: red; |
| width: 100px; |
| height: 100px; |
| overflow: hidden; |
| } |
| #inner { |
| /* This should win over `revert` */ |
| display: block !important; |
| } |
| #inner { |
| color: green; |
| background-color: green; |
| display: revert; |
| } |
| </style> |
| </head> |
| <body> |
| <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> |
| <div id="outer"> |
| <span id="inner"> |
| This<br> |
| is<br> |
| filler<br> |
| text.<br> |
| This<br> |
| is<br> |
| filler<br> |
| text. |
| </span> |
| </div> |
| </body> |
| </html> |