mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update CSS tests to revision e102a993c37a2e0ebd549bc7d5548b006458ab34
This commit is contained in:
parent
037cac7353
commit
a00f2d6310
479 changed files with 13629 additions and 1611 deletions
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
|
||||
<h1>CSS Text Module Level 3 CR Test Suite</h1>
|
||||
<h2>Spacing (6 tests)</h2>
|
||||
<h2>Spacing (7 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column">
|
||||
<col id="refs-column">
|
||||
|
@ -52,7 +52,18 @@
|
|||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s8.1.#word-spacing">
|
||||
<!-- 0 tests -->
|
||||
<!-- 1 tests -->
|
||||
<tr id="text-word-spacing-001-8.1.#word-spacing" class="primary ahem">
|
||||
<td><strong>
|
||||
<a href="text-word-spacing-001.htm">text-word-spacing-001</a></strong></td>
|
||||
<td><a href="reference/text-word-spacing-ref.htm">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>Word Spacing
|
||||
<ul class="assert">
|
||||
<li>Test checks that word-spacing works with percentages.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s8.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote">
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet">
|
||||
<meta content="ahem" name="flags">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
span.padoneem { padding-left: 1em; }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div>ABcDefGhij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A <span class="padoneem">Bc <span class="padoneem">Def <span class="padoneem">Ghij <span class="padoneem"></span></span></span></span></div>
|
||||
|
||||
</body></html>
|
|
@ -4384,6 +4384,14 @@
|
|||
<td rowspan="1"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="text-word-spacing-001" class="ahem">
|
||||
<tr>
|
||||
<td rowspan="1" title="Word Spacing">
|
||||
<a href="text-word-spacing-001.htm">text-word-spacing-001</a></td>
|
||||
<td><a href="reference/text-word-spacing-ref.htm">=</a> </td>
|
||||
<td rowspan="1"><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="white-space-collapsing-discard-001" class="">
|
||||
<tr>
|
||||
<td rowspan="1" title="white-space-collapsing - discard - basic cases">
|
||||
|
|
|
@ -544,6 +544,7 @@ text-transform-fullwidth-001.htm == reference/text-transform-fullwidth-001-ref.h
|
|||
text-transform-lowercase-001.htm == reference/text-transform-lowercase-001-ref.htm
|
||||
text-transform-none-001.htm == reference/text-transform-none-001-ref.htm
|
||||
text-transform-uppercase-001.htm == reference/text-transform-uppercase-001-ref.htm
|
||||
text-word-spacing-001.htm == reference/text-word-spacing-ref.htm
|
||||
white-space-collapsing-discard-001.htm == reference/white-space-collapsing-discard-001-ref.htm
|
||||
white-space-collapsing-preserve-breaks-001.htm == reference/white-space-collapsing-preserve-breaks-001-ref.htm
|
||||
white-space-collapsing-trim-inner-001.htm == reference/white-space-collapsing-trim-inner-001-ref.htm
|
||||
|
|
BIN
tests/wpt/css-tests/css-text-3_dev/html/support/Ahem.ttf
Normal file
BIN
tests/wpt/css-tests/css-text-3_dev/html/support/Ahem.ttf
Normal file
Binary file not shown.
4
tests/wpt/css-tests/css-text-3_dev/html/support/ahem.css
Normal file
4
tests/wpt/css-tests/css-text-3_dev/html/support/ahem.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote">
|
||||
<link href="http://www.w3.org/TR/css-text-3/#word-spacing" rel="help">
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet">
|
||||
<link href="reference/text-word-spacing-ref.htm" rel="match">
|
||||
<meta content="ahem" name="flags">
|
||||
<meta content="Test checks that word-spacing works with percentages." name="assert">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
div.wsn100 { word-spacing: -100%; }
|
||||
div.wsn40 { word-spacing: -40%; }
|
||||
div.ws0 { word-spacing: 0%; }
|
||||
div.ws25 { word-spacing: calc(25% + 0px); }
|
||||
div.ws100 { word-spacing: 100%; }
|
||||
div.ws300 { word-spacing: calc(100% + 6em + 50%*4 - 12em/2); }
|
||||
div.ws400p1 { word-spacing: calc(400% + 1em); }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div class="wsn100">A Bc Def Ghij</div>
|
||||
<div class="ws0">A Bc Def Ghij</div>
|
||||
<div class="ws100">A Bc Def Ghij</div>
|
||||
<div class="wsn40">A Bc Def Ghij</div>
|
||||
<div class="ws300">A Bc Def Ghij</div>
|
||||
<div class="ws25">A Bc Def Ghij</div>
|
||||
<div class="ws400p1">A Bc Def Ghij</div>
|
||||
|
||||
</body></html>
|
|
@ -57,7 +57,7 @@
|
|||
<tbody id="s8">
|
||||
<tr><th><a href="chapter-8.htm">Chapter 8 -
|
||||
Spacing</a></th>
|
||||
<td>(6 Tests)</td></tr>
|
||||
<td>(7 Tests)</td></tr>
|
||||
</tbody>
|
||||
<tbody id="s9">
|
||||
<tr><th><a href="chapter-9.htm">Chapter 9 -
|
||||
|
|
|
@ -1417,6 +1417,8 @@ html/text-transform-none-001.htm 3f76372dde584e0852e7cd297d3e68a30ecc4ec6 ?
|
|||
xhtml1/text-transform-none-001.xht 3f76372dde584e0852e7cd297d3e68a30ecc4ec6 ?
|
||||
html/text-transform-uppercase-001.htm 5efd91206f74207fcd84218c12ff9453b19f88fd ?
|
||||
xhtml1/text-transform-uppercase-001.xht 5efd91206f74207fcd84218c12ff9453b19f88fd ?
|
||||
html/text-word-spacing-001.htm 1d428836591c2fbedf05441accc637e2ad26957f ?
|
||||
xhtml1/text-word-spacing-001.xht 1d428836591c2fbedf05441accc637e2ad26957f ?
|
||||
html/white-space-collapse-000.htm 8ee09670c324129ad69d3387d11fbd1153236e7f ?
|
||||
xhtml1/white-space-collapse-000.xht 8ee09670c324129ad69d3387d11fbd1153236e7f ?
|
||||
html/white-space-collapse-001.htm 2d713b188ad111ef5ee582b47b6416fcc20ed8e1 ?
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
<li>Intel</li>
|
||||
<li>Makoto Kikuchi</li>
|
||||
<li>Masataka Yakura</li>
|
||||
<li>Nicholas Nethercote</li>
|
||||
<li>Richard Ishida</li>
|
||||
<li>Satoshi Umehara</li>
|
||||
<li>Shiyou Tan</li>
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
<li>Intel</li>
|
||||
<li>Makoto Kikuchi</li>
|
||||
<li>Masataka Yakura</li>
|
||||
<li>Nicholas Nethercote</li>
|
||||
<li>Richard Ishida</li>
|
||||
<li>Satoshi Umehara</li>
|
||||
<li>Shiyou Tan</li>
|
||||
|
|
|
@ -706,6 +706,7 @@ text-transform-fullwidth-001 reference/text-transform-fullwidth-001-ref text-tra
|
|||
text-transform-lowercase-001 reference/text-transform-lowercase-001-ref text-transform - lowercase - basic cases http://www.w3.org/TR/css-text-3/#text-transform b99d33435f651a9ba6d835eaa2fd51ad6684ae48 `Satoshi Umehara`<mailto:umehara@est.co.jp> The UA should put all characters in lowercase when text-transform is set to lowercase.
|
||||
text-transform-none-001 reference/text-transform-none-001-ref text-transform - none - basic cases http://www.w3.org/TR/css-text-3/#text-transform 3f76372dde584e0852e7cd297d3e68a30ecc4ec6 `Satoshi Umehara`<mailto:umehara@est.co.jp> The UA should do nothing when text-transform is set to none.
|
||||
text-transform-uppercase-001 reference/text-transform-uppercase-001-ref text-transform - uppercase - basic cases http://www.w3.org/TR/css-text-3/#text-transform 5efd91206f74207fcd84218c12ff9453b19f88fd `Satoshi Umehara`<mailto:umehara@est.co.jp> The UA should put all characters in uppercase when text-transform is set to uppercase.
|
||||
text-word-spacing-001 reference/text-word-spacing-ref Word Spacing ahem http://www.w3.org/TR/css-text-3/#word-spacing 1d428836591c2fbedf05441accc637e2ad26957f `Nicholas Nethercote`<mailto:nnethercote@mozilla.com> Test checks that word-spacing works with percentages.
|
||||
white-space-collapse-000 White space collapse script https://drafts.csswg.org/css-text-3/#line-break-transform 8ee09670c324129ad69d3387d11fbd1153236e7f `Richard Ishida`<mailto:ishida@w3.org> Every tab is converted to a space. Any space immediately following another collapsible space is collapsed to have zero advance width.
|
||||
white-space-collapse-001 White space and non-ASCII spaces script https://drafts.csswg.org/css-text-3/#line-break-transform 2d713b188ad111ef5ee582b47b6416fcc20ed8e1 `Richard Ishida`<mailto:ishida@w3.org> Any space immediately following another collapsible space is collapsed to have zero advance width. Only refers to U+0020, not other Unicode spaces.
|
||||
white-space-collapse-002 Whitespace and bidi control characters script https://drafts.csswg.org/css-text-3/#line-break-transform 61f215fa9da89aba0cac85e3c65c0e0d2e719122 `Richard Ishida`<mailto:ishida@w3.org> All spaces and tabs immediately preceding or following a segment break are removed, ignoring bidi formatting characters as if they were not there.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
|
||||
<h1>CSS Text Module Level 3 CR Test Suite</h1>
|
||||
<h2>Spacing (6 tests)</h2>
|
||||
<h2>Spacing (7 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
|
@ -52,7 +52,18 @@
|
|||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s8.1.#word-spacing">
|
||||
<!-- 0 tests -->
|
||||
<!-- 1 tests -->
|
||||
<tr id="text-word-spacing-001-8.1.#word-spacing" class="primary ahem">
|
||||
<td><strong>
|
||||
<a href="text-word-spacing-001.xht">text-word-spacing-001</a></strong></td>
|
||||
<td><a href="reference/text-word-spacing-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>Word Spacing
|
||||
<ul class="assert">
|
||||
<li>Test checks that word-spacing works with percentages.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s8.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote" />
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
span.padoneem { padding-left: 1em; }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div>ABcDefGhij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A  Bc  Def  Ghij</div>
|
||||
<div>A   Bc   Def   Ghij</div>
|
||||
<div>A    Bc    Def    Ghij</div>
|
||||
<div>A     Bc     Def     Ghij</div>
|
||||
<div>A     <span class="padoneem">Bc     <span class="padoneem">Def     <span class="padoneem">Ghij     <span class="padoneem"></span></span></span></span></div>
|
||||
|
||||
</body></html>
|
|
@ -4384,6 +4384,14 @@
|
|||
<td rowspan="1"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="text-word-spacing-001" class="ahem">
|
||||
<tr>
|
||||
<td rowspan="1" title="Word Spacing">
|
||||
<a href="text-word-spacing-001.xht">text-word-spacing-001</a></td>
|
||||
<td><a href="reference/text-word-spacing-ref.xht">=</a> </td>
|
||||
<td rowspan="1"><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="white-space-collapsing-discard-001" class="">
|
||||
<tr>
|
||||
<td rowspan="1" title="white-space-collapsing - discard - basic cases">
|
||||
|
|
|
@ -544,6 +544,7 @@ text-transform-fullwidth-001.xht == reference/text-transform-fullwidth-001-ref.x
|
|||
text-transform-lowercase-001.xht == reference/text-transform-lowercase-001-ref.xht
|
||||
text-transform-none-001.xht == reference/text-transform-none-001-ref.xht
|
||||
text-transform-uppercase-001.xht == reference/text-transform-uppercase-001-ref.xht
|
||||
text-word-spacing-001.xht == reference/text-word-spacing-ref.xht
|
||||
white-space-collapsing-discard-001.xht == reference/white-space-collapsing-discard-001-ref.xht
|
||||
white-space-collapsing-preserve-breaks-001.xht == reference/white-space-collapsing-preserve-breaks-001-ref.xht
|
||||
white-space-collapsing-trim-inner-001.xht == reference/white-space-collapsing-trim-inner-001-ref.xht
|
||||
|
|
BIN
tests/wpt/css-tests/css-text-3_dev/xhtml1/support/Ahem.ttf
Normal file
BIN
tests/wpt/css-tests/css-text-3_dev/xhtml1/support/Ahem.ttf
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote" />
|
||||
<link href="http://www.w3.org/TR/css-text-3/#word-spacing" rel="help" />
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet" />
|
||||
<link href="reference/text-word-spacing-ref.xht" rel="match" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that word-spacing works with percentages." name="assert" />
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
div.wsn100 { word-spacing: -100%; }
|
||||
div.wsn40 { word-spacing: -40%; }
|
||||
div.ws0 { word-spacing: 0%; }
|
||||
div.ws25 { word-spacing: calc(25% + 0px); }
|
||||
div.ws100 { word-spacing: 100%; }
|
||||
div.ws300 { word-spacing: calc(100% + 6em + 50%*4 - 12em/2); }
|
||||
div.ws400p1 { word-spacing: calc(400% + 1em); }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div class="wsn100">A Bc Def Ghij</div>
|
||||
<div class="ws0">A Bc Def Ghij</div>
|
||||
<div class="ws100">A Bc Def Ghij</div>
|
||||
<div class="wsn40">A     Bc     Def     Ghij</div>
|
||||
<div class="ws300">A Bc Def Ghij</div>
|
||||
<div class="ws25">A    Bc    Def    Ghij</div>
|
||||
<div class="ws400p1">A Bc Def Ghij</div>
|
||||
|
||||
</body></html>
|
|
@ -57,7 +57,7 @@
|
|||
<tbody id="s8">
|
||||
<tr><th><a href="chapter-8.xht">Chapter 8 -
|
||||
Spacing</a></th>
|
||||
<td>(6 Tests)</td></tr>
|
||||
<td>(7 Tests)</td></tr>
|
||||
</tbody>
|
||||
<tbody id="s9">
|
||||
<tr><th><a href="chapter-9.xht">Chapter 9 -
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
|
||||
<h1>CSS Text Module Level 3 CR Test Suite</h1>
|
||||
<h2>Spacing (6 tests)</h2>
|
||||
<h2>Spacing (7 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
|
@ -52,7 +52,18 @@
|
|||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s8.1.#word-spacing">
|
||||
<!-- 0 tests -->
|
||||
<!-- 1 tests -->
|
||||
<tr id="text-word-spacing-001-8.1.#word-spacing" class="primary ahem">
|
||||
<td><strong>
|
||||
<a href="text-word-spacing-001.xht">text-word-spacing-001</a></strong></td>
|
||||
<td><a href="reference/text-word-spacing-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>Word Spacing
|
||||
<ul class="assert">
|
||||
<li>Test checks that word-spacing works with percentages.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s8.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote" />
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
span.padoneem { padding-left: 1em; }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div>ABcDefGhij</div>
|
||||
<div>A Bc Def Ghij</div>
|
||||
<div>A  Bc  Def  Ghij</div>
|
||||
<div>A   Bc   Def   Ghij</div>
|
||||
<div>A    Bc    Def    Ghij</div>
|
||||
<div>A     Bc     Def     Ghij</div>
|
||||
<div>A     <span class="padoneem">Bc     <span class="padoneem">Def     <span class="padoneem">Ghij     <span class="padoneem"></span></span></span></span></div>
|
||||
|
||||
</body></html>
|
|
@ -4384,6 +4384,14 @@
|
|||
<td rowspan="1"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="text-word-spacing-001" class="ahem">
|
||||
<tr>
|
||||
<td rowspan="1" title="Word Spacing">
|
||||
<a href="text-word-spacing-001.xht">text-word-spacing-001</a></td>
|
||||
<td><a href="reference/text-word-spacing-ref.xht">=</a> </td>
|
||||
<td rowspan="1"><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="white-space-collapsing-discard-001" class="">
|
||||
<tr>
|
||||
<td rowspan="1" title="white-space-collapsing - discard - basic cases">
|
||||
|
|
|
@ -544,6 +544,7 @@ text-transform-fullwidth-001.xht == reference/text-transform-fullwidth-001-ref.x
|
|||
text-transform-lowercase-001.xht == reference/text-transform-lowercase-001-ref.xht
|
||||
text-transform-none-001.xht == reference/text-transform-none-001-ref.xht
|
||||
text-transform-uppercase-001.xht == reference/text-transform-uppercase-001-ref.xht
|
||||
text-word-spacing-001.xht == reference/text-word-spacing-ref.xht
|
||||
white-space-collapsing-discard-001.xht == reference/white-space-collapsing-discard-001-ref.xht
|
||||
white-space-collapsing-preserve-breaks-001.xht == reference/white-space-collapsing-preserve-breaks-001-ref.xht
|
||||
white-space-collapsing-trim-inner-001.xht == reference/white-space-collapsing-trim-inner-001-ref.xht
|
||||
|
|
BIN
tests/wpt/css-tests/css-text-3_dev/xhtml1print/support/Ahem.ttf
Normal file
BIN
tests/wpt/css-tests/css-text-3_dev/xhtml1print/support/Ahem.ttf
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(./Ahem.ttf);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Text Test: Word Spacing</title>
|
||||
<link href="mailto:nnethercote@mozilla.com" rel="author" title="Nicholas Nethercote" />
|
||||
<link href="http://www.w3.org/TR/css-text-3/#word-spacing" rel="help" />
|
||||
<link href="support/ahem.css" type="text/css" rel="stylesheet" />
|
||||
<link href="reference/text-word-spacing-ref.xht" rel="match" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that word-spacing works with percentages." name="assert" />
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url(support/Ahem.ttf);
|
||||
}
|
||||
/* We use Ahem to avoid very minor differences between the test and the
|
||||
reference that occur with certain font+platform combinations. */
|
||||
div { font-family: Ahem; font-size: 20px; }
|
||||
div.wsn100 { word-spacing: -100%; }
|
||||
div.wsn40 { word-spacing: -40%; }
|
||||
div.ws0 { word-spacing: 0%; }
|
||||
div.ws25 { word-spacing: calc(25% + 0px); }
|
||||
div.ws100 { word-spacing: 100%; }
|
||||
div.ws300 { word-spacing: calc(100% + 6em + 50%*4 - 12em/2); }
|
||||
div.ws400p1 { word-spacing: calc(400% + 1em); }
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the space between the words starts at zero and increases by
|
||||
one on each subsequent line.</p>
|
||||
<div class="wsn100">A Bc Def Ghij</div>
|
||||
<div class="ws0">A Bc Def Ghij</div>
|
||||
<div class="ws100">A Bc Def Ghij</div>
|
||||
<div class="wsn40">A     Bc     Def     Ghij</div>
|
||||
<div class="ws300">A Bc Def Ghij</div>
|
||||
<div class="ws25">A    Bc    Def    Ghij</div>
|
||||
<div class="ws400p1">A Bc Def Ghij</div>
|
||||
|
||||
</body></html>
|
|
@ -57,7 +57,7 @@
|
|||
<tbody id="s8">
|
||||
<tr><th><a href="chapter-8.xht">Chapter 8 -
|
||||
Spacing</a></th>
|
||||
<td>(6 Tests)</td></tr>
|
||||
<td>(7 Tests)</td></tr>
|
||||
</tbody>
|
||||
<tbody id="s9">
|
||||
<tr><th><a href="chapter-9.xht">Chapter 9 -
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue