mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
d3685fbd39
--HG-- extra : rebase_source : 4a1b57df9146a31ce8e25a7b215d2eb1edb09a55
15 lines
354 B
HTML
15 lines
354 B
HTML
<!DOCTYPE HTML>
|
|
<style>
|
|
#d { overflow:scroll; width:200px; height:200px; background:yellow; }
|
|
#d2 { right:0; width:100px; height:100px; background:purple; }
|
|
</style>
|
|
<div id="d">
|
|
<div id="d2"></div>
|
|
</div>
|
|
<script>
|
|
d.getBoundingClientRect();
|
|
d.style.transform = "translateX(100px)";
|
|
d.getBoundingClientRect();
|
|
d2.style.position = "absolute";
|
|
</script>
|