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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html
diff --git a/LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html b/LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html
new file mode 100644
index 0000000000000000000000000000000000000000..90d9d5f77ab61b3d654d2e38bec3f601c0e24fd3
--- /dev/null
+++ b/LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+#test {
+ width: 200.5px;
+ height: 200.5px;
+}
+</style>
+<body>
+<div id="test"></div>
+<script>
+var test = document.getElementById("test");
+shouldBeTrue("test.scrollWidth == test.offsetWidth");
+shouldBeTrue("test.scrollHeight == test.offsetHeight");
+</script>

Powered by Google App Engine
This is Rietveld 408576698