wpt / css / css-text / text-autospace / text-autospace-mixed-001.html

Status: PASS | Duration: 24ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text/text-autospace/text-autospace-mixed-001.html

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property">
<link rel="match" href="text-autospace-mixed-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
#container > div {
  font-family: Ahem;
  font-size: 40px;
  text-autospace: normal;
}
</style>
<div id="container">
  <div>国国&#x5d0;&#x5d1;&#x5d2;国国</div>
  <div>国国<span>&#x5d0;&#x5d1;</span>&#x5d2;国国</div>
  <div>国国&#1605;&#1615;&#1585;&#1614;&#1576;&#1614;&#1617;&#1593;&#1618;国国</div>
</div>

/css/css-text/text-autospace/text-autospace-mixed-001-ref.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" />
<style>
#container > div {
  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>国国<span>&#x5d0;&#x5d1;&#x5d2;</span>国国</div>
  <div>国国<span>&#x5d0;&#x5d1;&#x5d2;</span>国国</div>
  <div>国国<span>&#1605;&#1615;&#1585;&#1614;&#1576;&#1614;&#1617;&#1593;&#1618;</span>国国</div>
</div>