mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
52
tests/wpt/css-tests/css-masking-1_dev/html/mask-origin-3.htm
Normal file
52
tests/wpt/css-tests/css-masking-1_dev/html/mask-origin-3.htm
Normal file
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: mask-origin: mask positioning area</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-mask-origin" rel="help">
|
||||
<link href="reference/mask-origin-3-ref.htm" rel="match">
|
||||
<meta content="Test checks whether setting mask position area works correctly or not." name="assert">
|
||||
<style type="text/css">
|
||||
svg {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
rect.mask {
|
||||
fill: blue;
|
||||
mask-origin: fill-box;
|
||||
mask-clip: fill-box;
|
||||
mask-repeat: no-repeat;
|
||||
mask-image: url(support/50x50-opaque-blue.svg);
|
||||
}
|
||||
|
||||
rect.view {
|
||||
mask-origin: view-box;
|
||||
mask-clip: view-box;
|
||||
}
|
||||
|
||||
rect.fill {
|
||||
mask-origin: fill-box;
|
||||
mask-clip: stroke-box;
|
||||
}
|
||||
|
||||
rect.stroke {
|
||||
mask-origin: stroke-box;
|
||||
mask-clip: stroke-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<svg viewBox="100 100 100 100" width="200" style="left: 10px;" preserveAspectRatio="none" height="200">
|
||||
<rect y="125" width="100" height="100" class="view mask" x="125"></rect>
|
||||
</svg>
|
||||
<svg width="200" style="left: 240px;" height="200">
|
||||
<rect width="80" stroke="green" y="50" x="50" stroke-width="20" class="fill mask" height="80"></rect>
|
||||
</svg>
|
||||
<svg width="200" style="left: 10px; top: 220px;" height="200">
|
||||
<rect width="80" stroke="green" y="50" x="70" stroke-width="20" class="stroke mask" height="80"></rect>
|
||||
</svg>
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue