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

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

Powered by Google App Engine
This is Rietveld 408576698