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

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

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

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

<title>CSS test: text-transform:uppercase + letter-spacing + es-zett</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 ß is uppercased to SS, letter-spacing should apply between the two glyphs.">
<link rel="match" href="text-transform-letter-spacing-001-ref.html">

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">

<style>
.test, .ref {
  font: 25px Ahem;  /* Note that Ahem does not include a glyph for U+1E9E;
                       the only option for uppercasing "ß" is as "SS". */
  letter-spacing: 0.5em;
}

.test {
  text-transform: uppercase;
}
</style>

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

<p class="test">straße</p>
<p class="ref">STRASSE</p>

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

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

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

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">

<style>
.ref {
  font: 25px Ahem;  /* Note that Ahem does not include a glyph for U+1E9E;
                       the only option for uppercasing "ß" is as "SS". */
  letter-spacing: 0.5em;
}
</style>

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

<p class="ref">STRASSE</p>
<p class="ref">STRASSE</p>