<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Filter: Filtered inline establishes a containing block reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:[email protected]">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="match" href="filtered-inline-is-container-ref.html">
<style>
#scroller {
width: 500px;
height: 500px;
overflow: scroll
}
.spacer {
width: 1000px;
height: 500px;
background-color: lightgreen;
}
#filter {
/* no-op filter */
filter: blur(0px);
display: inline;
}
#fixed, #absolute {
width: 100px;
height: 100px;
}
#fixed {
position: fixed;
top: 100px;
left: 150px;
background-color: green;
}
#absolute {
position: absolute;
top: 200px;
left: 300px;
background-color: blue;
}
</style>
<div id="scroller">
<div class="spacer">
</div>
<div id="filter">
a
<div id="fixed"></div>
<div id="absolute"></div>
</div>
<div class="spacer">
</div>
</div>
<script>
window.onload = function() {
document.getElementById("scroller").scrollTo(50, 250);
}
</script>