blob: fd0a2b72890d713ff33451349f320bcecc59d39f [file] [log] [blame]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Position fixed with transform clipping</title>
<style type="text/css" media="screen">
body {
height: 2000px;
margin: 0;
.container {
position: fixed;
width: 400px;
height: 50px;
border: 2px solid black;
overflow: hidden;
.box {
width: 100%;
height: 100%;
background-color: green;
transform: translate(0, 0);
p {
position: absolute;
top: 100px;
<script type="text/javascript" charset="utf-8">
window.addEventListener('load', function() {
window.scrollBy(0, 25);
}, false);
<p><a href=""></a><br>
Green box should fill the black border.</p>
<div class="container">
<div class="box">