mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
parent
112ab49706
commit
53b74ae853
5 changed files with 60 additions and 10 deletions
27
tests/html/text_rendering.html
Normal file
27
tests/html/text_rendering.html
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue