wpt / css / css-text-decor / text-underline-position-vertical-ja.html

Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text-decor/text-underline-position-vertical-ja.html

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-underline-position-property">
    <link rel="match" href="reference/text-underline-position-vertical-ja-ref.html">
    <style>
        @font-face {
            font-family: halt-font;
            src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt-min.otf');
        }
        body { writing-mode: vertical-rl; font-family: Arial; }
        .underline { text-decoration: underline; font-family: halt-font; font-language-override: "JAN"; }
        .overline { text-decoration: overline; font-family: halt-font; font-language-override: "JAN"; }
    </style>
</head>
<body lang="ja">
    <div lang="en">In vertical writing mode with lang=ja, default overline will be same as underline (lang=en). However, when we set text-underline-position to "under left" it should be shifted.</div>
    <div class="underline" style="text-underline-position: under left">&#x56fd;&#x56fd;&#x56fd;&#x56fd;</div>
    <div class="overline">&#x56fd;&#x56fd;&#x56fd;&#x56fd;</div>
</body>
</html>

/css/css-text-decor/reference/text-underline-position-vertical-ja-ref.html

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <style>
        @font-face {
            font-family: halt-font;
            src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt-min.otf');
        }
        body { writing-mode: vertical-rl; font-family: Arial; }
        .underline { text-decoration: underline; font-family: halt-font; font-language-override: "JAN"; }
        .overline { text-decoration: overline; font-family: halt-font; font-language-override: "JAN"; }
    </style>
</head>
<body lang="en">
    <div>In vertical writing mode with lang=ja, default overline will be same as underline (lang=en). However, when we set text-underline-position to "under left" it should be shifted.</div>
    <div class="underline">&#x56fd;&#x56fd;&#x56fd;&#x56fd;</div>
    <div class="underline">&#x56fd;&#x56fd;&#x56fd;&#x56fd;</div>
</body>
</html>