Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/text-autospace/text-autospace-zh-001.html
<!DOCTYPE html> <meta charset="utf-8"> <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <link rel="match" href="text-autospace-zh-001-ref.html"> <style> .test { font-family: Ahem; font-size: 40px; text-autospace: normal; } </style> <div id="container"> <div lang="zh" class="test">国!国#国</div> </div>
/css/css-text/text-autospace/text-autospace-zh-001-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> .test { font-family: Ahem; font-size: 40px; text-autospace: no-autospace; span { margin-left: calc(1em / 8); margin-right: calc(1em / 8); } } </style> <div id="container"> <div lang="zh" class="test normal">国<span>!</span>国<span>#</span>国</div> </div>