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

@ -1185,6 +1185,9 @@ pub mod longhands {
${single_keyword("white-space", "normal pre nowrap")}
// TODO(pcwalton): `full-width`
${single_keyword("text-transform", "none capitalize uppercase lowercase")}
// CSS 2.1, Section 17 - Tables
${new_style_struct("Table", is_inherited=False)}