Last active
October 9, 2019 12:25
-
-
Save Gennnji/f3f99bcddded9ea1d8cadf360d76a1d2 to your computer and use it in GitHub Desktop.
Frontend Development for IE11
This file contains 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
1. Problems with inactive margin of elements inside flexbox. | |
Solution: Add pseudo-element ::after like | |
.element::after { | |
content: ''; | |
display: block; | |
height: 20px; | |
} | |
2. Undesired phone number detection on a page with odd styling. | |
Solution: Add meta into head - <meta name="format-detection" content="telephone=no">. | |
3. Pseudo-elemenets specific for IE - https://developer.mozilla.org/en-US/docs/tag/Pseudo-element (starting with -ms-). | |
Solution: In most cases just add display: none; | |
4. new Date('2019-01-01 12:02:02') throws Invalid Date. | |
Solution: | |
let date = '2019-01-01 12:02:02'; | |
date = date.replace(/-/g, '/'); | |
5. Parent element has two elements with float. Another element next to parent rises unexpectedly. | |
Solution: | |
.parent { | |
overflow: hidden; | |
} | |
6. SVG image <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">...</svg> loads as href in element <img href="/img/icon.svg" width="136" height="136" /> but sizes are ignored. | |
Solution: Remove width and height from the SVG image itself - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">...</svg> | |
7. Any <input /> having placeholder triggers onchange event on page load. | |
8. SVGs are focusable by default. | |
Solution: Add attribute focusable="false" to SVG => <svg focusable="false></svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment