servo/tests/wpt/css-tests/css-masking-1_dev/html/mask-clip-2.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

49 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>CSS Masking: mask-clip: clip mask image</title>
<link href="mailto:cku@mozilla.com" rel="author" title="CJ Ku">
<link href="https://www.mozilla.org" rel="author" title="Mozilla">
<link href="http://www.w3.org/TR/css-masking-1/#the-mask-clip" rel="help">
<link href="reference/mask-clip-2-ref.htm" rel="match">
<meta content="fill-box, stroke-box and view-box values of mask-clip should clip to the appropriate boxes." name="assert">
<style type="text/css">
svg {
position: absolute;
top: 10px;
border: 1px solid black;
}
rect.mask {
fill: blue;
mask-origin: fill-box;
mask-repeat: no-repeat;
mask-image: url(support/50x50-opaque-blue.svg);
}
rect.view {
mask-clip: view-box;
}
rect.fill {
mask-clip: fill-box;
}
rect.stroke {
mask-clip: stroke-box;
}
</style>
</head>
<body>
<svg viewBox="100 100 100 100" width="200" style="left: 10px;" preserveAspectRatio="none" height="200">
<rect y="110" width="50" height="100" class="view mask" x="110"></rect>
</svg>
<svg width="200" style="left: 220px;" height="200">
<rect y="50" width="150" height="150" class="fill mask" x="50"></rect>
</svg>
<svg width="200" style="left: 10px; top: 220px;" height="200">
<rect width="100" stroke="green" y="50" x="50" stroke-width="20" class="stroke mask" height="100"></rect>
</svg>
</body></html>