Created
June 28, 2013 14:32
-
-
Save gunnarbittersmann/5885116 to your computer and use it in GitHub Desktop.
Firefox bug
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 bug | |
| */ | |
| main | |
| { | |
| position: relative; | |
| transition: left 1s ease-in-out; | |
| /* | |
| Smooth transition does not work in Firefox | |
| without explicitly setting default value | |
| left: 0; | |
| */ | |
| } | |
| .shifted main | |
| { | |
| left: 10em; | |
| } |
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
| <button id="ctrl-shift">shift</button> | |
| <main> | |
| <p>’Tis the main content.</p> | |
| </main> |
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
| (function () | |
| { | |
| document.getElementById('ctrl-shift').addEventListener('click', function () | |
| { | |
| document.documentElement.classList.toggle('shifted'); | |
| }, false); | |
| })(); |
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":"separate","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