mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
font-variant-caps implemented in font.mako.rs
This commit is contained in:
parent
b9a8ccd775
commit
b03b8c2991
1 changed files with 15 additions and 0 deletions
|
@ -140,6 +140,21 @@ ${helpers.single_keyword("font-variant",
|
||||||
"normal small-caps",
|
"normal small-caps",
|
||||||
animatable=False)}
|
animatable=False)}
|
||||||
|
|
||||||
|
|
||||||
|
<% font_variant_caps_custom_consts= { "small-caps": "SMALLCAPS",
|
||||||
|
"all-small": "ALLSMALL",
|
||||||
|
"petite-caps": "PETITECAPS",
|
||||||
|
"all-petite": "ALLPETITE",
|
||||||
|
"titling-caps": "TITLING" } %>
|
||||||
|
|
||||||
|
${helpers.single_keyword("font-variant-caps",
|
||||||
|
"normal small-caps all-small petite-caps unicase titling-caps",
|
||||||
|
gecko_constant_prefix="NS_FONT_VARIANT_CAPS",
|
||||||
|
gecko_ffi_name="mFont.variantCaps",
|
||||||
|
products="gecko",
|
||||||
|
custom_consts=font_variant_caps_custom_consts,
|
||||||
|
animatable=False)}
|
||||||
|
|
||||||
<%helpers:longhand name="font-weight" need_clone="True" animatable="True">
|
<%helpers:longhand name="font-weight" need_clone="True" animatable="True">
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue