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
| /** | |
| * WebKit bug: | |
| Elements do not get clipped according to border-radius | |
| when parent has a perspective() tranfsorm | |
| */ | |
| .outer { | |
| background: deeppink; | |
| width: 300px; | |
| height: 300px; |
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
| /** | |
| * Just for fun™: Flickr spinner in pure CSS | |
| */ | |
| @keyframes move { | |
| to { left: 50%; } | |
| } | |
| @keyframes cover { | |
| from,49.9% { z-index: 1 } |
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
| /** | |
| * SVG inspired by Quine's paradox | |
| */ | |
| svg { | |
| display: block; | |
| margin: 40px auto; | |
| font: 83px sans-serif; | |
| } |
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
| /** | |
| * Counters for Doug | |
| */ | |
| .main-box, | |
| .sub-box { | |
| display: inline-block; | |
| margin: 10px; | |
| padding: 10px; | |
| } |
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
| /* Firefox nightly bug testcase */ |
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
| /** | |
| * Transitions (or lack thereof) with height: auto | |
| */ | |
| div { | |
| width: 10em; | |
| overflow:hidden; | |
| transition: 1s height; | |
| height: 0; | |
| } |
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
| /** | |
| * “Body Border, Rounded Inside” without images or extra elements | |
| */ | |
| div { | |
| width: 10em; | |
| height: 5em; | |
| padding: 1em; | |
| border-radius: 10px; | |
| margin: 100px; |
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
| /** | |
| * Resize on replaced elements? | |
| */ | |
| img { | |
| width: 100px; | |
| height: 100px; | |
| resize: both; | |
| overflow: hidden; | |
| } |
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
| /** | |
| * Draw SVG in canvas | |
| */ |
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
| /** | |
| * Just for fun: Wifi icon with pure CSS | |
| */ | |
| .wifi { | |
| padding: 20px; | |
| } | |
| .wifi, .wifi:before { | |
| display: inline-block; |