blob: 20c8085b948f7ce9f3268b1f3cfb653673e335e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!doctype html>
<html>
<title>Clip Path: invalidate composited clip-path via SVG</title>
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
<style>
body {
margin: 0;
}
div {
height: 500px;
background: black;
clip-path: url(#clip);
will-change: transform;
}
svg {
width: 0;
height: 0;
}
</style>
<div></div>
<svg viewBox="0 0 1 1">
<clipPath id="clip" clipPathUnits="objectBoundingBox">
<polygon points="0,0 0.5,1 1,0" />
</clipPath>
</svg>
|