mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
387 lines
No EOL
18 KiB
HTML
387 lines
No EOL
18 KiB
HTML
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
<html>
|
|
<head>
|
|
<title>White Space Processing Details - CSS Text Module Level 3 CR Test Suite</title>
|
|
<style type="text/css">
|
|
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
|
@import "../indices.css";
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>CSS Text Module Level 3 CR Test Suite</h1>
|
|
<h2>White Space Processing Details (27 tests)</h2>
|
|
<table width="100%">
|
|
<col id="test-column">
|
|
<col id="refs-column">
|
|
<col id="flags-column">
|
|
<col id="info-column">
|
|
<thead>
|
|
<tr>
|
|
<th>Test</th>
|
|
<th><abbr title="Rendering References">Refs</abbr></th>
|
|
<th>Flags</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="s4">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#white-space-processing">4 White Space Processing Details</a></th></tr>
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.#segment-break">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.#segment-normalization">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4.1">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#white-space-rules">4.1 The White Space Processing Rules</a></th></tr>
|
|
<!-- 1 tests -->
|
|
<tr id="bidi-004-4.1" class="ahem may21">
|
|
<td>
|
|
<a href="bidi-004.htm">bidi-004</a></td>
|
|
<td><a href="reference/bidi-004-ref.htm">=</a> </td>
|
|
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr><abbr class="may21" title="Behavior tested is preferred but optional">Optional</abbr></td>
|
|
<td>The bidi algorithm and inlines in CSS
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="s4.1.1">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4.1.1">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#white-space-phase-1">4.1.1 Phase I: Collapsing and Transformation</a></th></tr>
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.1.#collapse">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.1.#collapsible">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.1.#egbidiwscollapse">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.2">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4.1.2">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#line-break-transform">4.1.2 Segment Break Transformation Rules</a></th></tr>
|
|
<!-- 20 tests -->
|
|
<tr id="seg-break-transformation-000-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-000.htm">seg-break-transformation-000</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Whitespace and line break transformation
|
|
<ul class="assert">
|
|
<li>All spaces and tabs immediately preceding or following a segment break are removed. If no F, H, W or ZWSP characters involved, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-001-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-001.htm">seg-break-transformation-001</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Wide characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is W and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-002-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-002.htm">seg-break-transformation-002</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Fullwidth characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-003-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-003.htm">seg-break-transformation-003</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Halfwidth characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is H and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-004-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-004.htm">seg-break-transformation-004</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Won and halfwidth characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F or H and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-005-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-005.htm">seg-break-transformation-005</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Wide character and non-wide character around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of only one character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-006-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-006.htm">seg-break-transformation-006</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Fullwidth character and non-fullwidth character around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of only one character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-007-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-007.htm">seg-break-transformation-007</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Halfwidth character and non-halfwidth character around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of only one character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-008-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-008.htm">seg-break-transformation-008</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Wide and fullwidth characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-009-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-009.htm">seg-break-transformation-009</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Fullwidth and halfwidth characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-010-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-010.htm">seg-break-transformation-010</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Hangul characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed. Otherwise, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-011-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-011.htm">seg-break-transformation-011</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Hangul jamo characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed. Otherwise, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-012-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-012.htm">seg-break-transformation-012</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Hangul halfwidth jamo characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed. Otherwise, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-014-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-014.htm">seg-break-transformation-014</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Thai characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed. Otherwise, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-015-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-015.htm">seg-break-transformation-015</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Thai and Latin characters around line break
|
|
<ul class="assert">
|
|
<li>If the East Asian Width property of both the character before and after the line feed is F, W or H and neither side is Hangul, then the segment break is removed. Otherwise, the segment break is converted to a space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-016-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-016.htm">seg-break-transformation-016</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Thai with ZWSP before line break
|
|
<ul class="assert">
|
|
<li>If the character immediately before or immediately after the segment break is the zero-width space character (U+200B), then the break is removed, leaving behind the zero-width space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="seg-break-transformation-017-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="seg-break-transformation-017.htm">seg-break-transformation-017</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Thai with ZWSP after line break
|
|
<ul class="assert">
|
|
<li>If the character immediately before or immediately after the segment break is the zero-width space character (U+200B), then the break is removed, leaving behind the zero-width space.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="white-space-collapse-000-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="white-space-collapse-000.htm">white-space-collapse-000</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>White space collapse
|
|
<ul class="assert">
|
|
<li>Every tab is converted to a space. Any space immediately following another collapsible space is collapsed to have zero advance width.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="white-space-collapse-001-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="white-space-collapse-001.htm">white-space-collapse-001</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>White space and non-ASCII spaces
|
|
<ul class="assert">
|
|
<li>Any space immediately following another collapsible space is collapsed to have zero advance width. Only refers to U+0020, not other Unicode spaces.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="white-space-collapse-002-4.1.2" class="primary script">
|
|
<td><strong>
|
|
<a href="white-space-collapse-002.htm">white-space-collapse-002</a></strong></td>
|
|
<td></td>
|
|
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
|
<td>Whitespace and bidi control characters
|
|
<ul class="assert">
|
|
<li>All spaces and tabs immediately preceding or following a segment break are removed, ignoring bidi formatting characters as if they were not there.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="s4.1.3">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4.1.3">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#white-space-phase-2">4.1.3 Phase II: Trimming and Positioning</a></th></tr>
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.3.#preserved">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.1.3.#tab-stops">
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.2">
|
|
<tr><th colspan="4" scope="rowgroup">
|
|
<a href="#s4.2">+</a>
|
|
<a href="http://www.w3.org/TR/css-text-3/#tab-size-property">4.2 Tab Character Size: the ‘tab-size’ property</a></th></tr>
|
|
<!-- 0 tests -->
|
|
</tbody>
|
|
<tbody id="s4.2.#tab-size">
|
|
<!-- 6 tests -->
|
|
<tr id="tab-size-integer-001-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-integer-001.htm">tab-size-integer-001</a></strong></td>
|
|
<td><a href="reference/tab-size-integer-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: 4
|
|
<ul class="assert">
|
|
<li>Tab should be rendered as 4 times the space character&#8217;s advance width (U+0020)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="tab-size-integer-002-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-integer-002.htm">tab-size-integer-002</a></strong></td>
|
|
<td><a href="reference/tab-size-integer-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: -4
|
|
<ul class="assert">
|
|
<li>Tab-size negative values are not allowed</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="tab-size-integer-003-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-integer-003.htm">tab-size-integer-003</a></strong></td>
|
|
<td><a href="reference/tab-size-integer-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: 0
|
|
<ul class="assert">
|
|
<li>Tab should be rendered as 0 times the space character&#8217;s advance width (U+0020)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="tab-size-length-001-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-length-001.htm">tab-size-length-001</a></strong></td>
|
|
<td><a href="reference/tab-size-length-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: 1em
|
|
<ul class="assert">
|
|
<li>Tab should be rendered as 1em (20px)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="tab-size-length-002-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-length-002.htm">tab-size-length-002</a></strong></td>
|
|
<td><a href="reference/tab-size-length-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: -1em
|
|
<ul class="assert">
|
|
<li>Tab-size negative length values are not allowed</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="tab-size-percent-001-4.2.#tab-size" class="primary">
|
|
<td><strong>
|
|
<a href="tab-size-percent-001.htm">tab-size-percent-001</a></strong></td>
|
|
<td><a href="reference/tab-size-length-001-ref.htm">=</a> </td>
|
|
<td></td>
|
|
<td>tab-size: 100%
|
|
<ul class="assert">
|
|
<li>Tab-size percentage values are not allowed</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</body>
|
|
</html> |