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

Side by Side Diff: LayoutTests/fast/replaced/absolute-position-auto-width-and-left-and-right-and-intrinsic-width.html

Issue 24360004: Use shrink-to-fit for width for Button, input, select, textarea, and legend treat width value of 'a… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review comments Created 7 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/absolute-position-auto-width-and-left-and-right-and-intrinsic-width-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .container {
6 position: relative;
7 height: 50px;
8 background-color: gray;
9 }
10
11 .auto-width {
12 position: absolute;
13 left: 0;
14 right: 0;
15 }
16
17 .with-border-padding {
18 border: 2px;
19 padding: 5px;
20 }
21
22 .border-box {
23 box-sizing: border-box;
24 -moz-box-sizing: border-box;
25 width: 200px;
26 height: 20px;
27 }
28 </style>
29 </head>
30 <body>
31 <div>Check if the elements shrink to fit as per their 'intrinsic' width for Butt on, input, select and textarea. If you see any the elements strech to available width, then the test has failed.</div>
32 <div class="container">
33 <button id="button" class="auto-width">Button</button>
34 </div>
35 <div class="container">
36 <input id="inputText" type="text" class="auto-width">
37 </div>
38 <div class="container">
39 <select id="select" class="auto-width"></select>
40 </div>
41 <div class="container">
42 <textarea id="textarea" class="auto-width">Text area</textarea>
43 </div>
44 <div class="container">
45 <button id="buttonBorderPadding" class="auto-width with-border-padding">Button</ button>
46 </div>
47 <div class="container">
48 <input id="inputTextBorderPadding" type="text" class="auto-width with-border-pad ding">
49 </div>
50 <div class="container">
51 <select id="selectBorderPadding" class="auto-width with-border-padding"></select >
52 </div>
53 <div class="container">
54 <textarea id="textareaBorderPadding" class="auto-width with-border-padding">Text area</textarea>
55 </div>
56 <div class="container">
57 <button id="button-border-box" class="auto-width border-box with-border-padding" >Button</button>
58 </div>
59 <div class="container">
60 <input id="inputText-border-box" type="text" class="auto-width border-box with-b order-padding">
61 </div>
62 <div class="container">
63 <select id="select-border-box" class="auto-width border-box with-border-padding" ></select>
64 </div>
65 <div class="container">
66 <textarea id="textarea-border-box" class="auto-width border-box with-border-padd ing">Text area</textarea>
67 </div>
68 </body>
69 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/absolute-position-auto-width-and-left-and-right-and-intrinsic-width-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698