mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add get_initial_specified_value to many longhands
This commit is contained in:
parent
ce46e6d034
commit
2e07ce7e84
10 changed files with 90 additions and 4 deletions
|
@ -169,6 +169,10 @@ ${helpers.single_keyword("unicode-bidi",
|
|||
#[inline] pub fn get_initial_value() -> computed_value::T {
|
||||
computed_value::none
|
||||
}
|
||||
#[inline]
|
||||
pub fn get_initial_specified_value() -> SpecifiedValue {
|
||||
SpecifiedValue::empty()
|
||||
}
|
||||
/// none | [ underline || overline || line-through || blink ]
|
||||
pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result<SpecifiedValue, ()> {
|
||||
let mut result = SpecifiedValue::empty();
|
||||
|
@ -219,7 +223,8 @@ ${helpers.single_keyword("text-decoration-style",
|
|||
|
||||
${helpers.predefined_type(
|
||||
"text-decoration-color", "CSSColor",
|
||||
"CSSParserColor::RGBA(RGBA::new(0, 0, 0, 255))",
|
||||
"::cssparser::Color::CurrentColor",
|
||||
initial_specified_value="specified::CSSColor::currentcolor()",
|
||||
complex_color=True,
|
||||
products="gecko",
|
||||
animatable=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue