Index: third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom.html b/third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom.html |
index 27d8be4f39b3359f272f64b146caec1a4a90e1dc..00cc81a023f5b8cf957d1bf4ff917e39f9f0a0b7 100644 |
--- a/third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom.html |
+++ b/third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom.html |
@@ -53,10 +53,12 @@ |
document.body.style.zoom = zoomLevel; |
var windowWidth = "'" + (window.innerWidth / 10) + "px'"; |
var windowHeight = "'" + (window.innerHeight / 10) + "px'"; |
+ var windowMinusWidth = "'-" + (window.innerWidth / 10) + "px'"; |
+ var windowMinusHeight = "'-" + (window.innerHeight / 10) + "px'"; |
shouldBe("window.getComputedStyle(fixedElement).top", "'100px'"); |
- shouldBe("window.getComputedStyle(fixedElement).right", "'100px'"); |
- shouldBe("window.getComputedStyle(fixedElement).bottom", "'100px'"); |
+ shouldBe("window.getComputedStyle(fixedElement).right", "'-100px'"); |
+ shouldBe("window.getComputedStyle(fixedElement).bottom", "'-100px'"); |
shouldBe("window.getComputedStyle(fixedElement).left", "'100px'"); |
shouldBe("window.getComputedStyle(percentageElement).top", "'50px'"); |
@@ -65,8 +67,8 @@ |
shouldBe("window.getComputedStyle(percentageElement).left", "'100px'"); |
shouldBe("window.getComputedStyle(viewportElement).top", windowHeight); |
- shouldBe("window.getComputedStyle(viewportElement).right", windowWidth); |
- shouldBe("window.getComputedStyle(viewportElement).bottom", windowHeight); |
+ shouldBe("window.getComputedStyle(viewportElement).right", windowMinusWidth); |
+ shouldBe("window.getComputedStyle(viewportElement).bottom", windowMinusHeight); |
shouldBe("window.getComputedStyle(viewportElement).left", windowWidth); |
} |
test(0.5); |