servo/tests/html/text_rendering.html
Patrick Walton 53b74ae853 layout: Implement text-rendering per SVG 1.1 § 11.7.4.
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.
2015-01-08 12:32:58 -08:00

27 lines
443 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
body {
font-size: 24pt;
font-family: "PT Sans";
font-weight: bold;
}
#a {
text-rendering: optimizelegibility;
}
#b {
text-rendering: geometricprecision;
}
#c {
text-rendering: optimizespeed;
}
</style>
</head>
<body>
<div id=a>Harry finally caught the Snitch.</div>
<div id=b>Harry finally caught the Snitch.</div>
<div id=c>Harry finally caught the Snitch.</div>
</body>
</html>