Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html

Issue 1007013002: Make scrollWidth and scrollHeight match other DOM measurement APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mimic old behavior in WebViewImpl Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #test {
5 width: 200.5px;
6 height: 200.5px;
7 }
8 </style>
9 <body>
10 <div id="test"></div>
11 <script>
12 var test = document.getElementById("test");
13 shouldBeTrue("test.scrollWidth == test.offsetWidth");
14 shouldBeTrue("test.scrollHeight == test.offsetHeight");
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698