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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll.html
diff --git a/LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll.html b/LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..929c7a5e3ac713b0a005c9b8919635adda4fb7ae
--- /dev/null
+++ b/LayoutTests/inspector/elements/highlight-css-shapes-outside-scroll.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+
+.float {
+ width: 8em;
+ height: 8em;
+ float: left;
+ shape-margin: 2em;
+ margin: 1em;
+}
+
+.circle {
+ background-color:blue;
+ shape-outside: circle(closest-side at center);
+ -webkit-clip-path: circle(closest-side at center);
+}
+
+</style>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/elements-test.js"></script>
+<script>
+
+function test()
+{
+ var i = 0;
+ function selectNode()
+ {
+ InspectorTest.selectNodeWithId('circle', evaluate);
+ }
+ function evaluate(node)
+ {
+ InspectorTest.dumpInspectorHighlightShape(node, i == 0 ? scroll: InspectorTest.completeTest.bind(InspectorTest));
+ }
+ function scroll()
+ {
+ window.scrollTo(0, 100);
+ ++i;
+ selectNode();
+ }
+ selectNode();
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<div class="float circle" id="circle"> </div>
+</body>
+</html>
« 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