layout: Implement text-transform.

The Unicode awareness of `text-transform` is implemented as well as
possible given the Rust standard library's Unicode support. In
particular, the notion of an alphabetic character is used instead of a
letter.

Gecko has a subclass of text run to handle text transforms, but I
implemented this in a simpler way.
This commit is contained in:
Patrick Walton 2014-12-09 19:04:37 -08:00
parent ba06d50e3a
commit 877f02f1d1
11 changed files with 132 additions and 2 deletions

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<!-- Tests that `text-transform: uppercase` works. -->
<body>
<h1 style='font-family: Hiragino Maru Gothic Pro'>YOU ÇAN DO ANYTHING AT ゾムボ.COM</h1>
</body>
</html>