testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Thu, 10 Jul 2025 09:08:54 +0000 (6 hours ago)
changeset 795952 1d422913e1cb1658224a2d269f8e4c9e80032d29
parent 652669 624c3df8fcd4a09224901790c4c5cffa9e30a4cc
permissions -rw-r--r--
Bug 1976623 - Create drag popups eagerly for now. r=tnikkel,layout-reviewers Trivially restores pre-regression behavior, for now. Differential Revision: https://phabricator.services.mozilla.com/D256769
<!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>