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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link href="resources/width-keyword-classes.css" rel="stylesheet">
3 <style>
4 .container {
5 position: relative;
6 border: 2px solid red;
7 }
8 .float { float: left; }
9 .positioned { position: absolute; }
10 .width-0 { width: 0px; }
11 .width-100 { width: 100px; }
12 </style>
13 <script src="../../resources/testharness.js"></script>
14 <script src="../../resources/testharnessreport.js"></script>
15 <div class="container float">
16 <canvas class="max-width-fill-available"></canvas>
17 </div>
18
19 <div class="container float">
20 <canvas class="max-width-fill-available width-100"></canvas>
21 </div>
22
23 <div class="container width-0">
24 <canvas class="max-width-fill-available width-100"></canvas>
25 </div>
26
27 <div class="container width-0">
28 <div class="max-width-fill-available width-100 positioned"></div>
29 </div>
30
31 <div class="container float">
32 <div class="max-width-fill-available width-100 positioned"></div>
33 </div>
34
35 <div class="container width-0">
36 <div class="max-width-fill-available width-100"></div>
37 </div>
38
39 <div class="container float">
40 <div class="max-width-fill-available width-100"></div>
41 </div>
42
43 <script>
44 test(() => {}, 'Ensure that intrinsic max-width size does not crash because of n egative available width assertions.');
45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698