tor-browser

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

svg-foreignobject-no-size-container.html (658B)


      1 <!doctype html>
      2 <title>CSS Container Queries Test: SVG &lt;foreignObject&gt; element not a size query container</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#size-container">
      4 <link rel="match" href="svg-foreignobject-no-size-container-ref.html">
      5 <style>
      6  foreignObject {
      7    display: block;
      8    width: 100px;
      9    height: 100px;
     10    container-type: size;
     11  }
     12  @supports not (container-type: size) {
     13    div { color: red; }
     14  }
     15  @container (width = 100px) {
     16    div { color: red; }
     17  }
     18 </style>
     19 <p>You should see the word PASS below and no red.</p>
     20 <svg>
     21  <foreignObject>
     22    <div id="div">PASS</div>
     23  </foreignObject>
     24 </svg>