Created
October 7, 2014 20:21
-
-
Save skalnik/2f69478b435502357c81 to your computer and use it in GitHub Desktop.
Hidden IFrame Firefox Issue
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<body> | |
<img id="img" style="max-width: 600px" src="https://render.githubusercontent.com/stormtroopocat.png"> | |
<script type="text/javascript"> | |
var element = document.getElementById('img'); | |
var style = window.getComputedStyle(element); | |
console.log(style.getPropertyValue('max-width')); | |
</script> | |
</body> | |
</html> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<iframe src="iframe.html" style="display: none"> | |
Enable iframes please! | |
</iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment