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

Side by Side Diff: LayoutTests/css3/flexbox/percent-padding.html

Issue 385583005: For flex items, percent paddings should resolve against their respective dimension Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 5 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 <html>
3 <link href="resources/flexbox.css" rel="stylesheet">
4 <style>
5 .flexbox {
6 background: green;
7 position: relative;
8 padding: 10px;
9 border: 2px solid red;
10 }
11
12 .flexbox > div {
13 background: yellow;
14 }
15
16 .verticalWritingMode {
17 -webkit-writing-mode: vertical-lr;
18 }
19 </style>
20 <script src="../../resources/check-layout.js"></script>
21 <body onload="checkLayout('.flexbox')">
22 <div class="flexbox" style="height:100px">
23 <div data-expected-padding-top="10" data-expected-padding-bottom="10" style= "padding:10%"></div>
24 </div>
25
26 <div class="flexbox" style="height:30%">
27 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:20%"></div>
28 </div>
29
30 <div class="flexbox">
31 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:30%"></div>
32 </div>
33
34 <div style="height:200px;">
35 <div class="flexbox" style="height:30%">
36 <div data-expected-padding-top="12" data-expected-padding-bottom="12 " style="padding:20%"></div>
37 </div>
38 </div>
39
40 <div style="height:200px">
41 <div style="height:40%">
42 <div class="flexbox" style="height:30%">
43 <div data-expected-padding-top="12" data-expected-padding-bottom ="12" style="padding:50%"></div>
44 </div>
45 </div>
46 </div>
47
48 <div class="flexbox" style="height:min-content">
49 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:10%"></div>
50 </div>
51
52 <div class="flexbox" style="height:max-content">
53 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:10%"></div>
54 </div>
55
56 <div class="flexbox" style="height:fit-content">
57 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:10%"></div>
58 </div>
59
60 <div class="flexbox" style="min-height:100px; max-height:100px">
61 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p adding:10%"></div>
62 </div>
63
64 <div class="flexbox" style="width:200px; height: 100px" >
65 <div class="verticalWritingMode" data-expected-padding-top="40" data-expecte d-padding-bottom="40" style="padding: 20%"></div>
66 </div>
67
68 <div class="flexbox verticalWritingMode" style="width:200px; height: 100px" >
69 <div class="verticalWritingMode" data-expected-padding-top="20" data-expecte d-padding-bottom="20" style="padding: 20%"></div>
70 </div>
71 </body>
72 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/percent-padding-expected.txt » ('j') | Source/core/rendering/RenderBoxModelObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698