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

Side by Side Diff: chrome/test/data/dromaeo/tests/jslib-style-jquery-2.x.html

Issue 2499923002: Update dromaeo to upstream a876d5250befbc41e2deab9d10cf6085b511d5ed (Closed)
Patch Set: Removing unrelated files Created 4 years, 1 month 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/jquery.js"></script> 4 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">< /script>
5 <script> 5 <script>
6 window.onload = function(){ 6 window.onload = function(){
7 startTest("jslib-style-jquery", '47bfc8bd'); 7 startTest("jslib-style-jquery", '08bc6988');
8 8
9 // Try to force real results 9 // Try to force real results
10 var ret, tmp, div; 10 var ret, tmp, div;
11 11
12 var html = document.body.innerHTML; 12 var html = document.body.innerHTML;
13 13
14 prep(function(){ 14 prep(function(){
15 div = jQuery("div"); 15 div = jQuery("div");
16 var tmp = document.createElement("div"); 16 var tmp = document.createElement("div");
17 tmp.innerHTML = html; 17 tmp.innerHTML = html;
18 document.body.appendChild( tmp ); 18 document.body.appendChild( tmp );
19 }); 19 });
20 » 20
21 test("jQuery - css(color) x100", function(){ 21 test("jQuery - css(color) x100", function(){
22 for ( var i = 0; i < 1000; i++ ) 22 for ( var i = 0; i < 1000; i++ )
23 ret = div.css("color"); 23 ret = div.css("color");
24 }); 24 });
25 25
26 test("jQuery - css(color,red)", function(){ 26 test("jQuery - css(color,red)", function(){
27 for ( var i = 0; i < 10; i++ ) 27 for ( var i = 0; i < 10; i++ )
28 div.css("color","red"); 28 div.css("color","red");
29 }); 29 });
30 30
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 specification, these have been described in terms of CSS2.1. <a 306 specification, these have been described in terms of CSS2.1. <a
307 href="#refsCSS21">[CSS21]</a></p> 307 href="#refsCSS21">[CSS21]</a></p>
308 308
309 <h3><a name=terminology></a>1.2. Terminology</h3> 309 <h3><a name=terminology></a>1.2. Terminology</h3>
310 310
311 <p>All of the text of this specification is normative except 311 <p>All of the text of this specification is normative except
312 examples, notes, and sections explicitly marked as 312 examples, notes, and sections explicitly marked as
313 non-normative.</p> 313 non-normative.</p>
314 314
315 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3> 315 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3>
316 316
317 <p><em>This section is non-normative.</em></p> 317 <p><em>This section is non-normative.</em></p>
318 318
319 <p>The main differences between the selectors in CSS2 and those in 319 <p>The main differences between the selectors in CSS2 and those in
320 Selectors are: 320 Selectors are:
321 321
322 <ul> 322 <ul>
323 323
324 <li>the list of basic definitions (selector, group of selectors, 324 <li>the list of basic definitions (selector, group of selectors,
325 simple selector, etc.) has been changed; in particular, what was 325 simple selector, etc.) has been changed; in particular, what was
326 referred to in CSS2 as a simple selector is now called a sequence 326 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
1489 1489
1490 1490
1491 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5> 1491 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5>
1492 1492
1493 <div class="note"> 1493 <div class="note">
1494 1494
1495 <p>Radio and checkbox elements can be toggled by the user, but are 1495 <p>Radio and checkbox elements can be toggled by the user, but are
1496 sometimes in an indeterminate state, neither checked nor unchecked. 1496 sometimes in an indeterminate state, neither checked nor unchecked.
1497 This can be due to an element attribute, or DOM manipulation.</p> 1497 This can be due to an element attribute, or DOM manipulation.</p>
1498 1498
1499 <p>A future version of this specification may introduce an 1499 <p>A future version of this specification may introduce an
1500 <code>:indeterminate</code> pseudo-class that applies to such elements. 1500 <code>:indeterminate</code> pseudo-class that applies to such elements.
1501 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in 1501 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in
1502 nature, and is altered by user action, since it can also be based on 1502 nature, and is altered by user action, since it can also be based on
1503 the presence of an element attribute, it applies to all media.</p> 1503 the presence of an element attribute, it applies to all media.</p>
1504 1504
1505 <p>Components of a radio-group initialized with no pre-selected choice 1505 <p>Components of a radio-group initialized with no pre-selected choice
1506 are an example of :indeterminate state.--></p> 1506 are an example of :indeterminate state.--></p>
1507 1507
1508 </div> 1508 </div>
1509 1509
1510 1510
1511 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4> 1511 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4>
1512 1512
1513 <p>Selectors introduces the concept of <dfn>structural 1513 <p>Selectors introduces the concept of <dfn>structural
1514 pseudo-classes</dfn> to permit selection based on extra information that lies in 1514 pseudo-classes</dfn> to permit selection based on extra information that lies in
1515 the document tree but cannot be represented by other simple selectors or 1515 the document tree but cannot be represented by other simple selectors or
1516 combinators. 1516 combinators.
1517 1517
1518 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are 1518 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are
1519 not counted when calculating the position of an element in the list of 1519 not counted when calculating the position of an element in the list of
1520 children of its parent. When calculating the position of an element in 1520 children of its parent. When calculating the position of an element in
1521 the list of children of its parent, the index numbering starts at 1. 1521 the list of children of its parent, the index numbering starts at 1.
1522 1522
1523 1523
1524 <h5><a name=root-pseudo>:root pseudo-class</a></h5> 1524 <h5><a name=root-pseudo>:root pseudo-class</a></h5>
1525 1525
1526 <p>The <code>:root</code> pseudo-class represents an element that is 1526 <p>The <code>:root</code> pseudo-class represents an element that is
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 <p>Examples:</p> 1698 <p>Examples:</p>
1699 <p>The following selector represents a <code>p</code> element that is 1699 <p>The following selector represents a <code>p</code> element that is
1700 the first child of a <code>div</code> element:</p> 1700 the first child of a <code>div</code> element:</p>
1701 <pre>div &gt; p:first-child</pre> 1701 <pre>div &gt; p:first-child</pre>
1702 <p>This selector can represent the <code>p</code> inside the 1702 <p>This selector can represent the <code>p</code> inside the
1703 <code>div</code> of the following fragment:</p> 1703 <code>div</code> of the following fragment:</p>
1704 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1704 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1705 &lt;div class="note"&gt; 1705 &lt;div class="note"&gt;
1706 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1706 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1707 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g 1707 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g
1708 fragment: 1708 fragment:
1709 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1709 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1710 &lt;div class="note"&gt; 1710 &lt;div class="note"&gt;
1711 &lt;h2&gt; Note &lt;/h2&gt; 1711 &lt;h2&gt; Note &lt;/h2&gt;
1712 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1712 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1713 &lt;/div&gt;</pre> 1713 &lt;/div&gt;</pre>
1714 <p>The following two selectors are usually equivalent:</p> 1714 <p>The following two selectors are usually equivalent:</p>
1715 <pre>* &gt; a:first-child /* a is first child of any element */ 1715 <pre>* &gt; a:first-child /* a is first child of any element */
1716 a:first-child /* Same (assuming a is not the root element) */</pre> 1716 a:first-child /* Same (assuming a is not the root element) */</pre>
1717 </div> 1717 </div>
1718 1718
1719 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5> 1719 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5>
1720 1720
1721 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class 1721 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class
1722 represents an element that is the last child of some other element. 1722 represents an element that is the last child of some other element.
1723 1723
1724 <div class="example"> 1724 <div class="example">
1725 <p>Example:</p> 1725 <p>Example:</p>
1726 <p>The following selector represents a list item <code>li</code> that 1726 <p>The following selector represents a list item <code>li</code> that
1727 is the last child of an ordered list <code>ol</code>. 1727 is the last child of an ordered list <code>ol</code>.
1728 <pre>ol &gt; li:last-child</pre> 1728 <pre>ol &gt; li:last-child</pre>
1729 </div> 1729 </div>
1730 1730
1731 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5> 1731 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5>
1732 1732
1733 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class 1733 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class
1734 represents an element that is the first sibling of its type in the list of 1734 represents an element that is the first sibling of its type in the list of
1735 children of its parent element. 1735 children of its parent element.
1736 1736
1737 <div class="example"> 1737 <div class="example">
1738 <p>Example:</p> 1738 <p>Example:</p>
1739 <p>The following selector represents a definition title 1739 <p>The following selector represents a definition title
1740 <code>dt</code> inside a definition list <code>dl</code>, this 1740 <code>dt</code> inside a definition list <code>dl</code>, this
1741 <code>dt</code> being the first of its type in the list of children of 1741 <code>dt</code> being the first of its type in the list of children of
1742 its parent element.</p> 1742 its parent element.</p>
1743 <pre>dl dt:first-of-type</pre> 1743 <pre>dl dt:first-of-type</pre>
1744 <p>It is a valid description for the first two <code>dt</code> 1744 <p>It is a valid description for the first two <code>dt</code>
1745 elements in the following example but not for the third one:</p> 1745 elements in the following example but not for the third one:</p>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 1904
1905 <p>The selector <code>p::first-line</code> does not match any real 1905 <p>The selector <code>p::first-line</code> does not match any real
1906 HTML element. It does match a pseudo-element that conforming user 1906 HTML element. It does match a pseudo-element that conforming user
1907 agents will insert at the beginning of every paragraph.</p> 1907 agents will insert at the beginning of every paragraph.</p>
1908 1908
1909 <p>Note that the length of the first line depends on a number of 1909 <p>Note that the length of the first line depends on a number of
1910 factors, including the width of the page, the font size, etc. Thus, 1910 factors, including the width of the page, the font size, etc. Thus,
1911 an ordinary HTML paragraph such as:</p> 1911 an ordinary HTML paragraph such as:</p>
1912 1912
1913 <pre> 1913 <pre>
1914 &lt;P&gt;This is a somewhat long HTML 1914 &lt;P&gt;This is a somewhat long HTML
1915 paragraph that will be broken into several 1915 paragraph that will be broken into several
1916 lines. The first line will be identified 1916 lines. The first line will be identified
1917 by a fictional tag sequence. The other lines 1917 by a fictional tag sequence. The other lines
1918 will be treated as ordinary lines in the 1918 will be treated as ordinary lines in the
1919 paragraph.&lt;/P&gt; 1919 paragraph.&lt;/P&gt;
1920 </pre> 1920 </pre>
1921 1921
1922 <p>the lines of which happen to be broken as follows: 1922 <p>the lines of which happen to be broken as follows:
1923 1923
1924 <pre> 1924 <pre>
1925 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT 1925 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
1926 will be broken into several lines. The first 1926 will be broken into several lines. The first
1927 line will be identified by a fictional tag 1927 line will be identified by a fictional tag
1928 sequence. The other lines will be treated as 1928 sequence. The other lines will be treated as
1929 ordinary lines in the paragraph. 1929 ordinary lines in the paragraph.
1930 </pre> 1930 </pre>
1931 1931
1932 <p>This paragraph might be "rewritten" by user agents to include the 1932 <p>This paragraph might be "rewritten" by user agents to include the
1933 <em>fictional tag sequence</em> for <code>::first-line</code>. This 1933 <em>fictional tag sequence</em> for <code>::first-line</code>. This
1934 fictional tag sequence helps to show how properties are inherited.</p> 1934 fictional tag sequence helps to show how properties are inherited.</p>
1935 1935
1936 <pre> 1936 <pre>
1937 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML 1937 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML
1938 paragraph that <b>&lt;/P::first-line&gt;</b> will be broken into several 1938 paragraph that <b>&lt;/P::first-line&gt;</b> will be broken into several
1939 lines. The first line will be identified 1939 lines. The first line will be identified
1940 by a fictional tag sequence. The other lines 1940 by a fictional tag sequence. The other lines
1941 will be treated as ordinary lines in the 1941 will be treated as ordinary lines in the
1942 paragraph.&lt;/P&gt; 1942 paragraph.&lt;/P&gt;
1943 </pre> 1943 </pre>
1944 1944
1945 <p>If a pseudo-element breaks up a real element, the desired effect 1945 <p>If a pseudo-element breaks up a real element, the desired effect
1946 can often be described by a fictional tag sequence that closes and 1946 can often be described by a fictional tag sequence that closes and
1947 then re-opens the element. Thus, if we mark up the previous paragraph 1947 then re-opens the element. Thus, if we mark up the previous paragraph
1948 with a <code>span</code> element:</p> 1948 with a <code>span</code> element:</p>
1949 1949
1950 <pre> 1950 <pre>
1951 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML 1951 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML
1952 paragraph that will be broken into several 1952 paragraph that will be broken into several
1953 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 1953 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
1954 by a fictional tag sequence. The other lines 1954 by a fictional tag sequence. The other lines
1955 will be treated as ordinary lines in the 1955 will be treated as ordinary lines in the
1956 paragraph.&lt;/P&gt; 1956 paragraph.&lt;/P&gt;
1957 </pre> 1957 </pre>
1958 1958
1959 <p>the user agent could simulate start and end tags for 1959 <p>the user agent could simulate start and end tags for
1960 <code>span</code> when inserting the fictional tag sequence for 1960 <code>span</code> when inserting the fictional tag sequence for
1961 <code>::first-line</code>. 1961 <code>::first-line</code>.
1962 1962
1963 <pre> 1963 <pre>
1964 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a 1964 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a
1965 somewhat long HTML 1965 somewhat long HTML
1966 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be 1966 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be
1967 broken into several 1967 broken into several
1968 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 1968 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
1969 by a fictional tag sequence. The other lines 1969 by a fictional tag sequence. The other lines
1970 will be treated as ordinary lines in the 1970 will be treated as ordinary lines in the
1971 paragraph.&lt;/P&gt; 1971 paragraph.&lt;/P&gt;
1972 </pre> 1972 </pre>
1973 1973
1974 <p>In CSS, the <code>::first-line</code> pseudo-element can only be 1974 <p>In CSS, the <code>::first-line</code> pseudo-element can only be
1975 attached to a block-level element, an inline-block, a table-caption, 1975 attached to a block-level element, an inline-block, a table-caption,
1976 or a table-cell.</p> 1976 or a table-cell.</p>
1977 1977
1978 <p><a name="first-formatted-line"></a>The "first formatted line" of an 1978 <p><a name="first-formatted-line"></a>The "first formatted line" of an
1979 element may occur inside a 1979 element may occur inside a
1980 block-level descendant in the same flow (i.e., a block-level 1980 block-level descendant in the same flow (i.e., a block-level
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 2098
2099 <p>The <span class="index-inst" title="fictional tag 2099 <p>The <span class="index-inst" title="fictional tag
2100 sequence">fictional tag sequence</span> is:</p> 2100 sequence">fictional tag sequence</span> is:</p>
2101 2101
2102 <pre> 2102 <pre>
2103 &lt;P&gt; 2103 &lt;P&gt;
2104 &lt;SPAN&gt; 2104 &lt;SPAN&gt;
2105 &lt;P::first-letter&gt; 2105 &lt;P::first-letter&gt;
2106 T 2106 T
2107 &lt;/P::first-letter&gt;he first 2107 &lt;/P::first-letter&gt;he first
2108 &lt;/SPAN&gt; 2108 &lt;/SPAN&gt;
2109 few words of an article in the Economist. 2109 few words of an article in the Economist.
2110 &lt;/P&gt; 2110 &lt;/P&gt;
2111 </pre> 2111 </pre>
2112 2112
2113 <p>Note that the <code>::first-letter</code> pseudo-element tags abut 2113 <p>Note that the <code>::first-letter</code> pseudo-element tags abut
2114 the content (i.e., the initial character), while the ::first-line 2114 the content (i.e., the initial character), while the ::first-line
2115 pseudo-element start tag is inserted right after the start tag of the 2115 pseudo-element start tag is inserted right after the start tag of the
2116 block element.</p> </div> 2116 block element.</p> </div>
2117 2117
2118 <p>In order to achieve traditional drop caps formatting, user agents 2118 <p>In order to achieve traditional drop caps formatting, user agents
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 p::first-line { color: blue } 2209 p::first-line { color: blue }
2210 2210
2211 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre> 2211 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre>
2212 2212
2213 <p>Assuming that a line break will occur before the word "ends", the 2213 <p>Assuming that a line break will occur before the word "ends", the
2214 <span class="index-inst" title="fictional tag sequence">fictional tag 2214 <span class="index-inst" title="fictional tag sequence">fictional tag
2215 sequence</span> for this fragment might be:</p> 2215 sequence</span> for this fragment might be:</p>
2216 2216
2217 <pre>&lt;P&gt; 2217 <pre>&lt;P&gt;
2218 &lt;P::first-line&gt; 2218 &lt;P::first-line&gt;
2219 &lt;P::first-letter&gt; 2219 &lt;P::first-letter&gt;
2220 S 2220 S
2221 &lt;/P::first-letter&gt;ome text that 2221 &lt;/P::first-letter&gt;ome text that
2222 &lt;/P::first-line&gt; 2222 &lt;/P::first-line&gt;
2223 ends up on two lines 2223 ends up on two lines
2224 &lt;/P&gt;</pre> 2224 &lt;/P&gt;</pre>
2225 2225
2226 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code> 2226 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code>
2227 element. Properties set on <code>::first-line</code> are inherited by 2227 element. Properties set on <code>::first-line</code> are inherited by
2228 <code>::first-letter</code>, but are overridden if the same property is set on 2228 <code>::first-letter</code>, but are overridden if the same property is set on
2229 <code>::first-letter</code>.</p> 2229 <code>::first-letter</code>.</p>
2230 </div> 2230 </div>
2231 2231
2232 2232
2233 <h4><a name=UIfragments>7.3.</a> <a name=selection>The ::selection pseudo-elemen t</a></h4> 2233 <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
2720 <th>Specification</th> 2720 <th>Specification</th>
2721 <td>CSS level 1</td></tr> 2721 <td>CSS level 1</td></tr>
2722 <tr> 2722 <tr>
2723 <th>Accepts</th> 2723 <th>Accepts</th>
2724 <td>type selectors<br>class selectors<br>ID selectors<br>:link, 2724 <td>type selectors<br>class selectors<br>ID selectors<br>:link,
2725 :visited and :active pseudo-classes<br>descendant combinator 2725 :visited and :active pseudo-classes<br>descendant combinator
2726 <br>::first-line and ::first-letter pseudo-elements</td></tr> 2726 <br>::first-line and ::first-letter pseudo-elements</td></tr>
2727 <tr> 2727 <tr>
2728 <th>Excludes</th> 2728 <th>Excludes</th>
2729 <td> 2729 <td>
2730 2730
2731 <p>universal selector<br>attribute selectors<br>:hover and :focus 2731 <p>universal selector<br>attribute selectors<br>:hover and :focus
2732 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI 2732 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI
2733 element states pseudo-classes<br>all structural 2733 element states pseudo-classes<br>all structural
2734 pseudo-classes<br>negation pseudo-class<br>all 2734 pseudo-classes<br>negation pseudo-class<br>all
2735 UI element fragments pseudo-elements<br>::before and ::after 2735 UI element fragments pseudo-elements<br>::before and ::after
2736 pseudo-elements<br>child combinators<br>sibling combinators 2736 pseudo-elements<br>child combinators<br>sibling combinators
2737 2737
2738 <p>namespaces</td></tr> 2738 <p>namespaces</td></tr>
2739 <tr> 2739 <tr>
2740 <th>Extra constraints</th> 2740 <th>Extra constraints</th>
2741 <td>only one class selector allowed per sequence of simple 2741 <td>only one class selector allowed per sequence of simple
2742 selectors</td></tr></tbody></table><br><br> 2742 selectors</td></tr></tbody></table><br><br>
2743 <table class="tprofile"> 2743 <table class="tprofile">
2744 <tbody> 2744 <tbody>
2745 <tr> 2745 <tr>
2746 <th class="title" colspan=2>Selectors profile</th></tr> 2746 <th class="title" colspan=2>Selectors profile</th></tr>
2747 <tr> 2747 <tr>
2748 <th>Specification</th> 2748 <th>Specification</th>
2749 <td>CSS level 2</td></tr> 2749 <td>CSS level 2</td></tr>
2750 <tr> 2750 <tr>
2751 <th>Accepts</th> 2751 <th>Accepts</th>
2752 <td>type selectors<br>universal selector<br>attribute presence and 2752 <td>type selectors<br>universal selector<br>attribute presence and
2753 values selectors<br>class selectors<br>ID selectors<br>:link, :visited, 2753 values selectors<br>class selectors<br>ID selectors<br>:link, :visited,
2754 :active, :hover, :focus, :lang() and :first-child pseudo-classes 2754 :active, :hover, :focus, :lang() and :first-child pseudo-classes
2755 <br>descendant combinator<br>child combinator<br>adjacent sibling 2755 <br>descendant combinator<br>child combinator<br>adjacent sibling
2756 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before 2756 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before
2757 and ::after pseudo-elements</td></tr> 2757 and ::after pseudo-elements</td></tr>
2758 <tr> 2758 <tr>
2759 <th>Excludes</th> 2759 <th>Excludes</th>
2760 <td> 2760 <td>
2761 2761
2762 <p>content selectors<br>substring matching attribute 2762 <p>content selectors<br>substring matching attribute
2763 selectors<br>:target pseudo-classes<br>all UI element 2763 selectors<br>:target pseudo-classes<br>all UI element
2764 states pseudo-classes<br>all structural pseudo-classes other 2764 states pseudo-classes<br>all structural pseudo-classes other
2765 than :first-child<br>negation pseudo-class<br>all UI element 2765 than :first-child<br>negation pseudo-class<br>all UI element
2766 fragments pseudo-elements<br>general sibling combinators 2766 fragments pseudo-elements<br>general sibling combinators
2767 2767
2768 <p>namespaces</td></tr> 2768 <p>namespaces</td></tr>
2769 <tr> 2769 <tr>
2770 <th>Extra constraints</th> 2770 <th>Extra constraints</th>
2771 <td>more than one class selector per sequence of simple selectors (CSS1 2771 <td>more than one class selector per sequence of simple selectors (CSS1
2772 constraint) allowed</td></tr></tbody></table> 2772 constraint) allowed</td></tr></tbody></table>
2773 2773
2774 <p>In CSS, selectors express pattern matching rules that determine which style 2774 <p>In CSS, selectors express pattern matching rules that determine which style
2775 rules apply to elements in the document tree. 2775 rules apply to elements in the document tree.
2776 2776
2777 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode> 2777 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode>
2778 with attribute <code>name</code> set inside a section 1 header <code>h1</code>: 2778 with attribute <code>name</code> set inside a section 1 header <code>h1</code>:
2779 <pre>h1 a[name]</pre> 2779 <pre>h1 a[name]</pre>
2780 2780
2781 <p>All CSS declarations attached to such a selector are applied to elements 2781 <p>All CSS declarations attached to such a selector are applied to elements
2782 matching it. </div> 2782 matching it. </div>
2783 2783
2784 <div class="profile"> 2784 <div class="profile">
2785 <table class="tprofile"> 2785 <table class="tprofile">
2786 <tbody> 2786 <tbody>
2787 <tr> 2787 <tr>
2788 <th class="title" colspan=2>Selectors profile</th></tr> 2788 <th class="title" colspan=2>Selectors profile</th></tr>
2789 <tr> 2789 <tr>
2790 <th>Specification</th> 2790 <th>Specification</th>
2791 <td>STTS 3</td> 2791 <td>STTS 3</td>
2792 </tr> 2792 </tr>
2793 <tr> 2793 <tr>
2794 <th>Accepts</th> 2794 <th>Accepts</th>
2795 <td> 2795 <td>
2796 2796
2797 <p>type selectors<br>universal selectors<br>attribute selectors<br>class 2797 <p>type selectors<br>universal selectors<br>attribute selectors<br>class
2798 selectors<br>ID selectors<br>all structural pseudo-classes<br> 2798 selectors<br>ID selectors<br>all structural pseudo-classes<br>
2799 all combinators 2799 all combinators
2800 2800
2801 <p>namespaces</td></tr> 2801 <p>namespaces</td></tr>
2802 <tr> 2802 <tr>
2803 <th>Excludes</th> 2803 <th>Excludes</th>
2804 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr> 2804 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr>
2805 <tr> 2805 <tr>
2806 <th>Extra constraints</th> 2806 <th>Extra constraints</th>
2807 <td>some selectors and combinators are not allowed in fragment 2807 <td>some selectors and combinators are not allowed in fragment
2808 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble> 2808 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble>
2809 <form> 2809 <form>
2810 <input type="text" name="test10"/> 2810 <input type="text" name="test10"/>
(...skipping 15 matching lines...) Expand all
2826 <input type="text" name="foo"/> 2826 <input type="text" name="foo"/>
2827 <input type="text" name="foo"/> 2827 <input type="text" name="foo"/>
2828 <input type="text" name="foo"/> 2828 <input type="text" name="foo"/>
2829 <input type="text" name="foo"/> 2829 <input type="text" name="foo"/>
2830 <input type="text" name="foo"/> 2830 <input type="text" name="foo"/>
2831 <input type="text" name="foo"/> 2831 <input type="text" name="foo"/>
2832 <input type="text" name="foo"/> 2832 <input type="text" name="foo"/>
2833 <input type="text" name="foo"/> 2833 <input type="text" name="foo"/>
2834 <input type="text" name="foo"/> 2834 <input type="text" name="foo"/>
2835 </form> 2835 </form>
2836 2836
2837 <p>Selectors can be used in STTS 3 in two different 2837 <p>Selectors can be used in STTS 3 in two different
2838 manners: 2838 manners:
2839 <ol> 2839 <ol>
2840 <li>a selection mechanism equivalent to CSS selection mechanism: declarations 2840 <li>a selection mechanism equivalent to CSS selection mechanism: declarations
2841 attached to a given selector are applied to elements matching that selector, 2841 attached to a given selector are applied to elements matching that selector,
2842 <li>fragment descriptions that appear on the right side of declarations. 2842 <li>fragment descriptions that appear on the right side of declarations.
2843 </li></ol></div> 2843 </li></ol></div>
2844 2844
2845 <h2><a name=Conformance></a>13. Conformance and requirements</h2> 2845 <h2><a name=Conformance></a>13. Conformance and requirements</h2>
2846 2846
2847 <p>This section defines conformance with the present specification only. 2847 <p>This section defines conformance with the present specification only.
2848 2848
2849 <p>The inability of a user agent to implement part of this specification due to 2849 <p>The inability of a user agent to implement part of this specification due to
2850 the limitations of a particular device (e.g., non interactive user agents will 2850 the limitations of a particular device (e.g., non interactive user agents will
2851 probably not implement dynamic pseudo-classes because they make no sense without 2851 probably not implement dynamic pseudo-classes because they make no sense without
2852 interactivity) does not imply non-conformance. 2852 interactivity) does not imply non-conformance.
2853 2853
2854 <p>All specifications reusing Selectors must contain a <a 2854 <p>All specifications reusing Selectors must contain a <a
2855 href="#profiling">Profile</a> listing the 2855 href="#profiling">Profile</a> listing the
2856 subset of Selectors it accepts or excludes, and describing the constraints 2856 subset of Selectors it accepts or excludes, and describing the constraints
2857 it adds to the current specification. 2857 it adds to the current specification.
2858 2858
2859 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n 2859 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n
2860 which is not allowed at the current parsing point. 2860 which is not allowed at the current parsing point.
2861 2861
2862 <p>User agents must observe the rules for handling parsing errors: 2862 <p>User agents must observe the rules for handling parsing errors:
2863 <ul> 2863 <ul>
2864 <li>a simple selector containing an undeclared namespace prefix is invalid</li > 2864 <li>a simple selector containing an undeclared namespace prefix is invalid</li >
2865 <li>a selector containing an invalid simple selector, an invalid combinator 2865 <li>a selector containing an invalid simple selector, an invalid combinator
2866 or an invalid token is invalid. </li> 2866 or an invalid token is invalid. </li>
2867 <li>a group of selectors containing an invalid selector is invalid.</li> 2867 <li>a group of selectors containing an invalid selector is invalid.</li>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2900 2900
2901 <h2><a name=references>16. References</a></h2> 2901 <h2><a name=references>16. References</a></h2>
2902 2902
2903 <dl class="refs"> 2903 <dl class="refs">
2904 2904
2905 <dt>[CSS1] 2905 <dt>[CSS1]
2906 <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 2906 <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
2907 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>) 2907 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>)
2908 2908
2909 <dt>[CSS21] 2909 <dt>[CSS21]
2910 <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 2910 <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
2911 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>) 2911 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>)
2912 2912
2913 <dt>[CWWW] 2913 <dt>[CWWW]
2914 <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 2914 <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
2915 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>) 2915 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>)
2916 2916
2917 <dt>[FLEX] 2917 <dt>[FLEX]
2918 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213 2918 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213
2919 2919
2920 <dt>[HTML4] 2920 <dt>[HTML4]
2921 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999 2921 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999
2922 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>) 2922 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>)
2923 2923
2924 <dt>[MATH] 2924 <dt>[MATH]
2925 <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 2925 <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
2926 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>) 2926 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>)
2927 2927
2928 <dt>[RFC3066] 2928 <dt>[RFC3066]
2929 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001 2929 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001
2930 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>) 2930 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>)
2931 2931
2932 <dt>[STTS] 2932 <dt>[STTS]
2933 <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 2933 <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
2934 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>) 2934 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>)
2935 2935
2936 <dt>[SVG] 2936 <dt>[SVG]
2937 <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 2937 <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
2938 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>) 2938 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>)
2939 2939
2940 <dt>[UNICODE]</dt> 2940 <dt>[UNICODE]</dt>
2941 <dd><a name="refsUNICODE"></a> <cite><a 2941 <dd><a name="refsUNICODE"></a> <cite><a
2942 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>. 2942 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>.
2943 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd> 2943 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd>
2944 2944
2945 <dt>[XML10] 2945 <dt>[XML10]
2946 <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 2946 <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
2947 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>) 2947 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>)
2948 2948
2949 <dt>[XMLNAMES] 2949 <dt>[XMLNAMES]
2950 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999 2950 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999
2951 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>) 2951 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>)
2952 2952
2953 <dt>[YACC] 2953 <dt>[YACC]
2954 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975 2954 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975
2955 2955
2956 </dl> 2956 </dl>
2957 </body> 2957 </body>
2958 </html> 2958 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698