blob: ce1c042278ba1bf35c2e543f6e1f2070553c2a1d (
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>
<head>
<script src="resources/text-based-repaint.js"></script>
<script type="text/javascript">
window.onload = function() {
runRepaintTest();
};
function repaintTest() {
document.getElementById('clip').style.transform = 'translateY(100px)';
}
</script>
<style>
#clip {
width: 100%;
height: 300px;
position: fixed;
background-color: rgba(255, 0, 0, 0.9);
-webkit-clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 83%);
-webkit-backface-visibility: hidden;
}
</style>
</head>
<body>
<div id="clip"></div>
</body>
</html>
|