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

Side by Side Diff: chrome/test/data/dromaeo/tests/jslib-event-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-event-prototype", '05cfe7b8'); 7 startTest("jslib-event-prototype", '03b86d96');
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 function testfn(){} 14 function testfn(){}
15 15
16 prep(function(){ 16 prep(function(){
17 div = $$("div"); 17 div = $$("div");
18 var tmp = document.createElement("div"); 18 var tmp = document.createElement("div");
19 tmp.innerHTML = html; 19 tmp.innerHTML = html;
20 document.body.appendChild( tmp ); 20 document.body.appendChild( tmp );
21 }); 21 });
22 » 22
23 test("Prototype - observe", function(){ 23 test("Prototype - observe", function(){
24 for ( var i = 0; i < 10; i++ ) 24 for ( var i = 0; i < 10; i++ )
25 div.invoke("observe", "click", testfn); 25 div.invoke("observe", "click", testfn);
26 }); 26 });
27 27
28 test("Prototype - fire", function(){ 28 test("Prototype - fire", function(){
29 for ( var i = 0; i < 10; i++ ) 29 for ( var i = 0; i < 10; i++ )
30 div.invoke("fire", "click"); 30 div.invoke("fire", "click");
31 }); 31 });
32 32
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 specification, these have been described in terms of CSS2.1. <a 284 specification, these have been described in terms of CSS2.1. <a
285 href="#refsCSS21">[CSS21]</a></p> 285 href="#refsCSS21">[CSS21]</a></p>
286 286
287 <h3><a name=terminology></a>1.2. Terminology</h3> 287 <h3><a name=terminology></a>1.2. Terminology</h3>
288 288
289 <p>All of the text of this specification is normative except 289 <p>All of the text of this specification is normative except
290 examples, notes, and sections explicitly marked as 290 examples, notes, and sections explicitly marked as
291 non-normative.</p> 291 non-normative.</p>
292 292
293 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3> 293 <h3><a name=changesFromCSS2></a>1.3. Changes from CSS2</h3>
294 294
295 <p><em>This section is non-normative.</em></p> 295 <p><em>This section is non-normative.</em></p>
296 296
297 <p>The main differences between the selectors in CSS2 and those in 297 <p>The main differences between the selectors in CSS2 and those in
298 Selectors are: 298 Selectors are:
299 299
300 <ul> 300 <ul>
301 301
302 <li>the list of basic definitions (selector, group of selectors, 302 <li>the list of basic definitions (selector, group of selectors,
303 simple selector, etc.) has been changed; in particular, what was 303 simple selector, etc.) has been changed; in particular, what was
304 referred to in CSS2 as a simple selector is now called a sequence 304 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
1467 1467
1468 1468
1469 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5> 1469 <h5><a name=indeterminate>The :indeterminate pseudo-class</a></h5>
1470 1470
1471 <div class="note"> 1471 <div class="note">
1472 1472
1473 <p>Radio and checkbox elements can be toggled by the user, but are 1473 <p>Radio and checkbox elements can be toggled by the user, but are
1474 sometimes in an indeterminate state, neither checked nor unchecked. 1474 sometimes in an indeterminate state, neither checked nor unchecked.
1475 This can be due to an element attribute, or DOM manipulation.</p> 1475 This can be due to an element attribute, or DOM manipulation.</p>
1476 1476
1477 <p>A future version of this specification may introduce an 1477 <p>A future version of this specification may introduce an
1478 <code>:indeterminate</code> pseudo-class that applies to such elements. 1478 <code>:indeterminate</code> pseudo-class that applies to such elements.
1479 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in 1479 <!--While the <code>:indeterminate</code> pseudo-class is dynamic in
1480 nature, and is altered by user action, since it can also be based on 1480 nature, and is altered by user action, since it can also be based on
1481 the presence of an element attribute, it applies to all media.</p> 1481 the presence of an element attribute, it applies to all media.</p>
1482 1482
1483 <p>Components of a radio-group initialized with no pre-selected choice 1483 <p>Components of a radio-group initialized with no pre-selected choice
1484 are an example of :indeterminate state.--></p> 1484 are an example of :indeterminate state.--></p>
1485 1485
1486 </div> 1486 </div>
1487 1487
1488 1488
1489 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4> 1489 <h4><a name=structural-pseudos>6.6.5. Structural pseudo-classes</a></h4>
1490 1490
1491 <p>Selectors introduces the concept of <dfn>structural 1491 <p>Selectors introduces the concept of <dfn>structural
1492 pseudo-classes</dfn> to permit selection based on extra information that lies in 1492 pseudo-classes</dfn> to permit selection based on extra information that lies in
1493 the document tree but cannot be represented by other simple selectors or 1493 the document tree but cannot be represented by other simple selectors or
1494 combinators. 1494 combinators.
1495 1495
1496 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are 1496 <p>Note that standalone pieces of PCDATA (text nodes in the DOM) are
1497 not counted when calculating the position of an element in the list of 1497 not counted when calculating the position of an element in the list of
1498 children of its parent. When calculating the position of an element in 1498 children of its parent. When calculating the position of an element in
1499 the list of children of its parent, the index numbering starts at 1. 1499 the list of children of its parent, the index numbering starts at 1.
1500 1500
1501 1501
1502 <h5><a name=root-pseudo>:root pseudo-class</a></h5> 1502 <h5><a name=root-pseudo>:root pseudo-class</a></h5>
1503 1503
1504 <p>The <code>:root</code> pseudo-class represents an element that is 1504 <p>The <code>:root</code> pseudo-class represents an element that is
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 <p>Examples:</p> 1676 <p>Examples:</p>
1677 <p>The following selector represents a <code>p</code> element that is 1677 <p>The following selector represents a <code>p</code> element that is
1678 the first child of a <code>div</code> element:</p> 1678 the first child of a <code>div</code> element:</p>
1679 <pre>div &gt; p:first-child</pre> 1679 <pre>div &gt; p:first-child</pre>
1680 <p>This selector can represent the <code>p</code> inside the 1680 <p>This selector can represent the <code>p</code> inside the
1681 <code>div</code> of the following fragment:</p> 1681 <code>div</code> of the following fragment:</p>
1682 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1682 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1683 &lt;div class="note"&gt; 1683 &lt;div class="note"&gt;
1684 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1684 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1685 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g 1685 &lt;/div&gt;</pre>but cannot represent the second <code>p</code> in the followin g
1686 fragment: 1686 fragment:
1687 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt; 1687 <pre>&lt;p&gt; The last P before the note.&lt;/p&gt;
1688 &lt;div class="note"&gt; 1688 &lt;div class="note"&gt;
1689 &lt;h2&gt; Note &lt;/h2&gt; 1689 &lt;h2&gt; Note &lt;/h2&gt;
1690 &lt;p&gt; The first P inside the note.&lt;/p&gt; 1690 &lt;p&gt; The first P inside the note.&lt;/p&gt;
1691 &lt;/div&gt;</pre> 1691 &lt;/div&gt;</pre>
1692 <p>The following two selectors are usually equivalent:</p> 1692 <p>The following two selectors are usually equivalent:</p>
1693 <pre>* &gt; a:first-child /* a is first child of any element */ 1693 <pre>* &gt; a:first-child /* a is first child of any element */
1694 a:first-child /* Same (assuming a is not the root element) */</pre> 1694 a:first-child /* Same (assuming a is not the root element) */</pre>
1695 </div> 1695 </div>
1696 1696
1697 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5> 1697 <h5><a name=last-child-pseudo>:last-child pseudo-class</a></h5>
1698 1698
1699 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class 1699 <p>Same as <code>:nth-last-child(1)</code>. The <code>:last-child</code> pseudo- class
1700 represents an element that is the last child of some other element. 1700 represents an element that is the last child of some other element.
1701 1701
1702 <div class="example"> 1702 <div class="example">
1703 <p>Example:</p> 1703 <p>Example:</p>
1704 <p>The following selector represents a list item <code>li</code> that 1704 <p>The following selector represents a list item <code>li</code> that
1705 is the last child of an ordered list <code>ol</code>. 1705 is the last child of an ordered list <code>ol</code>.
1706 <pre>ol &gt; li:last-child</pre> 1706 <pre>ol &gt; li:last-child</pre>
1707 </div> 1707 </div>
1708 1708
1709 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5> 1709 <h5><a name=first-of-type-pseudo>:first-of-type pseudo-class</a></h5>
1710 1710
1711 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class 1711 <p>Same as <code>:nth-of-type(1)</code>. The <code>:first-of-type</code> pseudo- class
1712 represents an element that is the first sibling of its type in the list of 1712 represents an element that is the first sibling of its type in the list of
1713 children of its parent element. 1713 children of its parent element.
1714 1714
1715 <div class="example"> 1715 <div class="example">
1716 <p>Example:</p> 1716 <p>Example:</p>
1717 <p>The following selector represents a definition title 1717 <p>The following selector represents a definition title
1718 <code>dt</code> inside a definition list <code>dl</code>, this 1718 <code>dt</code> inside a definition list <code>dl</code>, this
1719 <code>dt</code> being the first of its type in the list of children of 1719 <code>dt</code> being the first of its type in the list of children of
1720 its parent element.</p> 1720 its parent element.</p>
1721 <pre>dl dt:first-of-type</pre> 1721 <pre>dl dt:first-of-type</pre>
1722 <p>It is a valid description for the first two <code>dt</code> 1722 <p>It is a valid description for the first two <code>dt</code>
1723 elements in the following example but not for the third one:</p> 1723 elements in the following example but not for the third one:</p>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 1882
1883 <p>The selector <code>p::first-line</code> does not match any real 1883 <p>The selector <code>p::first-line</code> does not match any real
1884 HTML element. It does match a pseudo-element that conforming user 1884 HTML element. It does match a pseudo-element that conforming user
1885 agents will insert at the beginning of every paragraph.</p> 1885 agents will insert at the beginning of every paragraph.</p>
1886 1886
1887 <p>Note that the length of the first line depends on a number of 1887 <p>Note that the length of the first line depends on a number of
1888 factors, including the width of the page, the font size, etc. Thus, 1888 factors, including the width of the page, the font size, etc. Thus,
1889 an ordinary HTML paragraph such as:</p> 1889 an ordinary HTML paragraph such as:</p>
1890 1890
1891 <pre> 1891 <pre>
1892 &lt;P&gt;This is a somewhat long HTML 1892 &lt;P&gt;This is a somewhat long HTML
1893 paragraph that will be broken into several 1893 paragraph that will be broken into several
1894 lines. The first line will be identified 1894 lines. The first line will be identified
1895 by a fictional tag sequence. The other lines 1895 by a fictional tag sequence. The other lines
1896 will be treated as ordinary lines in the 1896 will be treated as ordinary lines in the
1897 paragraph.&lt;/P&gt; 1897 paragraph.&lt;/P&gt;
1898 </pre> 1898 </pre>
1899 1899
1900 <p>the lines of which happen to be broken as follows: 1900 <p>the lines of which happen to be broken as follows:
1901 1901
1902 <pre> 1902 <pre>
1903 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT 1903 THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
1904 will be broken into several lines. The first 1904 will be broken into several lines. The first
1905 line will be identified by a fictional tag 1905 line will be identified by a fictional tag
1906 sequence. The other lines will be treated as 1906 sequence. The other lines will be treated as
1907 ordinary lines in the paragraph. 1907 ordinary lines in the paragraph.
1908 </pre> 1908 </pre>
1909 1909
1910 <p>This paragraph might be "rewritten" by user agents to include the 1910 <p>This paragraph might be "rewritten" by user agents to include the
1911 <em>fictional tag sequence</em> for <code>::first-line</code>. This 1911 <em>fictional tag sequence</em> for <code>::first-line</code>. This
1912 fictional tag sequence helps to show how properties are inherited.</p> 1912 fictional tag sequence helps to show how properties are inherited.</p>
1913 1913
1914 <pre> 1914 <pre>
1915 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML 1915 &lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML
1916 paragraph that <b>&lt;/P::first-line&gt;</b> will be broken into several 1916 paragraph that <b>&lt;/P::first-line&gt;</b> 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>If a pseudo-element breaks up a real element, the desired effect 1923 <p>If a pseudo-element breaks up a real element, the desired effect
1924 can often be described by a fictional tag sequence that closes and 1924 can often be described by a fictional tag sequence that closes and
1925 then re-opens the element. Thus, if we mark up the previous paragraph 1925 then re-opens the element. Thus, if we mark up the previous paragraph
1926 with a <code>span</code> element:</p> 1926 with a <code>span</code> element:</p>
1927 1927
1928 <pre> 1928 <pre>
1929 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML 1929 &lt;P&gt;<b>&lt;SPAN class="test"&gt;</b> This is a somewhat long HTML
1930 paragraph that will be broken into several 1930 paragraph that will be broken into several
1931 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 1931 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
1932 by a fictional tag sequence. The other lines 1932 by a fictional tag sequence. The other lines
1933 will be treated as ordinary lines in the 1933 will be treated as ordinary lines in the
1934 paragraph.&lt;/P&gt; 1934 paragraph.&lt;/P&gt;
1935 </pre> 1935 </pre>
1936 1936
1937 <p>the user agent could simulate start and end tags for 1937 <p>the user agent could simulate start and end tags for
1938 <code>span</code> when inserting the fictional tag sequence for 1938 <code>span</code> when inserting the fictional tag sequence for
1939 <code>::first-line</code>. 1939 <code>::first-line</code>.
1940 1940
1941 <pre> 1941 <pre>
1942 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a 1942 &lt;P&gt;&lt;P::first-line&gt;<b>&lt;SPAN class="test"&gt;</b> This is a
1943 somewhat long HTML 1943 somewhat long HTML
1944 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be 1944 paragraph that will <b>&lt;/SPAN&gt;</b>&lt;/P::first-line&gt;<b>&lt;SPAN class= "test"&gt;</b> be
1945 broken into several 1945 broken into several
1946 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified 1946 lines.<b>&lt;/SPAN&gt;</b> The first line will be identified
1947 by a fictional tag sequence. The other lines 1947 by a fictional tag sequence. The other lines
1948 will be treated as ordinary lines in the 1948 will be treated as ordinary lines in the
1949 paragraph.&lt;/P&gt; 1949 paragraph.&lt;/P&gt;
1950 </pre> 1950 </pre>
1951 1951
1952 <p>In CSS, the <code>::first-line</code> pseudo-element can only be 1952 <p>In CSS, the <code>::first-line</code> pseudo-element can only be
1953 attached to a block-level element, an inline-block, a table-caption, 1953 attached to a block-level element, an inline-block, a table-caption,
1954 or a table-cell.</p> 1954 or a table-cell.</p>
1955 1955
1956 <p><a name="first-formatted-line"></a>The "first formatted line" of an 1956 <p><a name="first-formatted-line"></a>The "first formatted line" of an
1957 element may occur inside a 1957 element may occur inside a
1958 block-level descendant in the same flow (i.e., a block-level 1958 block-level descendant in the same flow (i.e., a block-level
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 2076
2077 <p>The <span class="index-inst" title="fictional tag 2077 <p>The <span class="index-inst" title="fictional tag
2078 sequence">fictional tag sequence</span> is:</p> 2078 sequence">fictional tag sequence</span> is:</p>
2079 2079
2080 <pre> 2080 <pre>
2081 &lt;P&gt; 2081 &lt;P&gt;
2082 &lt;SPAN&gt; 2082 &lt;SPAN&gt;
2083 &lt;P::first-letter&gt; 2083 &lt;P::first-letter&gt;
2084 T 2084 T
2085 &lt;/P::first-letter&gt;he first 2085 &lt;/P::first-letter&gt;he first
2086 &lt;/SPAN&gt; 2086 &lt;/SPAN&gt;
2087 few words of an article in the Economist. 2087 few words of an article in the Economist.
2088 &lt;/P&gt; 2088 &lt;/P&gt;
2089 </pre> 2089 </pre>
2090 2090
2091 <p>Note that the <code>::first-letter</code> pseudo-element tags abut 2091 <p>Note that the <code>::first-letter</code> pseudo-element tags abut
2092 the content (i.e., the initial character), while the ::first-line 2092 the content (i.e., the initial character), while the ::first-line
2093 pseudo-element start tag is inserted right after the start tag of the 2093 pseudo-element start tag is inserted right after the start tag of the
2094 block element.</p> </div> 2094 block element.</p> </div>
2095 2095
2096 <p>In order to achieve traditional drop caps formatting, user agents 2096 <p>In order to achieve traditional drop caps formatting, user agents
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 p::first-line { color: blue } 2187 p::first-line { color: blue }
2188 2188
2189 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre> 2189 &lt;P&gt;Some text that ends up on two lines&lt;/P&gt;</pre>
2190 2190
2191 <p>Assuming that a line break will occur before the word "ends", the 2191 <p>Assuming that a line break will occur before the word "ends", the
2192 <span class="index-inst" title="fictional tag sequence">fictional tag 2192 <span class="index-inst" title="fictional tag sequence">fictional tag
2193 sequence</span> for this fragment might be:</p> 2193 sequence</span> for this fragment might be:</p>
2194 2194
2195 <pre>&lt;P&gt; 2195 <pre>&lt;P&gt;
2196 &lt;P::first-line&gt; 2196 &lt;P::first-line&gt;
2197 &lt;P::first-letter&gt; 2197 &lt;P::first-letter&gt;
2198 S 2198 S
2199 &lt;/P::first-letter&gt;ome text that 2199 &lt;/P::first-letter&gt;ome text that
2200 &lt;/P::first-line&gt; 2200 &lt;/P::first-line&gt;
2201 ends up on two lines 2201 ends up on two lines
2202 &lt;/P&gt;</pre> 2202 &lt;/P&gt;</pre>
2203 2203
2204 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code> 2204 <p>Note that the <code>::first-letter</code> element is inside the <code>::first -line</code>
2205 element. Properties set on <code>::first-line</code> are inherited by 2205 element. Properties set on <code>::first-line</code> are inherited by
2206 <code>::first-letter</code>, but are overridden if the same property is set on 2206 <code>::first-letter</code>, but are overridden if the same property is set on
2207 <code>::first-letter</code>.</p> 2207 <code>::first-letter</code>.</p>
2208 </div> 2208 </div>
2209 2209
2210 2210
2211 <h4><a name=UIfragments>7.3.</a> <a name=selection>The ::selection pseudo-elemen t</a></h4> 2211 <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
2698 <th>Specification</th> 2698 <th>Specification</th>
2699 <td>CSS level 1</td></tr> 2699 <td>CSS level 1</td></tr>
2700 <tr> 2700 <tr>
2701 <th>Accepts</th> 2701 <th>Accepts</th>
2702 <td>type selectors<br>class selectors<br>ID selectors<br>:link, 2702 <td>type selectors<br>class selectors<br>ID selectors<br>:link,
2703 :visited and :active pseudo-classes<br>descendant combinator 2703 :visited and :active pseudo-classes<br>descendant combinator
2704 <br>::first-line and ::first-letter pseudo-elements</td></tr> 2704 <br>::first-line and ::first-letter pseudo-elements</td></tr>
2705 <tr> 2705 <tr>
2706 <th>Excludes</th> 2706 <th>Excludes</th>
2707 <td> 2707 <td>
2708 2708
2709 <p>universal selector<br>attribute selectors<br>:hover and :focus 2709 <p>universal selector<br>attribute selectors<br>:hover and :focus
2710 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI 2710 pseudo-classes<br>:target pseudo-class<br>:lang() pseudo-class<br>all UI
2711 element states pseudo-classes<br>all structural 2711 element states pseudo-classes<br>all structural
2712 pseudo-classes<br>negation pseudo-class<br>all 2712 pseudo-classes<br>negation pseudo-class<br>all
2713 UI element fragments pseudo-elements<br>::before and ::after 2713 UI element fragments pseudo-elements<br>::before and ::after
2714 pseudo-elements<br>child combinators<br>sibling combinators 2714 pseudo-elements<br>child combinators<br>sibling combinators
2715 2715
2716 <p>namespaces</td></tr> 2716 <p>namespaces</td></tr>
2717 <tr> 2717 <tr>
2718 <th>Extra constraints</th> 2718 <th>Extra constraints</th>
2719 <td>only one class selector allowed per sequence of simple 2719 <td>only one class selector allowed per sequence of simple
2720 selectors</td></tr></tbody></table><br><br> 2720 selectors</td></tr></tbody></table><br><br>
2721 <table class="tprofile"> 2721 <table class="tprofile">
2722 <tbody> 2722 <tbody>
2723 <tr> 2723 <tr>
2724 <th class="title" colspan=2>Selectors profile</th></tr> 2724 <th class="title" colspan=2>Selectors profile</th></tr>
2725 <tr> 2725 <tr>
2726 <th>Specification</th> 2726 <th>Specification</th>
2727 <td>CSS level 2</td></tr> 2727 <td>CSS level 2</td></tr>
2728 <tr> 2728 <tr>
2729 <th>Accepts</th> 2729 <th>Accepts</th>
2730 <td>type selectors<br>universal selector<br>attribute presence and 2730 <td>type selectors<br>universal selector<br>attribute presence and
2731 values selectors<br>class selectors<br>ID selectors<br>:link, :visited, 2731 values selectors<br>class selectors<br>ID selectors<br>:link, :visited,
2732 :active, :hover, :focus, :lang() and :first-child pseudo-classes 2732 :active, :hover, :focus, :lang() and :first-child pseudo-classes
2733 <br>descendant combinator<br>child combinator<br>adjacent sibling 2733 <br>descendant combinator<br>child combinator<br>adjacent sibling
2734 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before 2734 combinator<br>::first-line and ::first-letter pseudo-elements<br>::before
2735 and ::after pseudo-elements</td></tr> 2735 and ::after pseudo-elements</td></tr>
2736 <tr> 2736 <tr>
2737 <th>Excludes</th> 2737 <th>Excludes</th>
2738 <td> 2738 <td>
2739 2739
2740 <p>content selectors<br>substring matching attribute 2740 <p>content selectors<br>substring matching attribute
2741 selectors<br>:target pseudo-classes<br>all UI element 2741 selectors<br>:target pseudo-classes<br>all UI element
2742 states pseudo-classes<br>all structural pseudo-classes other 2742 states pseudo-classes<br>all structural pseudo-classes other
2743 than :first-child<br>negation pseudo-class<br>all UI element 2743 than :first-child<br>negation pseudo-class<br>all UI element
2744 fragments pseudo-elements<br>general sibling combinators 2744 fragments pseudo-elements<br>general sibling combinators
2745 2745
2746 <p>namespaces</td></tr> 2746 <p>namespaces</td></tr>
2747 <tr> 2747 <tr>
2748 <th>Extra constraints</th> 2748 <th>Extra constraints</th>
2749 <td>more than one class selector per sequence of simple selectors (CSS1 2749 <td>more than one class selector per sequence of simple selectors (CSS1
2750 constraint) allowed</td></tr></tbody></table> 2750 constraint) allowed</td></tr></tbody></table>
2751 2751
2752 <p>In CSS, selectors express pattern matching rules that determine which style 2752 <p>In CSS, selectors express pattern matching rules that determine which style
2753 rules apply to elements in the document tree. 2753 rules apply to elements in the document tree.
2754 2754
2755 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode> 2755 <p>The following selector (CSS level 2) will <b>match</b> all anchors <code>a</c ode>
2756 with attribute <code>name</code> set inside a section 1 header <code>h1</code>: 2756 with attribute <code>name</code> set inside a section 1 header <code>h1</code>:
2757 <pre>h1 a[name]</pre> 2757 <pre>h1 a[name]</pre>
2758 2758
2759 <p>All CSS declarations attached to such a selector are applied to elements 2759 <p>All CSS declarations attached to such a selector are applied to elements
2760 matching it. </div> 2760 matching it. </div>
2761 2761
2762 <div class="profile"> 2762 <div class="profile">
2763 <table class="tprofile"> 2763 <table class="tprofile">
2764 <tbody> 2764 <tbody>
2765 <tr> 2765 <tr>
2766 <th class="title" colspan=2>Selectors profile</th></tr> 2766 <th class="title" colspan=2>Selectors profile</th></tr>
2767 <tr> 2767 <tr>
2768 <th>Specification</th> 2768 <th>Specification</th>
2769 <td>STTS 3</td> 2769 <td>STTS 3</td>
2770 </tr> 2770 </tr>
2771 <tr> 2771 <tr>
2772 <th>Accepts</th> 2772 <th>Accepts</th>
2773 <td> 2773 <td>
2774 2774
2775 <p>type selectors<br>universal selectors<br>attribute selectors<br>class 2775 <p>type selectors<br>universal selectors<br>attribute selectors<br>class
2776 selectors<br>ID selectors<br>all structural pseudo-classes<br> 2776 selectors<br>ID selectors<br>all structural pseudo-classes<br>
2777 all combinators 2777 all combinators
2778 2778
2779 <p>namespaces</td></tr> 2779 <p>namespaces</td></tr>
2780 <tr> 2780 <tr>
2781 <th>Excludes</th> 2781 <th>Excludes</th>
2782 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr> 2782 <td>non-accepted pseudo-classes<br>pseudo-elements<br></td></tr>
2783 <tr> 2783 <tr>
2784 <th>Extra constraints</th> 2784 <th>Extra constraints</th>
2785 <td>some selectors and combinators are not allowed in fragment 2785 <td>some selectors and combinators are not allowed in fragment
2786 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble> 2786 descriptions on the right side of STTS declarations.</td></tr></tbody></ta ble>
2787 <form> 2787 <form>
2788 <input type="text" name="test10"/> 2788 <input type="text" name="test10"/>
(...skipping 15 matching lines...) Expand all
2804 <input type="text" name="foo"/> 2804 <input type="text" name="foo"/>
2805 <input type="text" name="foo"/> 2805 <input type="text" name="foo"/>
2806 <input type="text" name="foo"/> 2806 <input type="text" name="foo"/>
2807 <input type="text" name="foo"/> 2807 <input type="text" name="foo"/>
2808 <input type="text" name="foo"/> 2808 <input type="text" name="foo"/>
2809 <input type="text" name="foo"/> 2809 <input type="text" name="foo"/>
2810 <input type="text" name="foo"/> 2810 <input type="text" name="foo"/>
2811 <input type="text" name="foo"/> 2811 <input type="text" name="foo"/>
2812 <input type="text" name="foo"/> 2812 <input type="text" name="foo"/>
2813 </form> 2813 </form>
2814 2814
2815 <p>Selectors can be used in STTS 3 in two different 2815 <p>Selectors can be used in STTS 3 in two different
2816 manners: 2816 manners:
2817 <ol> 2817 <ol>
2818 <li>a selection mechanism equivalent to CSS selection mechanism: declarations 2818 <li>a selection mechanism equivalent to CSS selection mechanism: declarations
2819 attached to a given selector are applied to elements matching that selector, 2819 attached to a given selector are applied to elements matching that selector,
2820 <li>fragment descriptions that appear on the right side of declarations. 2820 <li>fragment descriptions that appear on the right side of declarations.
2821 </li></ol></div> 2821 </li></ol></div>
2822 2822
2823 <h2><a name=Conformance></a>13. Conformance and requirements</h2> 2823 <h2><a name=Conformance></a>13. Conformance and requirements</h2>
2824 2824
2825 <p>This section defines conformance with the present specification only. 2825 <p>This section defines conformance with the present specification only.
2826 2826
2827 <p>The inability of a user agent to implement part of this specification due to 2827 <p>The inability of a user agent to implement part of this specification due to
2828 the limitations of a particular device (e.g., non interactive user agents will 2828 the limitations of a particular device (e.g., non interactive user agents will
2829 probably not implement dynamic pseudo-classes because they make no sense without 2829 probably not implement dynamic pseudo-classes because they make no sense without
2830 interactivity) does not imply non-conformance. 2830 interactivity) does not imply non-conformance.
2831 2831
2832 <p>All specifications reusing Selectors must contain a <a 2832 <p>All specifications reusing Selectors must contain a <a
2833 href="#profiling">Profile</a> listing the 2833 href="#profiling">Profile</a> listing the
2834 subset of Selectors it accepts or excludes, and describing the constraints 2834 subset of Selectors it accepts or excludes, and describing the constraints
2835 it adds to the current specification. 2835 it adds to the current specification.
2836 2836
2837 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n 2837 <p>Invalidity is caused by a parsing error, e.g. an unrecognized token or a toke n
2838 which is not allowed at the current parsing point. 2838 which is not allowed at the current parsing point.
2839 2839
2840 <p>User agents must observe the rules for handling parsing errors: 2840 <p>User agents must observe the rules for handling parsing errors:
2841 <ul> 2841 <ul>
2842 <li>a simple selector containing an undeclared namespace prefix is invalid</li > 2842 <li>a simple selector containing an undeclared namespace prefix is invalid</li >
2843 <li>a selector containing an invalid simple selector, an invalid combinator 2843 <li>a selector containing an invalid simple selector, an invalid combinator
2844 or an invalid token is invalid. </li> 2844 or an invalid token is invalid. </li>
2845 <li>a group of selectors containing an invalid selector is invalid.</li> 2845 <li>a group of selectors containing an invalid selector is invalid.</li>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 2878
2879 <h2><a name=references>16. References</a></h2> 2879 <h2><a name=references>16. References</a></h2>
2880 2880
2881 <dl class="refs"> 2881 <dl class="refs">
2882 2882
2883 <dt>[CSS1] 2883 <dt>[CSS1]
2884 <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 2884 <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
2885 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>) 2885 <dd>(<code><a href="http://www.w3.org/TR/REC-CSS1">http://www.w3.org/TR/REC-CS S1</a></code>)
2886 2886
2887 <dt>[CSS21] 2887 <dt>[CSS21]
2888 <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 2888 <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
2889 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>) 2889 <dd>(<code><a href="http://www.w3.org/TR/CSS21">http://www.w3.org/TR/CSS21</a> </code>)
2890 2890
2891 <dt>[CWWW] 2891 <dt>[CWWW]
2892 <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 2892 <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
2893 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>) 2893 <dd>(<code><a href="http://www.w3.org/TR/charmod/">http://www.w3.org/TR/charmo d/</a></code>)
2894 2894
2895 <dt>[FLEX] 2895 <dt>[FLEX]
2896 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213 2896 <dd><a name="refsFLEX"></a> "<cite>Flex: The Lexical Scanner Generator</cite>" , Version 2.3.7, ISBN 1882114213
2897 2897
2898 <dt>[HTML4] 2898 <dt>[HTML4]
2899 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999 2899 <dd><a name="refsHTML4"></a> Dave Ragget, Arnaud Le Hors, Ian Jacobs, editors; "<cite>HTML 4.01 Specification</cite>", W3C Recommendation, 24 December 1999
2900 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>) 2900 <dd>(<a href="http://www.w3.org/TR/html4/"><code>http://www.w3.org/TR/html4/</ code></a>)
2901 2901
2902 <dt>[MATH] 2902 <dt>[MATH]
2903 <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 2903 <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
2904 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>) 2904 <dd>(<code><a href="http://www.w3.org/TR/REC-MathML/">http://www.w3.org/TR/REC -MathML/</a></code>)
2905 2905
2906 <dt>[RFC3066] 2906 <dt>[RFC3066]
2907 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001 2907 <dd><a name="refsRFC3066"></a> H. Alvestrand; "<cite>Tags for the Identificati on of Languages</cite>", Request for Comments 3066, January 2001
2908 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>) 2908 <dd>(<a href="http://www.ietf.org/rfc/rfc3066.txt"><code>http://www.ietf.org/r fc/rfc3066.txt</code></a>)
2909 2909
2910 <dt>[STTS] 2910 <dt>[STTS]
2911 <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 2911 <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
2912 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>) 2912 <dd>(<code><a href="http://www.w3.org/TR/NOTE-STTS3">http://www.w3.org/TR/NOTE -STTS3</a></code>)
2913 2913
2914 <dt>[SVG] 2914 <dt>[SVG]
2915 <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 2915 <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
2916 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>) 2916 <dd>(<code><a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a></ code>)
2917 2917
2918 <dt>[UNICODE]</dt> 2918 <dt>[UNICODE]</dt>
2919 <dd><a name="refsUNICODE"></a> <cite><a 2919 <dd><a name="refsUNICODE"></a> <cite><a
2920 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>. 2920 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>.
2921 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd> 2921 <dd>(<code><a href="http://www.unicode.org/versions/">http://www.unicode.org/v ersions/</a></code>)</dd>
2922 2922
2923 <dt>[XML10] 2923 <dt>[XML10]
2924 <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 2924 <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
2925 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>) 2925 <dd>(<a href="http://www.w3.org/TR/REC-xml/"><code>http://www.w3.org/TR/REC-xm l/</code></a>)
2926 2926
2927 <dt>[XMLNAMES] 2927 <dt>[XMLNAMES]
2928 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999 2928 <dd><a name="refsXMLNAMES"></a> Tim Bray, Dave Hollander, Andrew Layman, edito rs; "<cite>Namespaces in XML</cite>", W3C Recommendation, 14 January 1999
2929 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>) 2929 <dd>(<a href="http://www.w3.org/TR/REC-xml-names/"><code>http://www.w3.org/TR/ REC-xml-names/</code></a>)
2930 2930
2931 <dt>[YACC] 2931 <dt>[YACC]
2932 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975 2932 <dd><a name="refsYACC"></a> S. C. Johnson; "<cite>YACC &mdash; Yet another com piler compiler</cite>", Technical Report, Murray Hill, 1975
2933 2933
2934 </dl> 2934 </dl>
2935 </body> 2935 </body>
2936 </html> 2936 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/dromaeo/tests/jslib-event-jquery-2.x.html ('k') | chrome/test/data/dromaeo/tests/jslib-modify-jquery.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698