testing/web-platform/tests/css/css-backgrounds/background-clip/clip-text-multi-line.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (12 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 660844 f7a857e0f4b49fdb1e872db2f8d6ea530d551687
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Backgrounds Test: 'background-clip: text' and painting of multi-line text</title>

  <!--

  Inspired by

  http://wpt.live/css/css-backgrounds/background-clip/clip-text-multi-line.html

  For more info, see

  https://github.com/web-platform-tests/wpt/pull/30812#issuecomment-1314514987

  -->

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="author" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield">
  <link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
  <link rel="match" href="clip-text-multi-line-ref.html">
  <link rel="stylesheet" href="/fonts/ahem.css">
  <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-5846" />
  <style>
  div
    {
      background-clip: text;
      background-color: red;
      background-image: linear-gradient(green, green);
      color: transparent;
      font-family: Ahem;
      font-size: 30px;
      line-height: 1.5;
    }
  </style>

  <p>Test passes if there are 2 green stripes and if the top stripe is half the width of the bottom stripe.

  <div>12345<br>1234567890</div>