mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
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.
8 lines
222 B
HTML
8 lines
222 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Tests that `text-transform: lowercase` works. -->
|
|
<body>
|
|
<h1 style='text-transform: lowercase; font-family: Hiragino Maru Gothic Pro'>YoU CaN dO ÁnYtHiNg At ゾムボ.cOm</h1>
|
|
</body>
|
|
</html>
|
|
|