mirror of
https://github.com/servo/servo.git
synced 2025-08-31 18:18:21 +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
9
tests/ref/text_transform_uppercase_ref.html
Normal file
9
tests/ref/text_transform_uppercase_ref.html
Normal 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>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue