Created
May 26, 2014 17:18
-
-
Save chrismendis/726cb65f5e426415e614 to your computer and use it in GitHub Desktop.
Android Firefox 26 Height Issue
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, initial-scale=1, user-scalable=no, minimal-ui"> | |
<link rel="stylesheet" href="http://s.codepen.io/assets/reset/reset.css"> | |
<style media="screen"> | |
html, body { | |
width: 100%; | |
} | |
#first { | |
z-index: 100; | |
position: absolute; | |
top: 0; | |
right: 0; | |
left: 0; | |
height: calc(100%); | |
height: -moz-calc(100%); | |
background: red; | |
} | |
#second { | |
height: 10000px; | |
background: blue; | |
} | |
h1, h2 { | |
font-size: 30px; | |
color: white; | |
} | |
h2 { | |
position: absolute; | |
left: 0; | |
bottom: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="first"> | |
<h1>First top</h1> | |
<h2>First bottom</h2> | |
</div> | |
<div id="second"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm hosting this HTML at http://presslydev.s3.amazonaws.com/firefox-android-height-bug/index.html.
Here's an animated gif of the bug in action: