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

Unified Diff: LayoutTests/fast/css/computed-offset-with-zoom.html

Issue 82083002: Move viewport unit resolution to style recalc time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rename browser zoom to page zoom Created 6 years, 12 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/css/computed-offset-with-zoom.html
diff --git a/LayoutTests/fast/css/computed-offset-with-zoom.html b/LayoutTests/fast/css/computed-offset-with-zoom.html
index 921bc1906cc1ba93ec4cb4d7cae06bedd31f7b54..27d8be4f39b3359f272f64b146caec1a4a90e1dc 100644
--- a/LayoutTests/fast/css/computed-offset-with-zoom.html
+++ b/LayoutTests/fast/css/computed-offset-with-zoom.html
@@ -51,8 +51,8 @@
function test(zoomLevel)
{
document.body.style.zoom = zoomLevel;
- var windowWidth = "'" + (window.innerWidth / 10 / zoomLevel) + "px'";
- var windowHeight = "'" + (window.innerHeight / 10 / zoomLevel) + "px'";
+ var windowWidth = "'" + (window.innerWidth / 10) + "px'";
+ var windowHeight = "'" + (window.innerHeight / 10) + "px'";
shouldBe("window.getComputedStyle(fixedElement).top", "'100px'");
shouldBe("window.getComputedStyle(fixedElement).right", "'100px'");

Powered by Google App Engine
This is Rietveld 408576698