mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
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:
parent
ba06d50e3a
commit
877f02f1d1
11 changed files with 132 additions and 2 deletions
|
@ -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)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue