mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
Update CSS tests to revision b9c63d615a65c4d96f26969bcd504d4e1c3cdab8
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<body>
|
||||
|
||||
<h1>CSS 2.1 Conformance Test Suite</h1>
|
||||
<h2>Assigning property values, Cascading, and Inheritance (145 tests)</h2>
|
||||
<h2>Assigning property values, Cascading, and Inheritance (117 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column">
|
||||
<col id="refs-column">
|
||||
@@ -30,316 +30,11 @@
|
||||
<tbody id="s6">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s6">+</a>
|
||||
<a href="https://www.w3.org/TR/CSS21/cascade.html">6 Assigning property values, Cascading, and Inheritance</a></th></tr>
|
||||
<!-- 28 tests -->
|
||||
<tr id="at-import-001-6" class="">
|
||||
<td>
|
||||
<a href="at-import-001.htm">at-import-001</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>@import not as the first declaration
|
||||
<ul class="assert">
|
||||
<li>An @import is ignored if it is not the first statement in a style block.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-002-6" class="">
|
||||
<td>
|
||||
<a href="at-import-002.htm">at-import-002</a></td>
|
||||
<td><a href="reference/filler-text-below-green.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>Importing external stylesheets with @import
|
||||
<ul class="assert">
|
||||
<li>An @import used to import external stylesheets.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-003-6" class="">
|
||||
<td>
|
||||
<a href="at-import-003.htm">at-import-003</a></td>
|
||||
<td><a href="reference/filler-text-below-green.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>Importing styles using @import with a string
|
||||
<ul class="assert">
|
||||
<li>An @import used with just a string is interpreted as if it had url(...) around it.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-004-6" class="">
|
||||
<td>
|
||||
<a href="at-import-004.htm">at-import-004</a></td>
|
||||
<td><a href="reference/no-red-filler-text-ref.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>Media dependency on @import set to 'print'
|
||||
<ul class="assert">
|
||||
<li>Specifying a media-dependency of print does not apply rules to the user agent display.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-005-6" class="">
|
||||
<td>
|
||||
<a href="at-import-005.htm">at-import-005</a></td>
|
||||
<td><a href="reference/filler-text-below-green.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>Media dependency on @import set to 'all'
|
||||
<ul class="assert">
|
||||
<li>Specifying the media-dependency of 'all' applies to all media types including user agent display.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-006-6" class="">
|
||||
<td>
|
||||
<a href="at-import-006.htm">at-import-006</a></td>
|
||||
<td><a href="reference/filler-text-below-green.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>Media dependency on @import set to 'screen'
|
||||
<ul class="assert">
|
||||
<li>Specifying the media-dependent import rules to 'screen' applies to user agent display.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="at-import-007-6" class="">
|
||||
<td>
|
||||
<a href="at-import-007.htm">at-import-007</a></td>
|
||||
<td><a href="reference/filler-text-below-green.htm">=</a> </td>
|
||||
<td></td>
|
||||
<td>@import with @charset
|
||||
<ul class="assert">
|
||||
<li>An @import is valid after @charset.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="html-precedence-002-6" class="">
|
||||
<td>
|
||||
<a href="html-precedence-002.htm">html-precedence-002</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Universal selector precedence
|
||||
<ul class="assert">
|
||||
<li>The universal selector and the 'color' attribute have the same specificity. The universal selector is applied since CSS takes precedence.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="html-precedence-003-6" class="userstyle">
|
||||
<td>
|
||||
<a href="html-precedence-003.htm">html-precedence-003</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>User style sheet precedence
|
||||
<ul class="assert">
|
||||
<li>The 'font' element's 'color' attribute trumps the user stylesheet's universal selector. They have the same specificity but the font element is a virtual author rule.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="inherited-value-002-6" class="ahem">
|
||||
<td>
|
||||
<a href="inherited-value-002.htm">inherited-value-002</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>Inheriting computed values
|
||||
<ul class="assert">
|
||||
<li>The computed value of a font-size with a percentage is the percentage of its parent's font-size value. A nested element which also has a percentage applies the parents' specified value (which is inherited).</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-001-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-001.htm">user-stylesheet-001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>User defined stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>User stylesheet can be applied to the page.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-002-6" class="interact userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-002.htm">user-stylesheet-002</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>User defined stylesheet can be applied and persisted
|
||||
<ul class="assert">
|
||||
<li>The user stylesheet is still applied after close and reopen the user agent window.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-003-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-003.htm">user-stylesheet-003</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Rules with normal declarations in an user defined stylesheet can be overriden by rules with normal declarations from author in a style block
|
||||
<ul class="assert">
|
||||
<li>A CSS rule (with normal - not !important - declarations) in an author style sheet have more weight than a CSS rule (with normal - not !important -declarations) in an user style sheet.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-004-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-004.htm">user-stylesheet-004</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Rules with normal declarations in an user defined stylesheet can be overriden by normal declarations from author in an inline style attribute
|
||||
<ul class="assert">
|
||||
<li>A normal - not !important - declaration in an inline style from author have more weight than a CSS rule (with normal - not !important -) declarations in an user style sheet.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-005-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-005.htm">user-stylesheet-005</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Descendant selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The descendant selector defined in user stylesheet is applied to the appropriate element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-006-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-006.htm">user-stylesheet-006</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Child selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The child selector defined in user stylesheet is applied to the appropriate element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-007-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-007.htm">user-stylesheet-007</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Adjacent sibling selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The adjacent sibling selector defined in user stylesheet is applied to the appropriate element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-008-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-008.htm">user-stylesheet-008</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Attribute selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The attribute selector defined in user stylesheet is applied to the appropriate element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-009-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-009.htm">user-stylesheet-009</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>ID selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The ID selector defined in user stylesheet is applied to the appropriate element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-010-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-010.htm">user-stylesheet-010</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-class selector :first-child defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-class selector :first-child defined in user stylesheet is applied to the first child of an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-011-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-011.htm">user-stylesheet-011</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-element first-line selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-element selector :first-line defined in user stylesheet is applied to the first line of an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-012-6" class="history userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-012.htm">user-stylesheet-012</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="history" title="Requires session history">History</abbr><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Link defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-class selector :link defined in user stylesheet is applied to all links.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-013-6" class="interact userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-013.htm">user-stylesheet-013</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Visited selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-class selector :visited defined in user stylesheet is applied when a link has already been visited.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-014-6" class="interact userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-014.htm">user-stylesheet-014</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Hover defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-class selector :hover defined in user stylesheet is applied when the mouse is above an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-015-6" class="interact userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-015.htm">user-stylesheet-015</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-class :active defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-class selector :active defined in user stylesheet is implemented.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-016-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-016.htm">user-stylesheet-016</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-element first-letter selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-element selector :first-letter defined in user stylesheet is applied to the first letter of an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-017-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-017.htm">user-stylesheet-017</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-element before selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-element selector :before defined in user stylesheet is inserted before an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="user-stylesheet-018-6" class="userstyle">
|
||||
<td>
|
||||
<a href="user-stylesheet-018.htm">user-stylesheet-018</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="userstyle" title="Requires user style sheet or other special setting">User Style</abbr></td>
|
||||
<td>Pseudo-element after selector defined in user stylesheet can be applied
|
||||
<ul class="assert">
|
||||
<li>The pseudo-element selector :after defined in user stylesheet is inserted after an element.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<a href="https://www.w3.org/TR/CSS21/cascade.html#q6.0">6 Assigning property values, Cascading, and Inheritance</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#annoying-warning">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
|
||||
Reference in New Issue
Block a user