summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-emphasis-position-over-right-002.xht
blob: 2c6ab9a0deb236d5b4018b57d19f9a0b8d0e516e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>CSS Test: text-emphasis-position - over right - basic cases</title>
		<link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
		<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com" />
		<link rel="help"  href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property" />
		<link rel="match" href="reference/text-emphasis-position-over-right-002-ref.xht"/>
		<meta name="flags" content="ahem" />
		<meta name="assert" content="This property describes where emphasis marks are drawn at." />
		<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
		<style type="text/css"><![CDATA[
			.test
			{
				text-emphasis-style: filled circle;
				text-emphasis-position: over right;
			}
			.vertical
			{
				writing-mode: vertical-rl;
			}
			/* the CSS below is not part of the test */
			.displayarea
			{
				border: solid 1px gray;
				padding: 10px;
				width: 10em;
			}
			.floatright
			{
				float: right;
			}
			.ref {
				ruby-position: over;  /* to match emphasis position 'right' */
			}
			.parent
			{
				background: yellow;
				border: solid 1px gray;
				color: blue;
				font: 20px/1em ahem;
				height: 6em;
				width: 2em;
			}
		]]></style>
	</head>
	<body>
		<div>
			<p>Test passes if a pair of left and right block in the square box is identical.</p>
			<p>vertical</p>
			<div class="displayarea">
				<div class="parent vertical floatright ref">
					<div>
						<ruby><rb>a</rb><rt>&#x25CF;</rt><rb>b</rb><rt>&#x25CF;</rt><rb>c</rb><rt>&#x25CF;</rt></ruby>
						 de<br />
						<br />
					</div>
				</div>
				<div class="parent vertical">
					<span class="test">abc</span> de
				</div>
			</div>
		</div>
	</body>
</html>