<!DOCTYPE html> | |
<script src="../../resources/ahem.js"></script> | |
<svg> | |
<defs> | |
<clipPath id="textclip"> | |
<rect width="100" height="100"/> | |
</clipPath> | |
<text id="text" y="80" font-size="100" font-family="Ahem" clip-path="url(#textclip)">PASS</text> | |
<clipPath id="clip"> | |
<use xlink:href="#text"/> | |
</clipPath> | |
</defs> | |
<rect width="400" height="200" fill="green" clip-path="url(#clip)"/> | |
</svg> |