Created
February 25, 2013 14:01
-
-
Save davidhund/5029958 to your computer and use it in GitHub Desktop.
Testing CSS Toggle()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Testing CSS Toggle() | |
*/ | |
/* Straight from the Spec | |
http://dev.w3.org/csswg/css3-values/#toggle | |
*/ | |
ul { list-style-type: disc; } | |
ul ul { list-style-type: toggle(disc, circle, square, box); } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Testing CSS Toggle()</h1> | |
<p>According to the <a href="http://dev.w3.org/csswg/css3-values/#toggle">Spec</a> the list-style-types of the inner list should toggle between disc, circle, square and box</p> | |
<ul> | |
<li>Lorem ipsum</li> | |
<li>Lorem ipsum</li> | |
<li>This list-style should be disc | |
<ul> | |
<li>This list-style should be circle</li> | |
<li>This list-style should be square</li> | |
<li>This list-style should be box</li> | |
<li>This list-style should be disc (again)</li> | |
<li>This list-style should be circle</li> | |
<li>Etc. (square)</li> | |
</ul> | |
</li> | |
<li>Lorem ipsum</li> | |
<li>Lorem ipsum</li> | |
<li>Lorem ipsum</li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment