tor-browser

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

canvas-contain-size.html (913B)


      1 <!doctype html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org" />
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-cross-item" />
      4 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images" />
      5 <link rel="issue" href="https://crbug.com/1175526" />
      6 <meta name="assert" content="width and height attributes on canvas don't map to css width/height, but do map to css aspect ratio, which is honored by flexbox, even when the item has contain: size. " />
      7 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      8 
      9 <p>Test passes if there is a filled green square.</p>
     10 
     11 <!-- align-items: flex-start so we don't have to think about stretching -->
     12 <div style="display: flex; align-items: flex-start;">
     13  <canvas width=20 height=20 style="contain: size; background: green; width: 100px;">
     14 </div>