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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-image-threshold.html

Issue 635533003: Don't delete nodes in the float interval tree while traversing it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add correct png! Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.onload = function() {
6 // fetch offsetTop to force a layout
7 document.body.offsetTop;
8
9 var el = document.querySelector('#add-shape-image-threshold .shape');
10 el.style.setProperty('shape-image-threshold', 0.25);
11 el.className = 'shape threshold25';
12
13 el = document.querySelector('#change-shape-image-threshold .shape');
14 el.className = 'shape threshold75';
15
16 el = document.querySelector('#remove-shape-image-threshold .shape');
17 el.className = 'shape';
18
19 console.log('accomplished!');
20 };
21 </script>
22 <style>
23 .container {
24 width: 200px;
25 height: 200px;
26 overflow-wrap: break-word;
27 border: 2px solid blue;
28 font: 50px/1 Ahem, sans-serif;
29 color: green;
30 overflow: hidden;
31 }
32 .shape {
33 float: left;
34 position: relative;
35 width: 100px;
36 height: 100px;
37 shape-outside: url('../resources/svg-shape-002.svg');
38 }
39 .shape::before {
40 position: absolute;
41 display: block;
42 top: 0; left: 0;
43 width: 100px;
44 height: 100px;
45 background-color: blue;
46 content: ' ';
47 }
48
49 .threshold25 {
50 shape-image-threshold: 0.26;
51 }
52 .threshold25::before {
53 width: 75px;
54 }
55
56 .threshold75 {
57 shape-image-threshold: 0.76;
58 }
59 .threshold75::before {
60 width: 25px;
61 }
62 </style>
63 </head>
64 <body>
65 <p>When shape-image-threshold is modified dynamically, content affected by t he shape's contour should relayout. For each test, you should see green blocks s eparated by white space, wrapping around a blue rectangle in the upper left. Thi s test requires the Ahem font.</p>
66
67 <p>Setting shape-image-threshold with no prior entry</p>
68 <div id='add-shape-image-threshold' class='container'><div class='shape'></d iv>x x x x x x x x x x</div>
69
70 <p>Setting shape-image-threshold with a prior entry</p>
71 <div id='change-shape-image-threshold' class='container'><div class='shape t hreshold25'></div>x x x x x x x x x x</div>
72
73 <p>Removing shape-image-threshold with a prior entry</p>
74 <div id='remove-shape-image-threshold' class='container'><div class='shape t hreshold25'></div>x x x x x x x x x x</div>
75 </body>
76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698