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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html

Issue 2478483003: Ignore the percentage value to calculate the logical height of input control
Patch Set: fix test fails Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html b/third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..52e929d4df73c040c7542e242517f652732e87fa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<meta charset=utf-8>
+<title>Test whether the input box is rendered properly in case that the form has the height value or not</title>
+<head>
+<style type="text/css">
+:root {
+ --input-height: 100%;
+}
+
+body {
+ background-color: gray;
+}
+
+div {
+ background-color: blue;
+ height: 32px;
+ width: 175px;
+ margin: 25px;
+}
+ .search input.query {
+ background: yellow;
+ border: none;
+ float: left;
+ height: var(--input-height);
+ line-height: 24px;
+ padding: 0 0 0 5px;
+ width: 143px;
+}
+</style>
+</head>
+<body>
+ <p>form without height value: the percentage value of the height of the search box is ignored.</p>
+ <div>
+ <form action="http://cbslocal.com/search/" class="search">
+ <input type="text" class="query" name="q" id="s" size="31" placeholder="Search" autocomplete="off" style="color: black;">
+ <input type="reset" class="reset" value="Reset">
+ <input type="submit" class="submit" value="Search">
+ </form>
+ </div>
+ <p>form with height value: the percentage value of the height of the search box is honored.</p>
+ <div>
+ <form action="http://cbslocal.com/search/" class="search">
+ <input type="text" class="query" name="q" id="s" size="31" placeholder="Search" autocomplete="off" style="color: black; height: 9.6px">
+ <input type="reset" class="reset" value="Reset">
+ <input type="submit" class="submit" value="Search">
+ </form>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698