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

Side by Side Diff: LayoutTests/paint/deprecation/css-clip-and-clip-path.html

Issue 1318963006: Add a UseCounter for clip CSS or -webkit-clip-path that clips positioned descendants. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/paint/deprecation/css-clip-and-clip-path-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 <style>
3 #scroller {
4 width: 400px;
5 height: 300px;
6 overflow: scroll;
7 position: relative;
8 }
9 #clipper {
10 position: absolute;
11 left: 50px;
12 top: 250px;
13 width: 300px;
14 height: 200px;
15 border: 5px dotted black;
16 clip: rect(0px, 310px, 210px, 0px);
17 -webkit-clip-path: polygon(626px 463px,765px 236px,687px 31px,271px 100px,70 px 10px,49px 250px,133px 406px,374px 462px,529px 393px);
18 height: 2000px;
19 pointer-events: none;
20 }
21 #fixed {
22 position: fixed;
23 z-index: -1;
24 left: 0;
25 top: 0;
26 width: 100%;
27 height: 100%;
28 background: blue;
29 }
30 </style>
31 <div id="scroller">
32 <div id="clipper">
33 <div id="fixed"></div>
34 </div>
35 </div>
36 <script src="../../resources/js-test.js"></script>
37 <script>
38 // These are from UseCounter.h
39 var ClipPathOfPositionedElement = 944;
40 var ClipCssOfPositionedElement = 945;
41
42 window.jsTestIsAsync = true;
43 if (window.testRunner) {
44 window.testRunner.layoutAndPaintAsyncThen(function() {
45 if (window.internals) {
46 shouldBeTrue('internals.isUseCounted(document, ClipPathOfPositionedE lement)');
47 shouldBeTrue('internals.isUseCounted(document, ClipCssOfPositionedEl ement)');
48 finishJSTest();
49 }
50 });
51 }
52 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/paint/deprecation/css-clip-and-clip-path-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698