layout: Implement text-rendering per SVG 1.1 § 11.7.4.

Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.
This commit is contained in:
Patrick Walton 2015-01-01 10:55:25 -05:00
parent 112ab49706
commit 53b74ae853
5 changed files with 60 additions and 10 deletions

View file

@ -0,0 +1,27 @@
<!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>