Index: LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html |
diff --git a/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html b/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ec2029f9f9d0ed861cde393409c180a682dc05d4 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html |
@@ -0,0 +1,42 @@ |
+<!DOCTYPE HTML> |
+<html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<link rel="stylesheet" href="../../resources/testharness.css"> |
+<head> |
+<style> |
+* { |
+ margin: 0; |
+ padding: 0; |
+} |
+ |
+#makespace { |
+ height: 5000px; |
+} |
+</style> |
+</head> |
+<body> |
+<div id="makespace"></div> |
+<div id="measure"></div> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ if (window.internals) |
+ window.internals.setUsesOverlayScrollbars(true); |
+ |
+ var test = async_test("Test that partial layout works with overlay scrollbars."); |
+ setTimeout(function() { |
+ test.step(function() { |
+ var measure = document.getElementById('measure'); |
+ var measureWidth = measure.offsetWidth; // Partial layout occurs here! |
+ |
+ assert_equals(measureWidth, document.body.offsetWidth); |
+ assert_equals(measureWidth, window.innerWidth); |
+ }); |
+ |
+ test.done(); |
+ }, 0); |
+</script> |
+</body> |
+</html> |