mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision b'6884bbba4e81574d2ba84d134bc45fbd7483294f'
This commit is contained in:
parent
aaa2348a25
commit
2a743bedbd
91 changed files with 1387 additions and 535 deletions
|
@ -0,0 +1,24 @@
|
|||
<!doctype html>
|
||||
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#ClipPathElement">
|
||||
<link rel="match" href="reference/clip-path-svg-text-css-ref.html">
|
||||
<meta name="fuzzy" content="0-1;0-200">
|
||||
<meta name="flags" content="ahem">
|
||||
<link rel="stylesheet" href="/fonts/ahem.css" />
|
||||
<style>
|
||||
text {
|
||||
font: 50px/1 Ahem;
|
||||
text-shadow: grey 10px 10px;
|
||||
fill: none;
|
||||
stroke: red;
|
||||
stroke-width: 10px;
|
||||
}
|
||||
</style>
|
||||
<svg>
|
||||
<defs>
|
||||
<!-- clipPath works on raw geometry regardless of fill/stroke/shadow etc -->
|
||||
<clipPath id="c">
|
||||
<text x="30" y="50">Hello</text>
|
||||
</clipPath>
|
||||
</defs>
|
||||
<rect width="200" height="100" fill="green" clip-path="url(#c)"/>
|
||||
</svg>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta name="flags" content="ahem">
|
||||
<link rel="stylesheet" href="/fonts/ahem.css" />
|
||||
<style>
|
||||
text {
|
||||
font: 50px/1 Ahem;
|
||||
}
|
||||
</style>
|
||||
<svg>
|
||||
<defs>
|
||||
<clipPath id="c">
|
||||
<text x="30" y="50">Hello</text>
|
||||
</clipPath>
|
||||
</defs>
|
||||
<rect width="200" height="100" fill="green" clip-path="url(#c)"/>
|
||||
</svg>
|
Loading…
Add table
Add a link
Reference in a new issue