Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text-decor/text-emphasis-position-over-left-002.xht - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
<head>
<title>CSS Test: text-emphasis-position - over left - 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-left-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 left;
}
.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: under; /* to match emphasis position 'left' */
}
.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>●</rt><rb>b</rb><rt>●</rt><rb>c</rb><rt>●</rt></ruby>
de<br />
<br />
</div>
</div>
<div class="parent vertical">
<span class="test">abc</span> de
</div>
</div>
</div>
</body>
</html>