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

Unified Diff: LayoutTests/fast/css/line-height-number-zoom-get-computed-style.html

Issue 1123373002: Revert "Do not correct for zoom for number line-height" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | LayoutTests/fast/css/line-height-number-zoom-get-computed-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/line-height-number-zoom-get-computed-style.html
diff --git a/LayoutTests/fast/css/line-height-number-zoom-get-computed-style.html b/LayoutTests/fast/css/line-height-number-zoom-get-computed-style.html
deleted file mode 100644
index 9b5ab997972b56c3abb83aecc44a93553de791c0..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/line-height-number-zoom-get-computed-style.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-}
-
-function log(message)
-{
- var console = document.getElementById("console");
- console.appendChild(document.createTextNode(message + "\n"));
-}
-function zoomPage()
-{
- var el = document.getElementById('test');
-
- if (window.eventSender) {
- var count=0;
- while(count <10) {
- eventSender.zoomPageIn();
- var num = parseFloat(document.defaultView.getComputedStyle(el, null).getPropertyValue('line-height'));
- log("Line height at zoom level" + (count) + " : " + num.toFixed(2));
- ++count;
- if (count == 10)
- testRunner.notifyDone();
- }
- } else {
- var num = parseFloat(document.defaultView.getComputedStyle(el, null).getPropertyValue('line-height'));
- log("Line height is" + " : " + num.toFixed(2));
- }
-}
-
-</script>
-<head>
-<style type="text/css">
-p {
-display: inline-block;
-background-color: #000;
-color: #fff;
-line-height: 1.2;
-}
-p:hover {
-background-color: #fff;
-color: #000;
-}
-</style>
-</head>
-<body onload="zoomPage()">
-<p id="test">This tests that page zoom and getComputedStyle of line-height works well together. This test requires testRunner to run. To test manually, open this page in a browser window, and zoom in & reload for about 10 times. This text should get bigger at each step proportionately and the line-height should be constant.</p>
-<pre id="console"></pre>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/line-height-number-zoom-get-computed-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698