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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html

Issue 2065243003: [css-sizing] Ensure positive available size on replaced elements 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
Index: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e01be33492c39746d9d29f97cee9fbe750bb89cd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<link href="resources/width-keyword-classes.css" rel="stylesheet">
+<style>
+.container {
+ position: relative;
+ border: 2px solid red;
+}
+.float { float: left; }
+.positioned { position: absolute; }
+.width-0 { width: 0px; }
+</style>
+<script src="../../resources/js-test.js"></script>
mstensho (USE GERRIT) 2016/08/09 11:35:26 Nothing is tested in this test, apart from the cra
jfernandez 2016/08/18 19:21:10 I think we can remove it, indeed.
+
+<p>Ensure that intrinsic min-width size does not crash because of negative available width assertions.</p>
+
+<div class="container float">
+ <canvas class="min-width-fit-content"></canvas>
+</div>
+
+<div class="container width-0">
+ <canvas class="min-width-fit-content"></canvas>
+</div>
+
+<div class="container width-0">
+ <div class="min-width-fit-content positioned"></div>
+</div>
+
+<div class="container float">
+ <div class="min-width-fit-content positioned"></div>
+</div>
+
+<div class="container width-0">
+ <div class="min-width-fit-content"></div>
+</div>
+
+<div class="container float">
+ <div class="min-width-fit-content"></div>
+</div>
+
+

Powered by Google App Engine
This is Rietveld 408576698