mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
41 lines
No EOL
1.2 KiB
HTML
41 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Masking: clip-path with mix-blend-mode</title>
|
|
<link href="mailto:cku@mozilla.com" rel="author" title="CJ Ku">
|
|
<link href="https://www.mozilla.org" rel="author" title="Mozilla">
|
|
<link href="https://www.w3.org/TR/css-masking-1/#the-clip-path" rel="help">
|
|
<link href="reference/clip-path-mix-blend-mode-1-ref.htm" rel="match">
|
|
<meta content="Test checks whether clip-path works with mix-blend-mode correctly or not." name="assert">
|
|
<style type="text/css">
|
|
div {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
div.foreground {
|
|
background-color: rgb(255,0,255);
|
|
clip-path: url(#top_left);
|
|
z-index: 100;
|
|
mix-blend-mode: multiply;
|
|
}
|
|
|
|
div.background {
|
|
background-color: rgb(0,255,255);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="foreground"></div>
|
|
<div class="background"></div>
|
|
<svg width="0" height="0">
|
|
<defs>
|
|
<clipPath id="top_left">
|
|
<rect y="0" width="50" height="50" x="0"></rect>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
|
|
|
|
</body></html> |