mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
98bb874f22
Closes #9484. r? @mbrubeck Source-Repo: https://github.com/servo/servo Source-Revision: fb3fe3d784c24cdfd8040af0282e5c2182ee2051
33 lines
489 B
HTML
33 lines
489 B
HTML
<!DOCTYPE html>
|
|
<!-- Nothing on this page should be scrollable. -->
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
.red {
|
|
background: red;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.green {
|
|
background: green;
|
|
position: absolute;
|
|
width: 500px;
|
|
height: 100%;
|
|
right: 0px;
|
|
|
|
width: 500px;
|
|
transform: translateX(250px);
|
|
box-shadow: 0px 0px 200px black;
|
|
}
|
|
</style>
|
|
|
|
<div class="red">
|
|
<div class="green"></div>
|
|
</div>
|
|
|