mozilla

Compare Revisions

:indeterminate

Change Revisions

Revision 41042:

Revision 41042 by Jürgen Jeka on

Revision 41043:

Revision 41043 by Jürgen Jeka on

Title:
:indeterminate
:indeterminate
Slug:
CSS/:indeterminate
CSS/:indeterminate
Tags:
css, "Gecko 1.9.2", "CSS Reference", Selectors
css, "Gecko 1.9.2", "CSS Reference", Selectors
Content:

Revision 41042
Revision 41043
tt16    <h3>
17      Examples
18    </h3>
19    <p>
20      <a class="external" href="http://www.w3.org/Style/CSS/Test/
 >CSS3/Selectors/current/html/full/flat/css3-modsel-d5.html" title=
 >"http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/ful
 >l/flat/css3-modsel-d5.html">W3C CSS3 Selectors test#177</a>
21    </p>
22    <pre>
23&lt;style&gt;
24       input, span { background: red }
25       input:indeterminate, input:indeterminate + span { backgrou
 >nd: limegreen }
26&lt;/style&gt;
27 
28&lt;p&gt;&lt;input type=checkbox&gt; &lt;span&gt;Everything in th
 >is paragraph should have a green background.&lt;/span&gt;&lt;/p&g
 >t;
29 
30&lt;script&gt; document.getElementsByTagName("input")[0].indeterm
 >inate = true; &lt;/script&gt;
31</pre>

Back to History