font-size-adjust-011.html (1698B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Fonts Test: font-size-adjust - two-value syntax - using 'ic-width' as the basis for adjustment</title> 4 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> 5 <link rel="help" title="2.6 Relative sizing: the font-size-adjust property" 6 href="https://drafts.csswg.org/css-fonts-4/#font-size-adjust-prop"> 7 <link rel="help" title="extend font-size-adjust to take a pair of values: <metric> <number>" 8 href="https://github.com/w3c/csswg-drafts/issues/6160"> 9 <meta name="assert" content="Test checks that font-size-adjust with the 'ic-width' metric works as expected"> 10 <link rel="match" href="font-size-adjust-009-ref.html"> 11 <style> 12 @font-face { 13 font-family: test; 14 src: url(/fonts/noto/noto-sans-v8-latin-regular.woff); 15 /* this font does not support U+6C34, so 'ic' should be treated as 1em */ 16 } 17 div { 18 clear: left; 19 float: left; 20 font: 56px/112px test; 21 color: orange; 22 background: orange; 23 } 24 #test1 { 25 color: green; 26 background: green; 27 font-size-adjust: ic-width 1.0; /* should cause no change */ 28 } 29 #test2 { 30 color: blue; 31 background: blue; 32 font-size-adjust: ic-width 1.5; /* should be 1.5 times larger */ 33 } 34 #test3 { 35 color: magenta; 36 background: magenta; 37 font-size-adjust: ic-width 0.75; /* should be 0.75 times larger */ 38 } 39 </style> 40 <body> 41 <p>Test passes if the size of the green rectangle matches the orange rectangle, 42 the blue rectangle is longer, and the magenta rectangle is shorter.</p> 43 <div>Filler Text</div> 44 <div id="test1">Filler Text</div> 45 <div id="test2">Filler Text</div> 46 <div id="test3">Filler Text</div> 47 </body>