tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

revert-val-002.html (949B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Cascade: 'revert' keyword interaction with !important</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="author" title="Mozilla" href="https://mozilla.org">
      6 <link rel="help" href="https://drafts.csswg.org/css-cascade/#default">
      7 <link rel="match" href="reference/ref-filled-green-100px-square.xht">
      8 <style>
      9 #outer {
     10  background-color: red;
     11  width: 100px;
     12  height: 100px;
     13  overflow: hidden;
     14 }
     15 #inner {
     16  /* This should win over `revert` */
     17  display: block !important;
     18 }
     19 #inner {
     20  color: green;
     21  background-color: green;
     22  display: revert;
     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    <span 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    </span>
     39  </div>
     40 </body>
     41 </html>