Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/text-autospace/text-autospace-supplementary-ideograph.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>text-autospace with supplementary ideographs</title>
<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>