intrinsic-percent-replaced-023.html (990B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes"> 6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1919220"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content="This test verifies that fieldset's width is the same as the img's width, transferred from the img's height and aspect-ratio."> 9 10 <style> 11 fieldset { 12 margin: 0; 13 padding: 10px; 14 border: 0; 15 height: 80px; 16 width: fit-content; 17 /* create a red dot that should be covered by the <img> */ 18 background: radial-gradient(red, red 50%, green 50%, green 100%); 19 } 20 img { 21 height: 100%; 22 } 23 </style> 24 25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 26 <fieldset> 27 <img src="aspect-ratio/support/200x200-green.png"> 28 </fieldset>