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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width-expected.html

Issue 2022033003: [css-sizing] Adding border and padding to fill-available width (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New approach and tests case. Created 4 years, 6 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link href="resources/width-keyword-classes.css" rel="stylesheet">
3 <style>
4 .block {
5 width: 0px;
6 font: 10px/1 Ahem;
7 }
8
9 .item {
10 border: 5px solid magenta;
11 background: cyan;
12 }
13 </style>
14
15 <p>Checking out that 'min-width' as 'fill-available' respects border and padding sizes when container size is 0px, behaving like min-width: auto.</p>
16
17 <h2>block</h2>
18
19 <div class="block">
20 <div class="item">item</div>
21 </div>
22
23 <hr>
24
25 <h2>flex</h2>
26
27 <div class="block">
28 <div class="item">item</div>
29 </div>
30
31 <hr>
32
33 <h2>grid</h2>
34
35 <div class="block">
36 <div class="item">item</div>
37 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698