Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3

This commit is contained in:
WPT Sync Bot 2019-05-15 10:40:54 -04:00 committed by Josh Matthews
parent 6f8bb4dd40
commit edff458e23
791 changed files with 17647 additions and 10322 deletions

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Values and Units Test: support for the ch unit</title>
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
<link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths">
<link rel="match" href="reference/ch-unit-013-ref.html">
<meta name="assert" content="When a zero glyph is not present, in vertical upright writing modes the ch unit falls back to 1em.">
<style>
@font-face {
font-family: ChTestNoZero;
src: url(resources/ChTestNoZero.woff);
}
div {
height: 10px;
background-color: blue;
margin-top: 10px;
}
.test {
writing-mode: vertical-rl;
text-orientation: upright;
width: 5ch;
}
.ref {
width: 100px;
}
</style>
<p>The test passes if there are two blue rectangles of equal length.</p>
<!-- ChTestNoZero has no '0' glyph, and we have a vertical writing mode
with upright glyphs, so ch units should compute to 1em, resulting in
the div being 100px wide. -->
<div class="test" style="font: 20px ChTestNoZero;"></div>
<div class="ref"></div>