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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/border-box-sizing.html

Issue 2100463002: Fix sizing of intrinsic size keywords in combination with box-sizing: border-box (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/border-box-sizing.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/border-box-sizing.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/border-box-sizing.html
new file mode 100644
index 0000000000000000000000000000000000000000..ceeb2dcae2fcb0a7d9ce2a02f780fe837d28b6a6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/border-box-sizing.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+
+<style>
+.container {
+ box-sizing: border-box;
+}
+</style>
+
+<body onload="checkLayout('.container')">
+<div id=log></div>
+
+<div class="container" style="height: 20px; min-height: min-content; padding-top: 30px;" data-expected-height="80">
+ <div style="height: 50px; width: 50px;"></div>
+</div>
+
+<div style="display: flex; flex-direction: column; height: 20px;">
+ <!-- uses the implied min-height: auto; should not flex-shrink below 80 -->
+ <div class="container" style="padding-top: 30px;" data-expected-height="80">
+ <div style="height: 50px; width: 50px;"></div>
+ </div>
+</div>
+
+<div class="container" style="position: absolute; height: 20px; width: min-content; padding-left: 30px;" data-expected-width="80">
+ <div style="height: 50px; width: 50px;"></div>
+</div>
+
+
+<div class="container" style="height: 20px; width: min-content; padding-left: 30px;" data-expected-width="80">
+ <div style="height: 50px; width: 50px;"></div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698