testing/web-platform/tests/css/css-backgrounds/background-clip/clip-text-text-decorations.html
author Makoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 14 Jul 2025 05:41:12 +0000 (5 hours ago)
changeset 796406 1e02bb4c2af2efa34f8335befa373d2b39383b02
parent 751725 d7a30c5ffb49a31d46b939b4debb7651022ded81
permissions -rw-r--r--
Bug 1973726 - Set DOM file path for webkitRelativePath. r=sefeng,geckoview-reviewers,webidl,smaug,ohall Actually, there is no way to set webkitRelativePath from JavaScript. Since GeckoView's folder picker handles virtual file data, we need to set relative path from JavaScript directly. A content URI of System storage document provider only allow file data access from file/folder picker, so there is no way to test it on geckoivew-junit. Also, after landing bug 1591640, GVE always crash when using folder picker. So this includes a fix for it. Differential Revision: https://phabricator.services.mozilla.com/D255615
<!DOCTYPE html>
<meta charset="utf-8">
<title>background-clip: text shows text decorations</title>
<link rel="match" href="clip-text-text-decorations-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
<style>
    .test {
        line-height: 2em;
        font-size: 40px;
        color: transparent;
        background-color: green;
        background-clip: text;
        text-decoration-thickness: 20px;
    }
</style>
<body>
    <div class="test" style="text-decoration: underline">AAAA</div>
    <div class="test" style="text-decoration: line-through">AAAA</div>
    <div class="test" style="text-decoration: overline">AAAA</div>
</body>