Source code

Revision control

Copy as Markdown

Other Tools

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/text/filter-applied-ref.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<style>
@font-face {
font-family: Ahem;
src: url(../../fonts/Ahem.ttf);
}
</style>
<defs>
<filter id="f" x="0" y="0" width="150%" height="100%" filterUnits="objectBoundingBox">
<feFlood flood-color="yellow" result="flood"/>
<feMerge>
<feMergeNode in="flood"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</defs>
<g style="font: 32px Ahem; fill: blue">
<rect x="20" y="74" width="96" height="32" filter="url(#f)"/>
<g filter="url(#f)">
<rect x="20" y="174" width="160" height="32"/>
</g>
</g>
<g fill="none" stroke="black" stroke-width="4" shape-rendering="crispEdges">
<rect x="20" y="73" width="96" height="32"/>
<rect x="20" y="73" width="144" height="32"/>
<rect x="20" y="173" width="160" height="32"/>
<rect x="20" y="173" width="240" height="32"/>
</g>
</svg>