summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-size-replaced-004.html
blob: 9f84481504660e4129f10532c761b04fc2030f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Containment Test: Size containment replaced elements intrinsic size</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="contain-size-replaced-004-ref.html">
<meta name=assert content="This test checks that intrinsic size of replaced elements with 'contain: size' is zero.">
<style>
  body > div, video, audio, img, canvas, svg, iframe {
    border: 3px solid orange;
    contain: size;
    margin-bottom: 15px;
    width: min-content;
    height: min-content;
    float: left;
    clear: both;
  }
</style>
<div>abc</div>
<video></video><br>
<video controls></video><br>
<img src="support/60x60-green.png"><br>
<picture>
<source srcset="support/60x60-green.png">
    <img>
</picture><br>
<canvas></canvas><br>
<svg></svg><br>
<iframe></iframe>