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

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

Issue 1988813002: getComputedStyle should handle over-constrained properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test case's expected file Created 4 years, 7 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 | third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/computed-offset-with-zoom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698