Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/text-autospace/text-autospace-supplementary-ideograph.html
<!DOCTYPE html> <meta charset="utf-8"> <title>text-autospace with supplementary ideographs</title> <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property"> <link rel="match" href="text-autospace-supplementary-ideograph-ref.html"> <style> .test { font-size: 40px; border: solid 3px salmon; width: fit-content; margin-bottom: 2px; } .normal { text-autospace: normal; } </style> <!-- U+20000 is a CJK Unified Ideographs Extension B character (supplementary plane). Autospacing should apply between it and Latin letters, just as it does for BMP ideographs. --> <!-- BMP ideograph (U+56FD) as baseline: these should get autospacing --> <div class="test normal">国A</div> <div class="test normal">A国</div> <!-- Supplementary ideograph (U+20000) must also get autospacing --> <div class="test normal">𠀀A</div> <div class="test normal">A𠀀</div> <!-- Across a span boundary --> <div class="test normal"><span>𠀀</span><span>A</span></div> <div class="test normal"><span>A</span><span>𠀀</span></div>
/css/css-text/text-autospace/text-autospace-supplementary-ideograph-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>text-autospace with supplementary ideographs (reference)</title> <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property"> <style> .test { font-size: 40px; border: solid 3px salmon; width: fit-content; margin-bottom: 2px; text-autospace: no-autospace; } .manual-spacing-right { margin-right: 0.125em; } .manual-spacing-left { margin-left: 0.125em; } </style> <!-- BMP ideograph --> <div class="test"><span class="manual-spacing-right">国</span>A</div> <div class="test">A<span class="manual-spacing-left">国</span></div> <!-- Supplementary ideograph: same spacing expected --> <div class="test"><span class="manual-spacing-right">𠀀</span>A</div> <div class="test">A<span class="manual-spacing-left">𠀀</span></div> <!-- Across a span boundary --> <div class="test"><span class="manual-spacing-right">𠀀</span><span>A</span></div> <div class="test"><span>A</span><span class="manual-spacing-left">𠀀</span></div>