layout: Implement word-spacing per CSS 2.1 § 16.4.

This assumes that there are no ligatures that span across multiple
words. Since we have a per-word shape cache, this is a safe assumption
as of now. I have left comments to ensure that, if and when this is
revisted, we make sure to handle it properly.
This commit is contained in:
Patrick Walton 2014-12-12 17:49:37 -08:00
parent ea39b878ac
commit 106fdb1d32
7 changed files with 94 additions and 7 deletions

View file

@ -0,0 +1,16 @@
<html>
<head>
<!-- Tests that `word-spacing` works. -->
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style>
* {
word-spacing: 100px;
color: chartreuse;
}
body {
margin: 0;
}
</style>
<body>X XX</body>
</head>