Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: chrome/test/data/dromaeo/tests/cssquery-dojo.html

Issue 2499923002: Update dromaeo to upstream a876d5250befbc41e2deab9d10cf6085b511d5ed (Closed)
Patch Set: Modified readme Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../htmlrunner.js"></script> 3 <script src="../htmlrunner.js"></script>
4 <script src="../lib/dojo.js"></script> 4 <script src="../lib/dojo.js"></script>
5 <script> 5 <script>
6 window.onload = function(){ 6 window.onload = function(){
7 startTest("cssquery-dojo", 'ed0ed65e'); 7 startTest("cssquery-dojo", '5477d2ae');
8 8
9 // Try to force real results 9 // Try to force real results
10 var ret, tmp; 10 var ret, tmp;
11 11
12 var html = document.body.innerHTML; 12 var html = document.body.innerHTML;
13 var query = dojo.query; 13 var query = dojo.query;
14 14
15 prep(function(){ 15 prep(function(){
16 var div = document.createElement("div"); 16 var div = document.createElement("div");
17 div.innerHTML = html; 17 div.innerHTML = html;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 specification, these have been described in terms of CSS2.1. <a 411 specification, these have been described in terms of CSS2.1. <a
412 href="#refsCSS21">[CSS21]</a></p> 412 href="#refsCSS21">[CSS21]</a></p>
413 413
414 <h3><a name=terminology></a>1.2. Terminology</h3> 414 <h3><a name=terminology></a>1.2. Terminology</h3>
415 415
416 <p>All of the text of this specification is normative except 416 <p>All of the text of this specification is normative except
417 examples, notes, and sections explicitly marked as 417 examples, notes, and sections explicitly marked as
418 non-normative.</p> 418 non-normative.</p>
419 419
420 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3> 420 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3>
421 421
422 <p><em>This section is non-normative.</em></p> 422 <p><em>This section is non-normative.</em></p>
423 423
424 <p>The main differences between the selectors in CSS2 and those in 424 <p>The main differences between the selectors in CSS2 and those in
425 Selectors are: 425 Selectors are:
426 426
427 <ul> 427 <ul>
428 428
429 <li>the list of basic definitions (selector, group of selectors, 429 <li>the list of basic definitions (selector, group of selectors,
430 simple selector, etc.) has been changed; in particular, what was 430 simple selector, etc.) has been changed; in particular, what was
431 referred to in CSS2 as a simple selector is now called a sequence 431 referred to in CSS2 as a simple selector is now called a sequence
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 1594
1595 1595
1596 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5> 1596 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5>
1597 1597
1598 <div class="note"> 1598 <div class="note">
1599 1599
1600 <p>Radio and checkbox elements can be toggled by the user, but are 1600 <p>Radio and checkbox elements can be toggled by the user, but are
1601 sometimes in an indeterminate state, neither checked nor unchecked. 1601 sometimes in an indeterminate state, neither checked nor unchecked.
1602 This can be due to an element attribute, or DOM manipulation.</p> 1602 This can be due to an element attribute, or DOM manipulation.</p>
1603 1603
1604 <p>A future version of this specification may introduce an 1604 <p>A future version of this specification may introduce an
1605 <code>:indeterminate</code> pseudo-class that applies to such elements. 1605 <code>:indeterminate</code> pseudo-class that applies to such elements.
1606 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in 1606 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in
1607 nature, and is altered by user action, since it can also be based on 1607 nature, and is altered by user action, since it can also be based on
1608 the presence of an element attribute, it applies to all media.</p> 1608 the presence of an element attribute, it applies to all media.</p>
1609 1609
1610 <p>Components of a radio-group initialized with no pre-selected choice 1610 <p>Components of a radio-group initialized with no pre-selected choice
1611 are an example of :indeterminate state.--></p> 1611 are an example of :indeterminate state.--></p>
1612 1612
1613 </div> 1613 </div>
1614 1614
1615 1615
1616 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4> 1616 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4>
1617 1617
1618 <p>Selectors introduces the concept of <dfn>structural 1618 <p>Selectors introduces the concept of <dfn>structural
1619 pseudo-classes</dfn> to permit selection based on extra information that lies in 1619 pseudo-classes</dfn> to permit selection based on extra information that lies in
1620 the document tree but cannot be represented by other simple selectors or 1620 the document tree but cannot be represented by other simple selectors or
1621 combinators. 1621 combinators.
1622 1622
1623 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are 1623 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are
1624 not counted when calculating the position of an element in the list of 1624 not counted when calculating the position of an element in the list of
1625 children of its parent. When calculating the position of an element in 1625 children of its parent. When calculating the position of an element in
1626 the list of children of its parent, the index numbering starts at 1. 1626 the list of children of its parent, the index numbering starts at 1.
1627 1627
1628 1628
1629 <h5><a name=root-pseudo>:root pseudo-class</a></h5> 1629 <h5><a name=root-pseudo>:root pseudo-class</a></h5>
1630 1630
1631 <p>The <code>:root</code> pseudo-class represents an element that is 1631 <p>The <code>:root</code> pseudo-class represents an element that is
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 <p>Examples:</p> 1803 <p>Examples:</p>
1804 <p>The following selector represents a <code>p</code> element that is 1804 <p>The following selector represents a <code>p</code> element that is
1805 the first child of a <code>div</code> element:</p> 1805 the first child of a <code>div</code> element:</p>
1806 <pre>div &gt; p:first-child</pre> 1806 <pre>div &gt; p:first-child</pre>
1807 <p>This selector can represent the <code>p</code> inside the 1807 <p>This selector can represent the <code>p</code> inside the
1808 <code>div</code> of the following fragment:</p> 1808 <code>div</code> of the following fragment:</p>
1809 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1809 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1810 &lt;div class="note"&gt; 1810 &lt;div class="note"&gt;
1811 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1811 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1812 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g 1812 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g
1813 fragment: 1813 fragment:
1814 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1814 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1815 &lt;div class="note"&gt; 1815 &lt;div class="note"&gt;
1816 &lt;h2&gt; Note &lt;/h2&gt; 1816 &lt;h2&gt; Note &lt;/h2&gt;
1817 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1817 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1818 &lt;/div&gt;</pre> 1818 &lt;/div&gt;</pre>
1819 <p>The following two selectors are usually equivalent:</p> 1819 <p>The following two selectors are usually equivalent:</p>
1820 <pre>* &gt; a:first-child /* a is first child of any element */ 1820 <pre>* &gt; a:first-child /* a is first child of any element */
1821 a:first-child /* Same (assuming a is not the root element) */</pre> 1821 a:first-child /* Same (assuming a is not the root element) */</pre>
1822 </div> 1822 </div>
1823 1823
1824 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5> 1824 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5>
1825 1825
1826 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class 1826 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class
1827 represents an element that is the last child of some other element. 1827 represents an element that is the last child of some other element.
1828 1828
1829 <div class="example"> 1829 <div class="example">
1830 <p>Example:</p> 1830 <p>Example:</p>
1831 <p>The following selector represents a list item <code>li</code> that 1831 <p>The following selector represents a list item <code>li</code> that
1832 is the last child of an ordered list <code>ol</code>. 1832 is the last child of an ordered list <code>ol</code>.
1833 <pre>ol &gt; li:last-child</pre> 1833 <pre>ol &gt; li:last-child</pre>
1834 </div> 1834 </div>
1835 1835
1836 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5> 1836 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5>
1837 1837
1838 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class 1838 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class
1839 represents an element that is the first sibling of its type in the list of 1839 represents an element that is the first sibling of its type in the list of
1840 children of its parent element. 1840 children of its parent element.
1841 1841
1842 <div class="example"> 1842 <div class="example">
1843 <p>Example:</p> 1843 <p>Example:</p>
1844 <p>The following selector represents a definition title 1844 <p>The following selector represents a definition title
1845 <code>dt</code> inside a definition list <code>dl</code>, this 1845 <code>dt</code> inside a definition list <code>dl</code>, this
1846 <code>dt</code> being the first of its type in the list of children of 1846 <code>dt</code> being the first of its type in the list of children of
1847 its parent element.</p> 1847 its parent element.</p>
1848 <pre>dl dt:first-of-type</pre> 1848 <pre>dl dt:first-of-type</pre>
1849 <p>It is a valid description for the first two <code>dt</code> 1849 <p>It is a valid description for the first two <code>dt</code>
1850 elements in the following example but not for the third one:</p> 1850 elements in the following example but not for the third one:</p>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 2009
2010 <p>The selector <code>p::first-line</code> does not match any real 2010 <p>The selector <code>p::first-line</code> does not match any real
2011 HTML element. It does match a pseudo-element that conforming user 2011 HTML element. It does match a pseudo-element that conforming user
2012 agents will insert at the beginning of every paragraph.</p> 2012 agents will insert at the beginning of every paragraph.</p>
2013 2013
2014 <p>Note that the length of the first line depends on a number of 2014 <p>Note that the length of the first line depends on a number of
2015 factors, including the width of the page, the font size, etc. Thus, 2015 factors, including the width of the page, the font size, etc. Thus,
2016 an ordinary HTML paragraph such as:</p> 2016 an ordinary HTML paragraph such as:</p>
2017 2017
2018 <pre> 2018 <pre>
2019 &lt;P&gt;This is a somewhat long HTML 2019 &lt;P&gt;This is a somewhat long HTML
2020 paragraph that will be broken into several 2020 paragraph that will be broken into several
2021 lines. The first line will be identified 2021 lines. The first line will be identified
2022 by a fictional tag sequence. The other lines 2022 by a fictional tag sequence. The other lines
2023 will be treated as ordinary lines in the 2023 will be treated as ordinary lines in the
2024 paragraph.&lt;/P&gt; 2024 paragraph.&lt;/P&gt;
2025 </pre> 2025 </pre>
2026 2026
2027 <p>the lines of which happen to be broken as follows: 2027 <p>the lines of which happen to be broken as follows:
2028 2028
2029 <pre> 2029 <pre>
2030 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT 2030 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
2031 will be broken into several lines. The first 2031 will be broken into several lines. The first
2032 line will be identified by a fictional tag 2032 line will be identified by a fictional tag
2033 sequence. The other lines will be treated as 2033 sequence. The other lines will be treated as
2034 ordinary lines in the paragraph. 2034 ordinary lines in the paragraph.
2035 </pre> 2035 </pre>
2036 2036
2037 <p>This paragraph might be "rewritten" by user agents to include the 2037 <p>This paragraph might be "rewritten" by user agents to include the
2038 <em>fictional tag sequence</em> for <code>::first-line</code>. This 2038 <em>fictional tag sequence</em> for <code>::first-line</code>. This
2039 fictional tag sequence helps to show how properties are inherited.</p> 2039 fictional tag sequence helps to show how properties are inherited.</p>
2040 2040
2041 <pre> 2041 <pre>
2042 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML 2042 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML
2043 paragraph that <b>&lt;/P::first-line&gt;</b> will be broken into several 2043 paragraph that <b>&lt;/P::first-line&gt;</b> will be broken into several
2044 lines. The first line will be identified 2044 lines. The first line will be identified
2045 by a fictional tag sequence. The other lines 2045 by a fictional tag sequence. The other lines
2046 will be treated as ordinary lines in the 2046 will be treated as ordinary lines in the
2047 paragraph.&lt;/P&gt; 2047 paragraph.&lt;/P&gt;
2048 </pre> 2048 </pre>
2049 2049
2050 <p>If a pseudo-element breaks up a real element, the desired effect 2050 <p>If a pseudo-element breaks up a real element, the desired effect
2051 can often be described by a fictional tag sequence that closes and 2051 can often be described by a fictional tag sequence that closes and
2052 then re-opens the element. Thus, if we mark up the previous paragraph 2052 then re-opens the element. Thus, if we mark up the previous paragraph
2053 with a <code>span</code> element:</p> 2053 with a <code>span</code> element:</p>
2054 2054
2055 <pre> 2055 <pre>
2056 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML 2056 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML
2057 paragraph that will be broken into several 2057 paragraph that will be broken into several
2058 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 2058 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
2059 by a fictional tag sequence. The other lines 2059 by a fictional tag sequence. The other lines
2060 will be treated as ordinary lines in the 2060 will be treated as ordinary lines in the
2061 paragraph.&lt;/P&gt; 2061 paragraph.&lt;/P&gt;
2062 </pre> 2062 </pre>
2063 2063
2064 <p>the user agent could simulate start and end tags for 2064 <p>the user agent could simulate start and end tags for
2065 <code>span</code> when inserting the fictional tag sequence for 2065 <code>span</code> when inserting the fictional tag sequence for
2066 <code>::first-line</code>. 2066 <code>::first-line</code>.
2067 2067
2068 <pre> 2068 <pre>
2069 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a 2069 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a
2070 somewhat long HTML 2070 somewhat long HTML
2071 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be 2071 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be
2072 broken into several 2072 broken into several
2073 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 2073 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
2074 by a fictional tag sequence. The other lines 2074 by a fictional tag sequence. The other lines
2075 will be treated as ordinary lines in the 2075 will be treated as ordinary lines in the
2076 paragraph.&lt;/P&gt; 2076 paragraph.&lt;/P&gt;
2077 </pre> 2077 </pre>
2078 2078
2079 <p>In CSS, the <code>::first-line</code> pseudo-element can only be 2079 <p>In CSS, the <code>::first-line</code> pseudo-element can only be
2080 attached to a block-level element, an inline-block, a table-caption, 2080 attached to a block-level element, an inline-block, a table-caption,
2081 or a table-cell.</p> 2081 or a table-cell.</p>
2082 2082
2083 <p><a name="first-formatted-line"></a>The "first formatted line" of an 2083 <p><a name="first-formatted-line"></a>The "first formatted line" of an
2084 element may occur inside a 2084 element may occur inside a
2085 block-level descendant in the same flow (i.e., a block-level 2085 block-level descendant in the same flow (i.e., a block-level
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 2203
2204 <p>The <span class="index-inst" title="fictional tag 2204 <p>The <span class="index-inst" title="fictional tag
2205 sequence">fictional tag sequence</span> is:</p> 2205 sequence">fictional tag sequence</span> is:</p>
2206 2206
2207 <pre> 2207 <pre>
2208 &lt;P&gt; 2208 &lt;P&gt;
2209 &lt;SPAN&gt; 2209 &lt;SPAN&gt;
2210 &lt;P::first-letter&gt; 2210 &lt;P::first-letter&gt;
2211 T 2211 T
2212 &lt;/P::first-letter&gt;he first 2212 &lt;/P::first-letter&gt;he first
2213 &lt;/SPAN&gt; 2213 &lt;/SPAN&gt;
2214 few words of an article in the Economist. 2214 few words of an article in the Economist.
2215 &lt;/P&gt; 2215 &lt;/P&gt;
2216 </pre> 2216 </pre>
2217 2217
2218 <p>Note that the <code>::first-letter</code> pseudo-element tags abut 2218 <p>Note that the <code>::first-letter</code> pseudo-element tags abut
2219 the content (i.e., the initial character), while the ::first-line 2219 the content (i.e., the initial character), while the ::first-line
2220 pseudo-element start tag is inserted right after the start tag of the 2220 pseudo-element start tag is inserted right after the start tag of the
2221 block element.</p> </div> 2221 block element.</p> </div>
2222 2222
2223 <p>In order to achieve traditional drop caps formatting, user agents 2223 <p>In order to achieve traditional drop caps formatting, user agents
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 p::first-line { color: blue } 2314 p::first-line { color: blue }
2315 2315
2316 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre> 2316 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre>
2317 2317
2318 <p>Assuming that a line break will occur before the word "ends", the 2318 <p>Assuming that a line break will occur before the word "ends", the
2319 <span class="index-inst" title="fictional tag sequence">fictional tag 2319 <span class="index-inst" title="fictional tag sequence">fictional tag
2320 sequence</span> for this fragment might be:</p> 2320 sequence</span> for this fragment might be:</p>
2321 2321
2322 <pre>&lt;P&gt; 2322 <pre>&lt;P&gt;
2323 &lt;P::first-line&gt; 2323 &lt;P::first-line&gt;
2324 &lt;P::first-letter&gt; 2324 &lt;P::first-letter&gt;
2325 S 2325 S
2326 &lt;/P::first-letter&gt;ome text that 2326 &lt;/P::first-letter&gt;ome text that
2327 &lt;/P::first-line&gt; 2327 &lt;/P::first-line&gt;
2328 ends up on two lines 2328 ends up on two lines
2329 &lt;/P&gt;</pre> 2329 &lt;/P&gt;</pre>
2330 2330
2331 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code> 2331 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code>
2332 element. Properties set on <code>::first-line</code> are inherited by 2332 element. Properties set on <code>::first-line</code> are inherited by
2333 <code>::first-letter</code>, but are overridden if the same property is set on 2333 <code>::first-letter</code>, but are overridden if the same property is set on
2334 <code>::first-letter</code>.</p> 2334 <code>::first-letter</code>.</p>
2335 </div> 2335 </div>
2336 2336
2337 2337
2338 <h4><a name=UIfragments>7.3.</a> <a name=selection>The ::selection pseudo-elemen t</a></h4> 2338 <h4><a name=UIfragments>7.3.</a> <a name=selection>The ::selection pseudo-elemen t</a></h4>
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2825 <th>Specification</th> 2825 <th>Specification</th>
2826 <td>CSS level 1</td></tr> 2826 <td>CSS level 1</td></tr>
2827 <tr> 2827 <tr>
2828 <th>Accepts</th> 2828 <th>Accepts</th>
2829 <td>type selectors<br>class selectors<br>ID selectors<br>:link, 2829 <td>type selectors<br>class selectors<br>ID selectors<br>:link,
2830 :visited and :active pseudo-classes<br>descendant combinator 2830 :visited and :active pseudo-classes<br>descendant combinator
2831 <br>::first-line and ::first-letter pseudo-elements</td></tr> 2831 <br>::first-line and ::first-letter pseudo-elements</td></tr>
2832 <tr> 2832 <tr>
2833 <th>Excludes</th> 2833 <th>Excludes</th>
2834 <td> 2834 <td>
2835 2835
2836 <p>universal selector<br>attribute selectors<br>:hover and :focus 2836 <p>universal selector<br>attribute selectors<br>:hover and :focus
2837 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI 2837 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI
2838 element states pseudo-classes<br>all structural 2838 element states pseudo-classes<br>all structural
2839 pseudo-classes<br>negation pseudo-class<br>all 2839 pseudo-classes<br>negation pseudo-class<br>all
2840 UI element fragments pseudo-elements<br>::before and ::after 2840 UI element fragments pseudo-elements<br>::before and ::after
2841 pseudo-elements<br>child combinators<br>sibling combinators 2841 pseudo-elements<br>child combinators<br>sibling combinators
2842 2842
2843 <p>namespaces</td></tr> 2843 <p>namespaces</td></tr>
2844 <tr> 2844 <tr>
2845 <th>Extra constraints</th> 2845 <th>Extra constraints</th>
2846 <td>only one class selector allowed per sequence of simple 2846 <td>only one class selector allowed per sequence of simple
2847 selectors</td></tr></tbody></table><br><br> 2847 selectors</td></tr></tbody></table><br><br>
2848 <table class="tprofile"> 2848 <table class="tprofile">
2849 <tbody> 2849 <tbody>
2850 <tr> 2850 <tr>
2851 <th class="title" colspan=2>Selectors profile</th></tr> 2851 <th class="title" colspan=2>Selectors profile</th></tr>
2852 <tr> 2852 <tr>
2853 <th>Specification</th> 2853 <th>Specification</th>
2854 <td>CSS level 2</td></tr> 2854 <td>CSS level 2</td></tr>
2855 <tr> 2855 <tr>
2856 <th>Accepts</th> 2856 <th>Accepts</th>
2857 <td>type selectors<br>universal selector<br>attribute presence and 2857 <td>type selectors<br>universal selector<br>attribute presence and
2858 values selectors<br>class selectors<br>ID selectors<br>:link, :visited, 2858 values selectors<br>class selectors<br>ID selectors<br>:link, :visited,
2859 :active, :hover, :focus, :lang() and :first-child pseudo-classes 2859 :active, :hover, :focus, :lang() and :first-child pseudo-classes
2860 <br>descendant combinator<br>child combinator<br>adjacent sibling 2860 <br>descendant combinator<br>child combinator<br>adjacent sibling
2861 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before 2861 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before
2862 and ::after pseudo-elements</td></tr> 2862 and ::after pseudo-elements</td></tr>
2863 <tr> 2863 <tr>
2864 <th>Excludes</th> 2864 <th>Excludes</th>
2865 <td> 2865 <td>
2866 2866
2867 <p>content selectors<br>substring matching attribute 2867 <p>content selectors<br>substring matching attribute
2868 selectors<br>:target pseudo-classes<br>all UI element 2868 selectors<br>:target pseudo-classes<br>all UI element
2869 states pseudo-classes<br>all structural pseudo-classes other 2869 states pseudo-classes<br>all structural pseudo-classes other
2870 than :first-child<br>negation pseudo-class<br>all UI element 2870 than :first-child<br>negation pseudo-class<br>all UI element
2871 fragments pseudo-elements<br>general sibling combinators 2871 fragments pseudo-elements<br>general sibling combinators
2872 2872
2873 <p>namespaces</td></tr> 2873 <p>namespaces</td></tr>
2874 <tr> 2874 <tr>
2875 <th>Extra constraints</th> 2875 <th>Extra constraints</th>
2876 <td>more than one class selector per sequence of simple selectors (CSS1 2876 <td>more than one class selector per sequence of simple selectors (CSS1
2877 constraint) allowed</td></tr></tbody></table> 2877 constraint) allowed</td></tr></tbody></table>
2878 2878
2879 <p>In CSS, selectors express pattern matching rules that determine which style 2879 <p>In CSS, selectors express pattern matching rules that determine which style
2880 rules apply to elements in the document tree. 2880 rules apply to elements in the document tree.
2881 2881
2882 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode> 2882 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode>
2883 with attribute <code>name</code> set inside a section 1 header <code>h1</code>: 2883 with attribute <code>name</code> set inside a section 1 header <code>h1</code>:
2884 <pre>h1 a[name]</pre> 2884 <pre>h1 a[name]</pre>
2885 2885
2886 <p>All CSS declarations attached to such a selector are applied to elements 2886 <p>All CSS declarations attached to such a selector are applied to elements
2887 matching it. </div> 2887 matching it. </div>
2888 2888
2889 <div class="profile"> 2889 <div class="profile">
2890 <table class="tprofile"> 2890 <table class="tprofile">
2891 <tbody> 2891 <tbody>
2892 <tr> 2892 <tr>
2893 <th class="title" colspan=2>Selectors profile</th></tr> 2893 <th class="title" colspan=2>Selectors profile</th></tr>
2894 <tr> 2894 <tr>
2895 <th>Specification</th> 2895 <th>Specification</th>
2896 <td>STTS 3</td> 2896 <td>STTS 3</td>
2897 </tr> 2897 </tr>
2898 <tr> 2898 <tr>
2899 <th>Accepts</th> 2899 <th>Accepts</th>
2900 <td> 2900 <td>
2901 2901
2902 <p>type selectors<br>universal selectors<br>attribute selectors<br>class 2902 <p>type selectors<br>universal selectors<br>attribute selectors<br>class
2903 selectors<br>ID selectors<br>all structural pseudo-classes<br> 2903 selectors<br>ID selectors<br>all structural pseudo-classes<br>
2904 all combinators 2904 all combinators
2905 2905
2906 <p>namespaces</td></tr> 2906 <p>namespaces</td></tr>
2907 <tr> 2907 <tr>
2908 <th>Excludes</th> 2908 <th>Excludes</th>
2909 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr> 2909 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr>
2910 <tr> 2910 <tr>
2911 <th>Extra constraints</th> 2911 <th>Extra constraints</th>
2912 <td>some selectors and combinators are not allowed in fragment 2912 <td>some selectors and combinators are not allowed in fragment
2913 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble> 2913 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble>
2914 <form> 2914 <form>
2915 <input type="text" name="test10"/> 2915 <input type="text" name="test10"/>
(...skipping 15 matching lines...) Expand all
2931 <input type="text" name="foo"/> 2931 <input type="text" name="foo"/>
2932 <input type="text" name="foo"/> 2932 <input type="text" name="foo"/>
2933 <input type="text" name="foo"/> 2933 <input type="text" name="foo"/>
2934 <input type="text" name="foo"/> 2934 <input type="text" name="foo"/>
2935 <input type="text" name="foo"/> 2935 <input type="text" name="foo"/>
2936 <input type="text" name="foo"/> 2936 <input type="text" name="foo"/>
2937 <input type="text" name="foo"/> 2937 <input type="text" name="foo"/>
2938 <input type="text" name="foo"/> 2938 <input type="text" name="foo"/>
2939 <input type="text" name="foo"/> 2939 <input type="text" name="foo"/>
2940 </form> 2940 </form>
2941 2941
2942 <p>Selectors can be used in STTS 3 in two different 2942 <p>Selectors can be used in STTS 3 in two different
2943 manners: 2943 manners:
2944 <ol> 2944 <ol>
2945 <li>a selection mechanism equivalent to CSS selection mechanism: declarations 2945 <li>a selection mechanism equivalent to CSS selection mechanism: declarations
2946 attached to a given selector are applied to elements matching that selector, 2946 attached to a given selector are applied to elements matching that selector,
2947 <li>fragment descriptions that appear on the right side of declarations. 2947 <li>fragment descriptions that appear on the right side of declarations.
2948 </li></ol></div> 2948 </li></ol></div>
2949 2949
2950 <h2><a name=Conformance></a>13. Conformance and requirements</h2> 2950 <h2><a name=Conformance></a>13. Conformance and requirements</h2>
2951 2951
2952 <p>This section defines conformance with the present specification only. 2952 <p>This section defines conformance with the present specification only.
2953 2953
2954 <p>The inability of a user agent to implement part of this specification due to 2954 <p>The inability of a user agent to implement part of this specification due to
2955 the limitations of a particular device (e.g., non interactive user agents will 2955 the limitations of a particular device (e.g., non interactive user agents will
2956 probably not implement dynamic pseudo-classes because they make no sense without 2956 probably not implement dynamic pseudo-classes because they make no sense without
2957 interactivity) does not imply non-conformance. 2957 interactivity) does not imply non-conformance.
2958 2958
2959 <p>All specifications reusing Selectors must contain a <a 2959 <p>All specifications reusing Selectors must contain a <a
2960 href="#profiling">Profile</a> listing the 2960 href="#profiling">Profile</a> listing the
2961 subset of Selectors it accepts or excludes, and describing the constraints 2961 subset of Selectors it accepts or excludes, and describing the constraints
2962 it adds to the current specification. 2962 it adds to the current specification.
2963 2963
2964 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n 2964 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n
2965 which is not allowed at the current parsing point. 2965 which is not allowed at the current parsing point.
2966 2966
2967 <p>User agents must observe the rules for handling parsing errors: 2967 <p>User agents must observe the rules for handling parsing errors:
2968 <ul> 2968 <ul>
2969 <li>a simple selector containing an undeclared namespace prefix is invalid</li > 2969 <li>a simple selector containing an undeclared namespace prefix is invalid</li >
2970 <li>a selector containing an invalid simple selector, an invalid combinator 2970 <li>a selector containing an invalid simple selector, an invalid combinator
2971 or an invalid token is invalid. </li> 2971 or an invalid token is invalid. </li>
2972 <li>a group of selectors containing an invalid selector is invalid.</li> 2972 <li>a group of selectors containing an invalid selector is invalid.</li>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
3005 3005
3006 <h2><a name=references>16. References</a></h2> 3006 <h2><a name=references>16. References</a></h2>
3007 3007
3008 <dl class="refs"> 3008 <dl class="refs">
3009 3009
3010 <dt>[CSS1] 3010 <dt>[CSS1]
3011 <dd><a name=refsCSS1></a> Bert Bos, H&aring;kon Wium Lie; "<cite>Cascading Sty le Sheets, level 1</cite>", W3C Recommendation, 17 Dec 1996, revised 11 Jan 1999 3011 <dd><a name=refsCSS1></a> Bert Bos, H&aring;kon Wium Lie; "<cite>Cascading Sty le Sheets, level 1</cite>", W3C Recommendation, 17 Dec 1996, revised 11 Jan 1999
3012 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>) 3012 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>)
3013 3013
3014 <dt>[CSS21] 3014 <dt>[CSS21]
3015 <dd><a name=refsCSS21></a> Bert Bos, Tantek &Ccedil;elik, Ian Hickson, H&aring ;kon Wium Lie, editors; "<cite>Cascading Style Sheets, level 2 revision 1</cite> ", W3C Working Draft, 13 June 2005 3015 <dd><a name=refsCSS21></a> Bert Bos, Tantek &Ccedil;elik, Ian Hickson, H&aring ;kon Wium Lie, editors; "<cite>Cascading Style Sheets, level 2 revision 1</cite> ", W3C Working Draft, 13 June 2005
3016 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>) 3016 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>)
3017 3017
3018 <dt>[CWWW] 3018 <dt>[CWWW]
3019 <dd><a name=refsCWWW></a> Martin J. D&uuml;rst, Fran&ccedil;ois Yergeau, Misha Wolf, Asmus Freytag, Tex Texin, editors; "<cite>Character Model for the World W ide Web</cite>", W3C Recommendation, 15 February 2005 3019 <dd><a name=refsCWWW></a> Martin J. D&uuml;rst, Fran&ccedil;ois Yergeau, Misha Wolf, Asmus Freytag, Tex Texin, editors; "<cite>Character Model for the World W ide Web</cite>", W3C Recommendation, 15 February 2005
3020 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>) 3020 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>)
3021 3021
3022 <dt>[FLEX] 3022 <dt>[FLEX]
3023 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213 3023 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213
3024 3024
3025 <dt>[HTML4] 3025 <dt>[HTML4]
3026 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999 3026 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999
3027 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>) 3027 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>)
3028 3028
3029 <dt>[MATH] 3029 <dt>[MATH]
3030 <dd><a name="refsMATH"></a> Patrick Ion, Robert Miner, editors; "<cite>Mathema tical Markup Language (MathML) 1.01</cite>", W3C Recommendation, revision of 7 J uly 1999 3030 <dd><a name="refsMATH"></a> Patrick Ion, Robert Miner, editors; "<cite>Mathema tical Markup Language (MathML) 1.01</cite>", W3C Recommendation, revision of 7 J uly 1999
3031 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>) 3031 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>)
3032 3032
3033 <dt>[RFC3066] 3033 <dt>[RFC3066]
3034 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001 3034 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001
3035 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>) 3035 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>)
3036 3036
3037 <dt>[STTS] 3037 <dt>[STTS]
3038 <dd><a name=refsSTTS></a> Daniel Glazman; "<cite>Simple Tree Transformation Sh eets 3</cite>", Electricit&eacute; de France, submission to the W3C, 11 November 1998 3038 <dd><a name=refsSTTS></a> Daniel Glazman; "<cite>Simple Tree Transformation Sh eets 3</cite>", Electricit&eacute; de France, submission to the W3C, 11 November 1998
3039 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>) 3039 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>)
3040 3040
3041 <dt>[SVG] 3041 <dt>[SVG]
3042 <dd><a name="refsSVG"></a> Jon Ferraiolo, &#34276;&#27810; &#28147;, Dean Jack son, editors; "<cite>Scalable Vector Graphics (SVG) 1.1 Specification</cite>", W 3C Recommendation, 14 January 2003 3042 <dd><a name="refsSVG"></a> Jon Ferraiolo, &#34276;&#27810; &#28147;, Dean Jack son, editors; "<cite>Scalable Vector Graphics (SVG) 1.1 Specification</cite>", W 3C Recommendation, 14 January 2003
3043 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>) 3043 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>)
3044 3044
3045 <dt>[UNICODE]</dt> 3045 <dt>[UNICODE]</dt>
3046 <dd><a name="refsUNICODE"></a> <cite><a 3046 <dd><a name="refsUNICODE"></a> <cite><a
3047 href="http://www.unicode.org/versions/Unicode4.1.0/">The Unicode Standard, Ve rsion 4.1</a></cite>, The Unicode Consortium. Boston, MA, Addison-Wesley, March 2005. ISBN 0-321-18578-1, as amended by <a href="http://www.unicode.org/versions /Unicode4.0.1/">Unicode 4.0.1</a> and <a href="http://www.unicode.org/versions/U nicode4.1.0/">Unicode 4.1.0</a>. 3047 href="http://www.unicode.org/versions/Unicode4.1.0/">The Unicode Standard, Ve rsion 4.1</a></cite>, The Unicode Consortium. Boston, MA, Addison-Wesley, March 2005. ISBN 0-321-18578-1, as amended by <a href="http://www.unicode.org/versions /Unicode4.0.1/">Unicode 4.0.1</a> and <a href="http://www.unicode.org/versions/U nicode4.1.0/">Unicode 4.1.0</a>.
3048 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd> 3048 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd>
3049 3049
3050 <dt>[XML10] 3050 <dt>[XML10]
3051 <dd><a name="refsXML10"></a> Tim Bray, Jean Paoli, C. M. Sperberg-McQueen, Eve Maler, Fran&ccedil;ois Yergeau, editors; "<cite>Extensible Markup Language (XML ) 1.0 (Third Edition)</cite>", W3C Recommendation, 4 February 2004 3051 <dd><a name="refsXML10"></a> Tim Bray, Jean Paoli, C. M. Sperberg-McQueen, Eve Maler, Fran&ccedil;ois Yergeau, editors; "<cite>Extensible Markup Language (XML ) 1.0 (Third Edition)</cite>", W3C Recommendation, 4 February 2004
3052 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>) 3052 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>)
3053 3053
3054 <dt>[XMLNAMES] 3054 <dt>[XMLNAMES]
3055 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999 3055 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999
3056 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>) 3056 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>)
3057 3057
3058 <dt>[YACC] 3058 <dt>[YACC]
3059 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975 3059 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975
3060 3060
3061 </dl> 3061 </dl>
3062 </body> 3062 </body>
3063 </html> 3063 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/dromaeo/tests/MANIFEST.json ('k') | chrome/test/data/dromaeo/tests/cssquery-ext.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698