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

Side by Side Diff: LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll.html

Issue 396803010: CSS Shape renders incorrectly when scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed the anonymous function from the test Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5
6 .float {
7 width: 8em;
8 height: 8em;
9 float: left;
10 shape-margin: 2em;
11 margin: 1em;
12 }
13
14 .circle {
15 background-color:blue;
16 shape-outside: circle(closest-side at center);
17 -webkit-clip-path: circle(closest-side at center);
18 }
19
20 </style>
21 <script src="../../http/tests/inspector/inspector-test.js"></script>
22 <script src="../../http/tests/inspector/elements-test.js"></script>
23 <script>
24
25 function test()
26 {
27 var i = 0;
28 function selectNode()
29 {
30 InspectorTest.selectNodeWithId('circle', evaluate);
31 }
32 function evaluate(node)
33 {
34 InspectorTest.dumpInspectorHighlightShape(node, i == 0 ? scroll: Inspect orTest.completeTest.bind(InspectorTest));
35 }
36 function scroll()
37 {
38 window.scrollTo(0, 100);
39 ++i;
40 selectNode();
41 }
42 selectNode();
43 }
44
45 </script>
46 </head>
47
48 <body onload="runTest()">
49 <div class="float circle" id="circle"> </div>
50 </body>
51 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698