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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width.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, 7 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/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width-expected.html » ('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/fill-available-with-zero-width.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..a6feb266c79df9ba5dcad734de0f18770d4ab39f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<link href="resources/width-keyword-classes.css" rel="stylesheet">
+<style>
+.block {
+ width: 0px;
+ font: 10px/1 Ahem;
+}
+
+.flex {
+ display: flex;
+}
+
+.grid {
+ display: grid;
+ grid-template-columns: 0px;
+}
+
+.item {
+ border: 5px solid magenta;
+ background: cyan;
+}
+</style>
+
+<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>
+
+<h2>block</h2>
+
+<div class="block">
+ <div class="item min-width-fill-available">item</div>
+</div>
+
+<hr>
+
+<h2>flex</h2>
+
+<div class="block flex">
+ <div class="item min-width-fill-available">item</div>
+</div>
+
+<hr>
+
+<h2>grid</h2>
+
+<div class="block grid">
+ <div class="item min-width-fill-available">item</div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-with-zero-width-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698