| 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>
|
|
|