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

Unified 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: Created 6 years, 4 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/css3/flexbox/percent-padding-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/percent-padding.html
diff --git a/LayoutTests/css3/flexbox/percent-padding.html b/LayoutTests/css3/flexbox/percent-padding.html
new file mode 100644
index 0000000000000000000000000000000000000000..24bc189d330431241c10fb50fce1e38429250079
--- /dev/null
+++ b/LayoutTests/css3/flexbox/percent-padding.html
@@ -0,0 +1,74 @@
+<!DOCTYPE html>
+<html>
+<link href="resources/flexbox.css" rel="stylesheet">
+<style>
+.flexbox {
+ background: green;
+ position: relative;
+ padding: 10px;
+ border: 2px solid red;
+}
+
+.flexbox > div {
+ background: yellow;
+}
+
+.verticalWritingMode {
+ -webkit-writing-mode: vertical-rl;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.flexbox')">
+<div class="flexbox" style="height:100px">
+ <div data-expected-padding-top="10" data-expected-padding-bottom="10" style="padding:10%"></div>
+</div>
+
+<div class="flexbox" style="height:30%">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:20%"></div>
+</div>
+
+<div class="flexbox">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:30%"></div>
+</div>
+
+<div style="height:200px;">
+ <div class="flexbox" style="height:30%">
+ <div data-expected-padding-top="12" data-expected-padding-bottom="12" style="padding:20%"></div>
+ </div>
+</div>
+
+<div style="height:200px">
+ <div style="height:40%">
+ <div class="flexbox" style="height:30%">
+ <div data-expected-padding-top="12" data-expected-padding-bottom="12" style="padding:50%"></div>
+ </div>
+ </div>
+</div>
+
+<div class="flexbox" style="height:min-content">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:10%"></div>
+</div>
+
+<div class="flexbox" style="height:max-content">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:10%"></div>
+</div>
+
+<div class="flexbox" style="height:fit-content">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:10%"></div>
+</div>
+
+<div class="flexbox" style="min-height:100px; max-height:100px">
+ <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="padding:10%"></div>
+</div>
+
+<div class="flexbox verticalWritingMode" style="width:200px;" >
+ <div data-expected-padding-top="40" data-expected-padding-bottom="40" style="padding: 20%"></div>
+</div>
+
+<div style="width:500px;">
+<div class="flexbox verticalWritingMode" style="width:20%;">
+ <div data-expected-padding-top="20" data-expected-padding-bottom="20" style="padding: 20%"></div>
+</div>
+</div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/percent-padding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698