blob: ea771ae7981d14a8e166f63265ac442fa654a345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE HTML>
<style>
#d { overflow:scroll; width:200px; height:200px; background:yellow; }
#d2 { right:0; width:100px; height:100px; background:purple; }
</style>
<fieldset id="d">
<div id="d2"></div>
</fieldset>
<script>
d.getBoundingClientRect();
d.style.transform = "translateX(100px)";
d.getBoundingClientRect();
d2.style.position = "absolute";
</script>
|