wpt / css / css-text-decor / text-underline-position-auto-001.html

Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text-decor/text-underline-position-auto-001.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>text-underline-position auto value</title>
<link rel="help" href="https://drafts.csswg.org/css-text-decor/#propdef-text-underline-position">
<link rel="match" href="text-underline-position-auto-001-ref.html">
<style>
p {
	text-decoration-line: underline;
	text-underline-position: auto;
	margin: 0.5em;
}

div {
	float: left;
	margin: 0.5em;
}
</style>

<div lang="zh" style="writing-mode: vertical-rl">
	<p>你好
</div>

<div lang="ja" style="writing-mode: vertical-rl">
	<p>今日は</p>
</div>

<div lang="ko" style="writing-mode: vertical-rl">
	<p>안녕하세요</p>
</div>

<div lang="mn" style="writing-mode: vertical-lr">
	<p>ᠲᠠᠮᠠᠭ᠎ᠠ ᠶᠢᠨ ᠭᠠᠵᠠᠷ</p>
</div>

/css/css-text-decor/text-underline-position-auto-001-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>text-underline-position auto value</title>
<style>
p {
	text-decoration-line: underline;
	margin: 0.5em;
}

div {
	float: left;
	margin: 0.5em;
}
</style>

<div lang="zh" style="writing-mode: vertical-rl; text-underline-position: left">
	<p>你好
</div>

<div lang="ja" style="writing-mode: vertical-rl; text-underline-position: right">
	<p>今日は</p>
</div>

<div lang="ko" style="writing-mode: vertical-rl; text-underline-position: right">
	<p>안녕하세요</p>
</div>

<div lang="mn" style="writing-mode: vertical-lr; text-underline-position: right">
	<p>ᠲᠠᠮᠠᠭ᠎ᠠ ᠶᠢᠨ ᠭᠠᠵᠠᠷ</p>
</div>