letter-spacing-ligatures-004.html (950B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <meta charset="utf-8"> 4 <title>letter spacing and ligatures</title> 5 <link rel='author' title='Florian Rivoal' href='https://florian.rivoal.net'> 6 <link rel='help' href='https://drafts.csswg.org/css-text-3/#letter-spacing-property'> 7 <link rel='match' href='reference/letter-spacing-ligatures-004-ref.html'> 8 <meta name=flags content="should"> 9 <meta name="assert" content="When the effective spacing between two characters is not zero (due to […] letter spacing), user agents should not apply optional ligatures, but they must apply ones"> 10 <style> 11 div { 12 font-size: 2em; 13 width: 12ch; 14 font-kerning: none; 15 } 16 .test { 17 letter-spacing: 20px; 18 } 19 span { 20 padding-left: 20px; 21 } 22 .ref { 23 color: blue; 24 } 25 </style> 26 <p>Test passes if the black text looks like the blue one. 27 <div lang=km class=test>សាហា</div> 28 <div lang=km class=ref>សា<span></span>ហា</div>