I have a fixed header that scrolls above every other element in Safari and Chrome but some elements (not all) stay above the header in firefox. For instance, some img go above while others go below (all are in the .main-content div). I have narrowed the problem down to a class called .is-moved-by-drawer and its will-change: transform property. Any ideas on how to fix this?
Here is a codepen: http://codepen.io/bt61/pen/aNMJpz
<div id="PageContainer" class="is-moved-by-drawer">
<header class="site-header" role="banner" style="position: fixed; max-height: 93px;">
<nav class="nav-bar large--hide" role="navigation">
<main class="wrapper main-content" role="main" style="padding-top: 123px;">
<footer class="site-footer small--text-center" role="contentinfo">
</div>
.is-moved-by-drawer {
transition: all 0.4s cubic-bezier(0.46, 0.01, 0.32, 1) 0s;
will-change: transform;
}
html, body, #PageContainer {
display: inline;
height: 100%;
margin: 0;
min-height: 100% !important;
}
.site-header {
background: #000 none repeat scroll 0 0;
position: fixed;
transition: all 0.3s ease 0s;
z-index: 999999;
}
.main-content {
display: block;
padding-bottom: 60px;
padding-top: 30px;
}
If I change .main-content:
.main-content {
display:block
padding-bottom: 60px;
padding-top: 30px;
position: relative;
z-index: -1;
}
It fixes the header over everything else z-index problem but all elements in .main-content become unclickable.