wpt / css / css-text / text-transform / text-transform-letter-spacing-002.html

Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text/text-transform/text-transform-letter-spacing-002.html

<!DOCTYPE html>
<meta charset="utf-8">

<title>CSS test: text-transform:uppercase + letter-spacing + ligatures</title>

<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-transform-property">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#letter-spacing-property">
<link rel="help" href="https://www.unicode.org/Public/UNIDATA/SpecialCasing.txt">

<meta name="assert" content="When ligatures such as fi or ffi are decomposed by uppercasing, letter-spacing should apply between the glyphs.">
<link rel="match" href="text-transform-letter-spacing-002-ref.html">

<style>
.test1, .test2, .ref {
  letter-spacing: 1em;
}

.test1 {
  text-transform: uppercase;
}

.test2 {
  text-transform: capitalize;
}
</style>

<p>Both lines in each pair should have the same spacing:</p>

<p class="test1">o&#xfb03;ce &#xfb01;les</p>
<p class="ref">OFFICE FILES</p>
<br>
<p class="test2">&#xfb02;ying &#xfb01;sh</p>
<p class="ref">Flying Fish</p>

/css/css-text/text-transform/text-transform-letter-spacing-002-ref.html

<!DOCTYPE html>
<meta charset="utf-8">

<title>CSS reference: text-transform:uppercase + letter-spacing + ligatures</title>

<style>
.ref {
  letter-spacing: 1em;
}
</style>

<p>Both lines in each pair should have the same spacing:</p>

<p class="ref">OFFICE FILES</p>
<p class="ref">OFFICE FILES</p>
<br>
<p class="ref">Flying Fish</p>
<p class="ref">Flying Fish</p>