wpt / css / css-text-decor / text-emphasis-position-auto-002.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-emphasis-position-auto-002.html

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

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

<!-- lang tags should work even with non-canonical casing -->
<div lang="Zh">
	<p>你好
</div>

<div lang="jA">
	<p>今日は</p>
</div>

<div lang="KO">
	<p>안녕하세요</p>
</div>

<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>

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

<!DOCTYPE html>
<meta charset="utf-8">
<title>text-emphasis-position auto value</title>
<style>
p {
	border: solid silver;
	text-emphasis: dot;
	margin: 0.5em;
}

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

<div lang="zh" style="text-emphasis-position: under right">
	<p>你好
</div>

<div lang="ja" style="text-emphasis-position: over right">
	<p>今日は</p>
</div>

<div lang="ko" style="text-emphasis-position: over right">
	<p>안녕하세요</p>
</div>

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

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

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