Update CSS tests to revision 7d0ff6117ee51720c307ea24d413d13eb5abf3e6

This commit is contained in:
Ms2ger 2016-03-01 16:08:43 +01:00
parent 40c52d55e2
commit 349c75536d
7391 changed files with 304135 additions and 153491 deletions

View file

@ -30,7 +30,7 @@
<tbody id="s1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s1">+</a>
<a href="http://www.w3.org/TR/cssom/#introduction">1 Introduction</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#introduction">1 Introduction</a></th></tr>
<!-- 0 tests -->
</tbody>
</table>

View file

@ -30,13 +30,13 @@
<tbody id="s10">
<tr><th colspan="4" scope="rowgroup">
<a href="#s10">+</a>
<a href="http://www.w3.org/TR/cssom/#iana-considerations">10 IANA Considerations</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#iana-considerations">10 IANA Considerations</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s10.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s10.1">+</a>
<a href="http://www.w3.org/TR/cssom/#default-style">10.1 Default-Style</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#default-style">10.1 Default-Style</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s.#abstract">

View file

@ -30,7 +30,7 @@
<tbody id="s2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s2">+</a>
<a href="http://www.w3.org/TR/cssom/#conformance">2 Conformance</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#conformance">2 Conformance</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s2.#hardwareLimitations">

View file

@ -30,7 +30,7 @@
<tbody id="s3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s3">+</a>
<a href="http://www.w3.org/TR/cssom/#terminology">3 Terminology</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#terminology">3 Terminology</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s3.#::after-pseudo-element">
@ -93,7 +93,7 @@
<tbody id="s3.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s3.1">+</a>
<a href="http://www.w3.org/TR/cssom/#common-serializing-idioms">3.1 Common Serializing Idioms</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#common-serializing-idioms">3.1 Common Serializing Idioms</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s3.1.#escape-a-character">

View file

@ -30,13 +30,13 @@
<tbody id="s4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s4">+</a>
<a href="http://www.w3.org/TR/cssom/#media-queries">4 Media Queries</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#media-queries">4 Media Queries</a></th></tr>
<!-- 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/cssom/#parsing-media-queries">4.1 Parsing Media Queries</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#parsing-media-queries">4.1 Parsing Media Queries</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s4.1.#parse-a-media-query">
@ -48,7 +48,7 @@
<tbody id="s4.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.2">+</a>
<a href="http://www.w3.org/TR/cssom/#serializing-media-queries">4.2 Serializing Media Queries</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#serializing-media-queries">4.2 Serializing Media Queries</a></th></tr>
<!-- 2 tests -->
<tr id="matchmedia-4.2" class="dom script">
<td>
@ -58,9 +58,9 @@
<td>CSSOM View matchMedia and MediaQueryList
</td>
</tr>
<tr id="medialist-interfaces-003-4.2" class="primary dom script">
<td><strong>
<a href="medialist-interfaces-003.htm">medialist-interfaces-003</a></strong></td>
<tr id="medialist-interfaces-003-4.2" class="dom script">
<td>
<a href="medialist-interfaces-003.htm">medialist-interfaces-003</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM Media Query Serialization
@ -79,7 +79,7 @@
<tbody id="s4.2.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.2.1">+</a>
<a href="http://www.w3.org/TR/cssom/#serializing-media-feature-values">4.2.1 Serializing Media Feature Values</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#serializing-media-feature-values">4.2.1 Serializing Media Feature Values</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s4.2.1.#serialize-a-media-feature-value">
@ -88,7 +88,7 @@
<tbody id="s4.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.3">+</a>
<a href="http://www.w3.org/TR/cssom/#comparing-media-queries">4.3 Comparing Media Queries</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#comparing-media-queries">4.3 Comparing Media Queries</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s4.3.#compare-media-queries">
@ -97,19 +97,19 @@
<tbody id="s4.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.4">+</a>
<a href="http://www.w3.org/TR/cssom/#the-medialist-interface">4.4 The MediaList Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-medialist-interface">4.4 The MediaList Interface</a></th></tr>
<!-- 4 tests -->
<tr id="medialist-4.4" class="primary script">
<td><strong>
<a href="MediaList.htm">medialist</a></strong></td>
<tr id="medialist-4.4" class="script">
<td>
<a href="MediaList.htm">medialist</a></td>
<td></td>
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>the MediaList interface
</td>
</tr>
<tr id="medialist-interfaces-001-4.4" class="primary dom script">
<td><strong>
<a href="medialist-interfaces-001.htm">medialist-interfaces-001</a></strong></td>
<tr id="medialist-interfaces-001-4.4" class="dom script">
<td>
<a href="medialist-interfaces-001.htm">medialist-interfaces-001</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM Media Query List Serialization
@ -118,9 +118,9 @@
</ul>
</td>
</tr>
<tr id="medialist-interfaces-002-4.4" class="primary dom script">
<td><strong>
<a href="medialist-interfaces-002.htm">medialist-interfaces-002</a></strong></td>
<tr id="medialist-interfaces-002-4.4" class="dom script">
<td>
<a href="medialist-interfaces-002.htm">medialist-interfaces-002</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM MediaList Interfaces
@ -129,9 +129,9 @@
</ul>
</td>
</tr>
<tr id="medialist-interfaces-004-4.4" class="primary dom script">
<td><strong>
<a href="medialist-interfaces-004.htm">medialist-interfaces-004</a></strong></td>
<tr id="medialist-interfaces-004-4.4" class="dom script">
<td>
<a href="medialist-interfaces-004.htm">medialist-interfaces-004</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM MediaList Interfaces

View file

@ -13,7 +13,7 @@
<body>
<h1>CSS Object Model Level 1 CR Test Suite</h1>
<h2>Selectors (1 tests)</h2>
<h2>Selectors (2 tests)</h2>
<table width="100%">
<col id="test-column">
<col id="refs-column">
@ -30,13 +30,13 @@
<tbody id="s5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s5">+</a>
<a href="http://www.w3.org/TR/cssom/#selectors">5 Selectors</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#selectors">5 Selectors</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s5.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s5.1">+</a>
<a href="http://www.w3.org/TR/cssom/#parsing-selectors">5.1 Parsing Selectors</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#parsing-selectors">5.1 Parsing Selectors</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s5.1.#parse-a-group-of-selectors">
@ -45,8 +45,8 @@
<tbody id="s5.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s5.2">+</a>
<a href="http://www.w3.org/TR/cssom/#serializing-selectors">5.2 Serializing Selectors</a></th></tr>
<!-- 1 tests -->
<a href="https://www.w3.org/TR/cssom/#serializing-selectors">5.2 Serializing Selectors</a></th></tr>
<!-- 2 tests -->
<tr id="selectorserialize-5.2" class="primary dom script">
<td><strong>
<a href="selectorSerialize.htm">selectorserialize</a></strong></td>
@ -55,6 +55,14 @@
<td>test serialized selector which is only one simple selector in the sequence of simple selectors
</td>
</tr>
<tr id="serialize-namespaced-type-selectors-5.2" class="primary dom script">
<td><strong>
<a href="serialize-namespaced-type-selectors.htm">serialize-namespaced-type-selectors</a></strong></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>test serialization of type selectors and namespace prefixes
</td>
</tr>
</tbody>
<tbody id="s5.2.#serialize-a-group-of-selectors">
<!-- 0 tests -->

View file

@ -30,17 +30,17 @@
<tbody id="s6">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6">+</a>
<a href="http://www.w3.org/TR/cssom/#css">6 CSS</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css">6 CSS</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.1">+</a>
<a href="http://www.w3.org/TR/cssom/#css-style-sheets">6.1 CSS Style Sheets</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-style-sheets">6.1 CSS Style Sheets</a></th></tr>
<!-- 1 tests -->
<tr id="style-sheet-interfaces-001-6.1" class="primary dom script">
<td><strong>
<a href="style-sheet-interfaces-001.htm">style-sheet-interfaces-001</a></strong></td>
<tr id="style-sheet-interfaces-001-6.1" class="dom script">
<td>
<a href="style-sheet-interfaces-001.htm">style-sheet-interfaces-001</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM StyleSheet Initial Values
@ -89,7 +89,7 @@
<tbody id="s6.1.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.1.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-stylesheet-interface">6.1.1 The StyleSheet Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-stylesheet-interface">6.1.1 The StyleSheet Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.1.1.#dom-stylesheet-disabled">
@ -119,11 +119,11 @@
<tbody id="s6.1.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.1.2">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssstylesheet-interface">6.1.2 The CSSStyleSheet Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssstylesheet-interface">6.1.2 The CSSStyleSheet Interface</a></th></tr>
<!-- 1 tests -->
<tr id="style-sheet-interfaces-002-6.1.2" class="primary dom script">
<td><strong>
<a href="style-sheet-interfaces-002.htm">style-sheet-interfaces-002</a></strong></td>
<tr id="style-sheet-interfaces-002-6.1.2" class="dom script">
<td>
<a href="style-sheet-interfaces-002.htm">style-sheet-interfaces-002</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM StyleSheet Modify Rule List
@ -151,7 +151,7 @@
<tbody id="s6.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2">+</a>
<a href="http://www.w3.org/TR/cssom/#css-style-sheet-collections">6.2 CSS Style Sheet Collections</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-style-sheet-collections">6.2 CSS Style Sheet Collections</a></th></tr>
<!-- 2 tests -->
<tr id="ttwf-cssom-doc-ext-load-count-6.2" class="dom script">
<td>
@ -218,13 +218,13 @@
<tbody id="s6.2.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-http-default-style-header">6.2.1 The HTTP Default-Style Header</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-http-default-style-header">6.2.1 The HTTP Default-Style Header</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.2.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.2">+</a>
<a href="http://www.w3.org/TR/cssom/#the-stylesheetlist-interface">6.2.2 The StyleSheetList Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-stylesheetlist-interface">6.2.2 The StyleSheetList Interface</a></th></tr>
<!-- 3 tests -->
<tr id="ttwf-cssom-doc-ext-load-count-6.2.2" class="dom script">
<td>
@ -272,11 +272,11 @@
<tbody id="s6.2.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.3">+</a>
<a href="http://www.w3.org/TR/cssom/#extensions-to-the-document-interface">6.2.3 Extensions to the Document Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#extensions-to-the-document-interface">6.2.3 Extensions to the Document Interface</a></th></tr>
<!-- 3 tests -->
<tr id="ttwf-cssom-doc-ext-load-count-6.2.3" class="primary dom script">
<td><strong>
<a href="ttwf-cssom-doc-ext-load-count.htm">ttwf-cssom-doc-ext-load-count</a></strong></td>
<tr id="ttwf-cssom-doc-ext-load-count-6.2.3" class="dom script">
<td>
<a href="ttwf-cssom-doc-ext-load-count.htm">ttwf-cssom-doc-ext-load-count</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM - Extensions to the Document Interface: StyleSheetList length reflects dynamically loaded and unloaded sheets
@ -285,9 +285,9 @@
</ul>
</td>
</tr>
<tr id="ttwf-cssom-doc-ext-load-tree-order-6.2.3" class="primary dom script">
<td><strong>
<a href="ttwf-cssom-doc-ext-load-tree-order.htm">ttwf-cssom-doc-ext-load-tree-order</a></strong></td>
<tr id="ttwf-cssom-doc-ext-load-tree-order-6.2.3" class="dom script">
<td>
<a href="ttwf-cssom-doc-ext-load-tree-order.htm">ttwf-cssom-doc-ext-load-tree-order</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM - Extensions to the Document Interface: Stylesheet header load order
@ -296,9 +296,9 @@
</ul>
</td>
</tr>
<tr id="ttwf-cssom-document-extension-6.2.3" class="primary dom script">
<td><strong>
<a href="ttwf-cssom-document-extension.htm">ttwf-cssom-document-extension</a></strong></td>
<tr id="ttwf-cssom-document-extension-6.2.3" class="dom script">
<td>
<a href="ttwf-cssom-document-extension.htm">ttwf-cssom-document-extension</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded
@ -329,31 +329,31 @@
<tbody id="s6.2.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.4">+</a>
<a href="http://www.w3.org/TR/cssom/#interaction-with-the-user-interface">6.2.4 Interaction with the User Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#interaction-with-the-user-interface">6.2.4 Interaction with the User Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.2.4.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.4.1">+</a>
<a href="http://www.w3.org/TR/cssom/#persisting-the-selected-css-style-sheet-set">6.2.4.1 Persisting the selected CSS style sheet set</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#persisting-the-selected-css-style-sheet-set">6.2.4.1 Persisting the selected CSS style sheet set</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.2.5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.2.5">+</a>
<a href="http://www.w3.org/TR/cssom/#examples">6.2.5 Examples</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#examples">6.2.5 Examples</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3">+</a>
<a href="http://www.w3.org/TR/cssom/#style-sheet-association">6.3 Style Sheet Association</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#style-sheet-association">6.3 Style Sheet Association</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3.1">+</a>
<a href="http://www.w3.org/TR/cssom/#fetching-css-style-sheets">6.3.1 Fetching CSS style sheets</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#fetching-css-style-sheets">6.3.1 Fetching CSS style sheets</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3.1.#fetch-a-css-style-sheet">
@ -362,7 +362,7 @@
<tbody id="s6.3.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3.2">+</a>
<a href="http://www.w3.org/TR/cssom/#the-linkstyle-interface">6.3.2 The LinkStyle Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-linkstyle-interface">6.3.2 The LinkStyle Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3.2.#associated-css-style-sheet">
@ -377,13 +377,13 @@
<tbody id="s6.3.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3.3">+</a>
<a href="http://www.w3.org/TR/cssom/#requirements-on-specifications">6.3.3 Requirements on specifications</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#requirements-on-specifications">6.3.3 Requirements on specifications</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3.4">+</a>
<a href="http://www.w3.org/TR/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction">6.3.4 Requirements on User Agents Implementing the xml-stylesheet processing instruction</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction">6.3.4 Requirements on User Agents Implementing the xml-stylesheet processing instruction</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.3.4.#prolog">
@ -392,17 +392,17 @@
<tbody id="s6.3.5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.3.5">+</a>
<a href="http://www.w3.org/TR/cssom/#requirements-on-user-agents-implementing-the-http-link-header">6.3.5 Requirements on User Agents Implementing the HTTP Link Header</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#requirements-on-user-agents-implementing-the-http-link-header">6.3.5 Requirements on User Agents Implementing the HTTP Link Header</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4">+</a>
<a href="http://www.w3.org/TR/cssom/#css-rules">6.4 CSS Rules</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-rules">6.4 CSS Rules</a></th></tr>
<!-- 2 tests -->
<tr id="cssimportrule-6.4" class="primary dom script">
<td><strong>
<a href="cssimportrule.htm">cssimportrule</a></strong></td>
<tr id="cssimportrule-6.4" class="dom script">
<td>
<a href="cssimportrule.htm">cssimportrule</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM CSSRule CSSImportRule interface
@ -411,9 +411,9 @@
</ul>
</td>
</tr>
<tr id="cssstylerule-6.4" class="primary dom script">
<td><strong>
<a href="cssstylerule.htm">cssstylerule</a></strong></td>
<tr id="cssstylerule-6.4" class="dom script">
<td>
<a href="cssstylerule.htm">cssstylerule</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM CSSRule CSSStyleRule interface
@ -456,11 +456,11 @@
<tbody id="s6.4.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssrulelist-interface">6.4.1 The CSSRuleList Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssrulelist-interface">6.4.1 The CSSRuleList Interface</a></th></tr>
<!-- 1 tests -->
<tr id="index-003-6.4.1" class="primary dom script">
<td><strong>
<a href="index-003.htm">index-003</a></strong></td>
<tr id="index-003-6.4.1" class="dom script">
<td>
<a href="index-003.htm">index-003</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSS OM: CSS Values
@ -482,7 +482,7 @@
<tbody id="s6.4.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.2">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssrule-interface">6.4.2 The CSSRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssrule-interface">6.4.2 The CSSRule Interface</a></th></tr>
<!-- 3 tests -->
<tr id="cssimportrule-6.4.2" class="dom script">
<td>
@ -560,7 +560,7 @@
<tbody id="s6.4.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.3">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssstylerule-interface">6.4.3 The CSSStyleRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssstylerule-interface">6.4.3 The CSSStyleRule Interface</a></th></tr>
<!-- 1 tests -->
<tr id="cssstylerule-6.4.3" class="dom script">
<td>
@ -589,7 +589,7 @@
<tbody id="s6.4.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.4">+</a>
<a href="http://www.w3.org/TR/cssom/#the-csscharsetrule-interface">6.4.4 The CSSCharsetRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-csscharsetrule-interface">6.4.4 The CSSCharsetRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.4.#csscharsetrule">
@ -601,7 +601,7 @@
<tbody id="s6.4.5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.5">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssimportrule-interface">6.4.5 The CSSImportRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssimportrule-interface">6.4.5 The CSSImportRule Interface</a></th></tr>
<!-- 1 tests -->
<tr id="cssimportrule-6.4.5" class="dom script">
<td>
@ -630,7 +630,7 @@
<tbody id="s6.4.6">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.6">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssgroupingrule-interface">6.4.6 The CSSGroupingRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssgroupingrule-interface">6.4.6 The CSSGroupingRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.6.#cssgroupingrule">
@ -648,7 +648,7 @@
<tbody id="s6.4.7">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.7">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssmediarule-interface">6.4.7 The CSSMediaRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssmediarule-interface">6.4.7 The CSSMediaRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.7.#cssmediarule">
@ -660,7 +660,7 @@
<tbody id="s6.4.8">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.8">+</a>
<a href="http://www.w3.org/TR/cssom/#the-csspagerule-interface">6.4.8 The CSSPageRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-csspagerule-interface">6.4.8 The CSSPageRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.8.#csspagerule">
@ -681,7 +681,7 @@
<tbody id="s6.4.9">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.9">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssmarginrule-interface">6.4.9 The CSSMarginRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssmarginrule-interface">6.4.9 The CSSMarginRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.9.#cssmarginrule">
@ -696,7 +696,7 @@
<tbody id="s6.4.10">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.4.10">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssnamespacerule-interface">6.4.10 The CSSNamespaceRule Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssnamespacerule-interface">6.4.10 The CSSNamespaceRule Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.4.10.#cssnamespacerule">
@ -711,7 +711,7 @@
<tbody id="s6.5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.5">+</a>
<a href="http://www.w3.org/TR/cssom/#css-declarations">6.5 CSS Declarations</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-declarations">6.5 CSS Declarations</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.5.#concept-css-declaration-case-sensitive-flag">
@ -732,7 +732,7 @@
<tbody id="s6.6">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.6">+</a>
<a href="http://www.w3.org/TR/cssom/#css-declaration-blocks">6.6 CSS Declaration Blocks</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-declaration-blocks">6.6 CSS Declaration Blocks</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.6.#concept-css-declaration-block-declarations">
@ -765,7 +765,7 @@
<tbody id="s6.6.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.6.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-cssstyledeclaration-interface">6.6.1 The CSSStyleDeclaration Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-cssstyledeclaration-interface">6.6.1 The CSSStyleDeclaration Interface</a></th></tr>
<!-- 6 tests -->
<tr id="computed-style-001-6.6.1" class="dom script">
<td>
@ -778,9 +778,9 @@
</ul>
</td>
</tr>
<tr id="css-style-declaration-modifications-6.6.1" class="primary dom script">
<td><strong>
<a href="css-style-declaration-modifications.htm">css-style-declaration-modifications</a></strong></td>
<tr id="css-style-declaration-modifications-6.6.1" class="dom script">
<td>
<a href="css-style-declaration-modifications.htm">css-style-declaration-modifications</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSStyleDeclaration Interface
@ -789,33 +789,33 @@
</ul>
</td>
</tr>
<tr id="cssom-cssstyledeclaration-set-6.6.1" class="primary dom script">
<td><strong>
<a href="cssom-cssstyledeclaration-set.htm">cssom-cssstyledeclaration-set</a></strong></td>
<tr id="cssom-cssstyledeclaration-set-6.6.1" class="dom script">
<td>
<a href="cssom-cssstyledeclaration-set.htm">cssom-cssstyledeclaration-set</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM: CSSStyleDeclaration on HTMLElement represents inline style changes
</td>
</tr>
<tr id="cssom-csstext-serialize-6.6.1" class="primary dom script">
<td><strong>
<a href="cssom-cssText-serialize.htm">cssom-csstext-serialize</a></strong></td>
<tr id="cssom-csstext-serialize-6.6.1" class="dom script">
<td>
<a href="cssom-cssText-serialize.htm">cssom-csstext-serialize</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>getting cssText must return the result of serializing the CSS declaration blocks.
</td>
</tr>
<tr id="cssom-setproperty-shorthand-6.6.1" class="primary dom script">
<td><strong>
<a href="cssom-setProperty-shorthand.htm">cssom-setproperty-shorthand</a></strong></td>
<tr id="cssom-setproperty-shorthand-6.6.1" class="dom script">
<td>
<a href="cssom-setProperty-shorthand.htm">cssom-setproperty-shorthand</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM: CSSStyleDeclaration (set|remove)PropertyValue sets/removes shorthand properties
</td>
</tr>
<tr id="cssstyledeclaration-mutability-6.6.1" class="primary dom script">
<td><strong>
<a href="cssstyledeclaration-mutability.htm">cssstyledeclaration-mutability</a></strong></td>
<tr id="cssstyledeclaration-mutability-6.6.1" class="dom script">
<td>
<a href="cssstyledeclaration-mutability.htm">cssstyledeclaration-mutability</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSSOM: CSSStyleDeclaration is mutable and immutable in various settings
@ -890,11 +890,11 @@
<tbody id="s6.7">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.7">+</a>
<a href="http://www.w3.org/TR/cssom/#css-values">6.7 CSS Values</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#css-values">6.7 CSS Values</a></th></tr>
<!-- 2 tests -->
<tr id="index-001-6.7" class="primary dom script">
<td><strong>
<a href="index-001.htm">index-001</a></strong></td>
<tr id="index-001-6.7" class="dom script">
<td>
<a href="index-001.htm">index-001</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSS OM: CSS Values
@ -903,9 +903,9 @@
</ul>
</td>
</tr>
<tr id="index-002-6.7" class="primary dom script">
<td><strong>
<a href="index-002.htm">index-002</a></strong></td>
<tr id="index-002-6.7" class="dom script">
<td>
<a href="index-002.htm">index-002</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>CSS OM: CSS Values
@ -918,7 +918,7 @@
<tbody id="s6.7.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.7.1">+</a>
<a href="http://www.w3.org/TR/cssom/#parsing-css-values">6.7.1 Parsing CSS Values</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#parsing-css-values">6.7.1 Parsing CSS Values</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s6.7.1.#parse-a-css-value">
@ -927,7 +927,7 @@
<tbody id="s6.7.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.7.2">+</a>
<a href="http://www.w3.org/TR/cssom/#serializing-css-values">6.7.2 Serializing CSS Values</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#serializing-css-values">6.7.2 Serializing CSS Values</a></th></tr>
<!-- 3 tests -->
<tr id="shape-outside-shape-arguments-000-6.7.2" class="dom script">
<td>
@ -972,7 +972,7 @@
<tbody id="s6.7.2.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s6.7.2.1">+</a>
<a href="http://www.w3.org/TR/cssom/#examples-0">6.7.2.1 Examples</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#examples-0">6.7.2.1 Examples</a></th></tr>
<!-- 0 tests -->
</tbody>
</table>

View file

@ -30,13 +30,13 @@
<tbody id="s7">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7">+</a>
<a href="http://www.w3.org/TR/cssom/#dom-access-to-css-declaration-blocks">7 DOM Access to CSS Declaration Blocks</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#dom-access-to-css-declaration-blocks">7 DOM Access to CSS Declaration Blocks</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s7.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-elementcssinlinestyle-interface">7.1 The ElementCSSInlineStyle Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-elementcssinlinestyle-interface">7.1 The ElementCSSInlineStyle Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s7.1.#dom-elementcssinlinestyle-style">
@ -44,9 +44,9 @@
</tbody>
<tbody id="s7.1.#elementcssinlinestyle">
<!-- 1 tests -->
<tr id="inline-style-001-7.1.#elementcssinlinestyle" class="primary dom script">
<td><strong>
<a href="inline-style-001.htm">inline-style-001</a></strong></td>
<tr id="inline-style-001-7.1.#elementcssinlinestyle" class="dom script">
<td>
<a href="inline-style-001.htm">inline-style-001</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>Inline CSSStyleDeclaration
@ -59,11 +59,11 @@
<tbody id="s7.2">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7.2">+</a>
<a href="http://www.w3.org/TR/cssom/#extensions-to-the-window-interface">7.2 Extensions to the Window Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#extensions-to-the-window-interface">7.2 Extensions to the Window Interface</a></th></tr>
<!-- 1 tests -->
<tr id="computed-style-001-7.2" class="primary dom script">
<td><strong>
<a href="computed-style-001.htm">computed-style-001</a></strong></td>
<tr id="computed-style-001-7.2" class="dom script">
<td>
<a href="computed-style-001.htm">computed-style-001</a></td>
<td></td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
<td>getComputedStyle
@ -79,7 +79,7 @@
<tbody id="s7.3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7.3">+</a>
<a href="http://www.w3.org/TR/cssom/#the-getstyleutils-interface">7.3 The GetStyleUtils Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-getstyleutils-interface">7.3 The GetStyleUtils Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s7.3.#associated-document">
@ -100,7 +100,7 @@
<tbody id="s7.4">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7.4">+</a>
<a href="http://www.w3.org/TR/cssom/#extensions-to-the-element-interface">7.4 Extensions to the Element Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#extensions-to-the-element-interface">7.4 Extensions to the Element Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s7.4.#dom-element-pseudo">
@ -109,7 +109,7 @@
<tbody id="s7.5">
<tr><th colspan="4" scope="rowgroup">
<a href="#s7.5">+</a>
<a href="http://www.w3.org/TR/cssom/#the-pseudoelement-interface">7.5 The PseudoElement Interface</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-pseudoelement-interface">7.5 The PseudoElement Interface</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s7.5.#pseudoelement">

View file

@ -30,13 +30,13 @@
<tbody id="s8">
<tr><th colspan="4" scope="rowgroup">
<a href="#s8">+</a>
<a href="http://www.w3.org/TR/cssom/#utility-apis">8 Utility APIs</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#utility-apis">8 Utility APIs</a></th></tr>
<!-- 0 tests -->
</tbody>
<tbody id="s8.1">
<tr><th colspan="4" scope="rowgroup">
<a href="#s8.1">+</a>
<a href="http://www.w3.org/TR/cssom/#the-css.escape()-method">8.1 The CSS.escape() Method</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#the-css.escape()-method">8.1 The CSS.escape() Method</a></th></tr>
<!-- 1 tests -->
<tr id="escape-8.1" class="primary script">
<td><strong>

View file

@ -30,7 +30,7 @@
<tbody id="s9">
<tr><th colspan="4" scope="rowgroup">
<a href="#s9">+</a>
<a href="http://www.w3.org/TR/cssom/#resolved-values">9 Resolved Values</a></th></tr>
<a href="https://www.w3.org/TR/cssom/#resolved-values">9 Resolved Values</a></th></tr>
<!-- 1 tests -->
<tr id="computed-style-001-9" class="dom script">
<td>

View file

@ -0,0 +1,257 @@
<!DOCTYPE html>
<html><head>
<title>CSSOM Test: test serialization of type selectors and namespace prefixes</title>
<link href="mailto:rune@opera.com" rel="author" title="Rune Lillesveen">
<link href="https://drafts.csswg.org/cssom-1/#serializing-selectors" rel="help">
<meta content="dom" name="flags">
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style id="teststyles">
</style>
</head>
<body>
<div id="log"></div>
<script>
var ns_rule = "@namespace ns url(ns);";
var default_ns_rules = "@namespace url(default_ns); @namespace nsdefault url(default_ns);" + ns_rule;
function assert_selector_serializes_to(source, expected_result) {
var style_element = document.getElementById("teststyles");
style_element.firstChild.data = source + "{ font-size: 1em; }";
var sheet = style_element.sheet;
assert_equals(sheet.cssRules[sheet.cssRules.length - 1].selectorText, expected_result);
}
test(function() {
assert_selector_serializes_to(ns_rule + "e", "e");
assert_selector_serializes_to(default_ns_rules + "e", "e");
}, "Simple type selector");
test(function() {
assert_selector_serializes_to(ns_rule + "|e", "|e");
assert_selector_serializes_to(default_ns_rules + "|e", "|e");
}, "Type selector without a namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e", "e");
assert_selector_serializes_to(default_ns_rules + "*|e", "*|e");
}, "Type selector with any namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "*", "*");
assert_selector_serializes_to(default_ns_rules + "*", "*");
}, "Universal selector");
test(function() {
assert_selector_serializes_to(ns_rule + "|*", "|*");
assert_selector_serializes_to(default_ns_rules + "|*", "|*");
}, "Universal selector without a namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*", "*");
assert_selector_serializes_to(default_ns_rules + "*|*", "*|*");
}, "Universal selector in any namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e", "ns|e");
assert_selector_serializes_to(default_ns_rules + "ns|e", "ns|e");
}, "Type selector with namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*", "ns|*");
assert_selector_serializes_to(default_ns_rules + "ns|*", "ns|*");
}, "Universal selector with namespace");
test(function() {
assert_selector_serializes_to(ns_rule + "e.c", "e.c");
assert_selector_serializes_to(default_ns_rules + "e.c", "e.c");
}, "Simple type selector followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "e#i", "e#i");
assert_selector_serializes_to(default_ns_rules + "e#i", "e#i");
}, "Simple type selector followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "e:hover", "e:hover");
assert_selector_serializes_to(default_ns_rules + "e:hover", "e:hover");
}, "Simple type selector followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "e::before", "e::before");
assert_selector_serializes_to(default_ns_rules + "e::before", "e::before");
}, "Simple type selector followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "e[attr]", "e[attr]");
assert_selector_serializes_to(default_ns_rules + "e[attr]", "e[attr]");
}, "Simple type selector followed by atttribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "|e.c", "|e.c");
assert_selector_serializes_to(default_ns_rules + "|e.c", "|e.c");
}, "Type selector without a namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "|e#i", "|e#i");
assert_selector_serializes_to(default_ns_rules + "|e#i", "|e#i");
}, "Type selector without a namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "|e:hover", "|e:hover");
assert_selector_serializes_to(default_ns_rules + "|e:hover", "|e:hover");
}, "Type selector without a namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "|e::before", "|e::before");
assert_selector_serializes_to(default_ns_rules + "|e::before", "|e::before");
}, "Type selector without a namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "|e[attr]", "|e[attr]");
assert_selector_serializes_to(default_ns_rules + "|e[attr]", "|e[attr]");
}, "Type selector without a namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e.c", "e.c");
assert_selector_serializes_to(default_ns_rules + "*|e.c", "*|e.c");
}, "Type selector with any namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e#id", "e#id");
assert_selector_serializes_to(default_ns_rules + "*|e#id", "*|e#id");
}, "Type selector with any namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e:hover", "e:hover");
assert_selector_serializes_to(default_ns_rules + "*|e:hover", "*|e:hover");
}, "Type selector with any namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e::before", "e::before");
assert_selector_serializes_to(default_ns_rules + "*|e::before", "*|e::before");
}, "Type selector with any namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "*|e[attr]", "e[attr]");
assert_selector_serializes_to(default_ns_rules + "*|e[attr]", "*|e[attr]");
}, "Type selector with any namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "*.c", ".c");
assert_selector_serializes_to(default_ns_rules + "*.c", ".c");
}, "Universal selector followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "*#i", "#i");
assert_selector_serializes_to(default_ns_rules + "*#i", "#i");
}, "Universal selector followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "*:hover", ":hover");
assert_selector_serializes_to(default_ns_rules + "*:hover", ":hover");
}, "Universal selector followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "*::before", "::before");
assert_selector_serializes_to(default_ns_rules + "*::before", "::before");
}, "Universal selector followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "*[attr]", "[attr]");
assert_selector_serializes_to(default_ns_rules + "*[attr]", "[attr]");
}, "Universal selector followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "|*.c", "|*.c");
assert_selector_serializes_to(default_ns_rules + "|*.c", "|*.c");
}, "Universal selector without a namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "|*#i", "|*#i");
assert_selector_serializes_to(default_ns_rules + "|*#i", "|*#i");
}, "Universal selector without a namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "|*:hover", "|*:hover");
assert_selector_serializes_to(default_ns_rules + "|*:hover", "|*:hover");
}, "Universal selector without a namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "|*::before", "|*::before");
assert_selector_serializes_to(default_ns_rules + "|*::before", "|*::before");
}, "Universal selector without a namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "|*[attr]", "|*[attr]");
assert_selector_serializes_to(default_ns_rules + "|*[attr]", "|*[attr]");
}, "Universal selector without a namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*.c", ".c");
assert_selector_serializes_to(default_ns_rules + "*|*.c", "*|*.c");
}, "Universal selector in any namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*#id", "#id");
assert_selector_serializes_to(default_ns_rules + "*|*#id", "*|*#id");
}, "Universal selector in any namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*:hover", ":hover");
assert_selector_serializes_to(default_ns_rules + "*|*:hover", "*|*:hover");
}, "Universal selector in any namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*::before", "::before");
assert_selector_serializes_to(default_ns_rules + "*|*::before", "*|*::before");
}, "Universal selector in any namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "*|*[attr]", "[attr]");
assert_selector_serializes_to(default_ns_rules + "*|*[attr]", "*|*[attr]");
}, "Universal selector in any namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e.c", "ns|e.c");
assert_selector_serializes_to(default_ns_rules + "ns|e.c", "ns|e.c");
}, "Type selector with namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e#i", "ns|e#i");
assert_selector_serializes_to(default_ns_rules + "ns|e#i", "ns|e#i");
}, "Type selector with namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e:hover", "ns|e:hover");
assert_selector_serializes_to(default_ns_rules + "ns|e:hover", "ns|e:hover");
}, "Type selector with namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e::before", "ns|e::before");
assert_selector_serializes_to(default_ns_rules + "ns|e::before", "ns|e::before");
}, "Type selector with namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|e[attr]", "ns|e[attr]");
assert_selector_serializes_to(default_ns_rules + "ns|e[attr]", "ns|e[attr]");
}, "Type selector with namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*.c", "ns|*.c");
assert_selector_serializes_to(default_ns_rules + "ns|*.c", "ns|*.c");
}, "Universal selector with namespace followed by class");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*#i", "ns|*#i");
assert_selector_serializes_to(default_ns_rules + "ns|*#i", "ns|*#i");
}, "Universal selector with namespace followed by id");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*:hover", "ns|*:hover");
assert_selector_serializes_to(default_ns_rules + "ns|*:hover", "ns|*:hover");
}, "Universal selector with namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*::before", "ns|*::before");
assert_selector_serializes_to(default_ns_rules + "ns|*::before", "ns|*::before");
}, "Universal selector with namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(ns_rule + "ns|*[attr]", "ns|*[attr]");
assert_selector_serializes_to(default_ns_rules + "ns|*[attr]", "ns|*[attr]");
}, "Universal selector with namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e", "e");
}, "Type selector with namespace equal to default namespace");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*", "*");
}, "Universal selector with namespace equal to default namespace");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e.c", "e.c");
}, "Type selector with namespace equal to default namespace followed by class");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e#i", "e#i");
}, "Type selector with namespace equal to default namespace followed by id");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e:hover", "e:hover");
}, "Type selector with namespace equal to default namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e::before", "e::before");
}, "Type selector with namespace equal to default namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|e[attr]", "e[attr]");
}, "Type selector with namespace equal to default namespace followed by attribute selector");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*.c", ".c");
}, "Universal selector with namespace equal to default namespace followed by class");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*#i", "#i");
}, "Universal selector with namespace equal to default namespace followed by id");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*:hover", ":hover");
}, "Universal selector with namespace equal to default namespace followed by pseudo class");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*::before", "::before");
}, "Universal selector with namespace equal to default namespace followed by pseudo element");
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*[attr]", "[attr]");
}, "Universal selector with namespace equal to default namespace followed by attribute selector");
</script>
</body></html>

View file

@ -21,7 +21,6 @@ The square-* images all use 15x15 cells with one pixel borders.
The pattern-* images use cells of various sizes:
pattern-gg-gr.png 20x20
pattern-grg-rgr-grg.png 20x20
pattern-rgr-grg-rgr.png 20x20
pattern-tr.png 15x15

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

View file

@ -42,7 +42,7 @@
<tbody id="s5">
<tr><th><a href="chapter-5.htm">Chapter 5 -
Selectors</a></th>
<td>(1 Tests)</td></tr>
<td>(2 Tests)</td></tr>
</tbody>
<tbody id="s6">
<tr><th><a href="chapter-6.htm">Chapter 6 -