content-height-001.html (852B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS2 inline level box content height test</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 5 <link rel="help" href="https://drafts.csswg.org/css2/visudet.html#line-height"> 6 <link rel="match" href="reference/content-height-001-ref.html"> 7 <meta name="assert" content="The height of the content area of an inline-level box does not depend on the value of the line-height property"> 8 <style> 9 10 div { font-size: 50px; display: inline-block; color: transparent; } 11 12 span { background: blue; } 13 14 div { line-height: 200px; } 15 div:nth-of-type(2) { line-height: 30px; } 16 div:nth-of-type(3) { line-height: normal; } 17 </style> 18 19 <p>Test passes if the blue shape below is a rectangle, but not some other polygon. 20 21 <div><span>aa</span></div><div><span>aa</span></div><div><span>aa</span></div>