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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<?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-style - open - basic cases</title>
<link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
<link rel="help" title="CSS Text Level 3: 11.2.1. Emphasis Mark Style: the ‘text-emphasis-style’ property" href="http://www.w3.org/TR/css-text-decor-3/#text-emphasis-style-property" />
<link rel="match" href="reference/text-emphasis-style-open-001-ref.xht"/>
<meta name="flags" content="" />
<meta name="assert" content="This property applies emphasis marks to the element's text. " />
<style type="text/css"><![CDATA[
.common
{
line-height: 1em;
position: relative;
}
.parent
{
border: solid 1px gray;
font-size: 2em;
width: 10em;
}
.refcommon
{
font-size: 0.5em;
left: 0em;
position: absolute;
top: -1.5em;
}
#test1
{
text-emphasis-style: open;
}
#test2
{
text-emphasis-style: open circle;
}
#test3
{
text-emphasis-style: open dot;
}
#test4
{
text-emphasis-style: open double-circle;
}
#test5
{
text-emphasis-style: open sesame;
}
#test6
{
text-emphasis-style: open triangle;
}
]]></style>
<script type="text/javascript">
// <![CDATA[
// Set Font Family to 'IPAMincho'
function setFontFamily () {
var fontName = 'IPAMincho';
var divs = document.getElementsByTagName('div');
var i = 0;
var div;
while (i < divs.length) {
div = divs.item(i);
if (div.className == 'parent') {
div.style.fontFamily = fontName;
}
i++;
}
}
// ]]>
</script>
</head>
<body>
<div>
<p>Test passes if each pair of upper and lower "Filler Text" in the square box is identical.</p>
open
<div class="parent">
<div><span id="test1">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">◦</span></span><span class="common">i<span class="refcommon">◦</span></span><span class="common">l<span class="refcommon">◦</span></span><span class="common">l<span class="refcommon">◦</span></span><span class="common">e<span class="refcommon">◦</span></span><span class="common">r<span class="refcommon">◦</span></span>
Text
</div>
</div>
<br />
open circle
<div class="parent">
<div><span id="test2">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">○</span></span><span class="common">i<span class="refcommon">○</span></span><span class="common">l<span class="refcommon">○</span></span><span class="common">l<span class="refcommon">○</span></span><span class="common">e<span class="refcommon">○</span></span><span class="common">r<span class="refcommon">○</span></span>
Text
</div>
</div>
<br />
open dot
<div class="parent">
<div><span id="test3">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">◦</span></span><span class="common">i<span class="refcommon">◦</span></span><span class="common">l<span class="refcommon">◦</span></span><span class="common">l<span class="refcommon">◦</span></span><span class="common">e<span class="refcommon">◦</span></span><span class="common">r<span class="refcommon">◦</span></span>
Text
</div>
</div>
<br />
open double-circle
<div class="parent">
<div><span id="test4">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">◎</span></span><span class="common">i<span class="refcommon">◎</span></span><span class="common">l<span class="refcommon">◎</span></span><span class="common">l<span class="refcommon">◎</span></span><span class="common">e<span class="refcommon">◎</span></span><span class="common">r<span class="refcommon">◎</span></span>
Text
</div>
</div>
<br />
open sesame
<div class="parent">
<div><span id="test5">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">﹆</span></span><span class="common">i<span class="refcommon">﹆</span></span><span class="common">l<span class="refcommon">﹆</span></span><span class="common">l<span class="refcommon">﹆</span></span><span class="common">e<span class="refcommon">﹆</span></span><span class="common">r<span class="refcommon">﹆</span></span>
Text
</div>
</div>
<br />
open triangle
<div class="parent">
<div><span id="test6">Filler</span> Text</div>
<br />
<div>
<span class="common">F<span class="refcommon">△</span></span><span class="common">i<span class="refcommon">△</span></span><span class="common">l<span class="refcommon">△</span></span><span class="common">l<span class="refcommon">△</span></span><span class="common">e<span class="refcommon">△</span></span><span class="common">r<span class="refcommon">△</span></span>
Text
</div>
</div>
<p class="fontChange" style="display: block;">
If you are unable to see font glyphs for certain characters using the browsers default font, install the <a href="http://ossipedia.ipa.go.jp/ipafont/">IPA Font(http://ossipedia.ipa.go.jp/ipafont/)</a> and apply it.
<button type="button" onclick="setFontFamily()">
Apply
</button>
</p>
<script type="text/javascript">
if (document.getElementById) {
document.getElementById('fontChange').style.display = 'block'
}
</script>
</div>
</body>
</html>
|