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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-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: Rebaselined test. Created 3 years, 11 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/fill-available-min-width-with-zero-width-container-should-not-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-min-width-with-zero-width-container-should-not-crash.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-min-width-with-zero-width-container-should-not-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..485ef7353e22127a7fe479daeebfb513f2e3e86b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-min-width-with-zero-width-container-should-not-crash.html
@@ -0,0 +1,44 @@
+<!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/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div class="container float">
+ <canvas class="min-width-fill-available"></canvas>
+</div>
+
+<div class="container float">
+ <canvas class="min-width-fill-available width-0"></canvas>
+</div>
+
+<div class="container width-0">
+ <canvas class="min-width-fill-available"></canvas>
+</div>
+
+<div class="container width-0">
+ <div class="min-width-fill-available positioned"></div>
+</div>
+
+<div class="container float">
+ <div class="min-width-fill-available positioned"></div>
+</div>
+
+<div class="container width-0">
+ <div class="min-width-fill-available"></div>
+</div>
+
+<div class="container float">
+ <div class="min-width-fill-available"></div>
+</div>
+
+<script>
+test(() => {}, 'Ensure that intrinsic min-width size does not crash because of negative available width assertions.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698