blob: 273bae6e40ccf256e0d014b34c0ed950a2a22047 [file] [log] [blame]
<!DOCTYPE html>
#test {
zoom: 1.666667;
#test > div {
display: inline-block;
width: 110px;
height: 100px;
overflow: hidden;
#test > div > a {
display: block;
text-decoration: none;
border-bottom: 1px solid black;
margin: 300px 0 10px 0;
<section id="test">
<div id="a"><a>Container A</a></div><div id="b"><a>Container B</a></div>
Tests that scroll offsets have sub-pixel precision.
The underlines for both <code>Container A</code> and
<code>Container B</code> above should line up.
var elementA = document.getElementById('a');
var elementB = document.getElementById('b');
elementB.scrollTop = elementA.scrollTop;