mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
64 lines
No EOL
2 KiB
HTML
64 lines
No EOL
2 KiB
HTML
<!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 - none - basic cases Reftest Reference</title>
|
|
<style type="text/css">
|
|
@page { font: italic 8pt sans-serif; color: gray;
|
|
margin: 7%;
|
|
counter-increment: page;
|
|
@top-left { content: "CSS Text Module Level 3 CR Test Suite"; }
|
|
@top-right { content: "Test text-emphasis-style-none-001-ref"; }
|
|
@bottom-right { content: counter(page); }
|
|
}
|
|
</style>
|
|
<link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp"/>
|
|
<style type="text/css"><![CDATA[
|
|
.parent
|
|
{
|
|
border: solid 1px gray;
|
|
font-size: 2em;
|
|
width: 10em;
|
|
}
|
|
]]></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>
|
|
<p>Test passes if a pair of upper and lower "Filler Text" in the square box is identical.</p>
|
|
<div>
|
|
none
|
|
<div class="parent">
|
|
<div>Filler Text</div>
|
|
<br/>
|
|
<div>Filler 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> |