blob: c13da31246f16c0c0ca69acecf5e13f41d5c3830 [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');