ic-unit-013.html (1019B)
1 <!DOCTYPE html> 2 3 <meta charset="utf-8"> 4 <title>CSS Values and Units Test: support for the ic unit</title> 5 <link rel="author" title="Kiet Ho" href="mailto:tho22@apple.com"> 6 <link rel="help" href="https://www.w3.org/TR/css-values-4/#ic"> 7 <link rel="match" href="reference/ic-unit-013-ref.html"> 8 <meta name="assert" content="The ic unit is equal to 0em if the CJK water glyph's advance is 0."> 9 <style> 10 /* The following font contains the CJK water (U+6C34) glyph as a zero-width character. */ 11 @font-face { 12 font-family: IcTestZeroWidth; 13 src: url(resources/IcTestZeroWidth.woff2); 14 } 15 16 .test { 17 font: 20px IcTestZeroWidth; 18 width: calc(100px + 10ic); 19 height: 20px; 20 background: green; 21 margin-bottom: 10px; 22 } 23 24 .ref { 25 /* Each ic should be equal to 0px because the CJK water glyph in the font is zero-width. */ 26 width: 100px; 27 height: 20px; 28 background: green; 29 } 30 </style> 31 32 <p>The test passes if there are two green rectangles of equal length.</p> 33 <div class="test"></div> 34 <div class="ref"></div>