A
A
Anton Zhukov2016-06-21 15:16:06
css
Anton Zhukov, 2016-06-21 15:16:06

Layout. Firefox ignores position:fixed if the parent has blur. What to do?

Codepen
codepen.io/MrCheater/pen/BzQymN The whole point of the HTML
problem
74481cc4e565421494484c549ec80f6a.png

<div class="firefox-gavno">
  <div class="test-firefox">Firefox gavno. Fixed block Bottom 30%</div>
</div>
<div class="test">Fixed block Bottom 30%</div>

css
body {
  padding:10px;
}

.test {
    position: fixed;
    bottom: 30%;
    background: red;
}

.test-firefox {
    position: fixed;
    bottom: 30%;
    left: 300px;
    background: green;
}

.firefox-gavno{
    filter:blur(0px);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
metaf, 2016-06-21
@MrCheater

Well, actually, firefox is just right, read the documentation (by the way, are you aware that this is only a draft?)
https://www.w3.org/TR/filter-effects-1/#placement
This is how transform works. In human language, the problem is described here: meyerweb.com/eric/thoughts/2011/09/12/un-fixing-fi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question