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

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: Add additional test expectation Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698