mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Derive ToComputedValue for keywords without extra specified values
This commit is contained in:
parent
ccc932ad10
commit
70a99cef15
3 changed files with 65 additions and 87 deletions
|
@ -54,17 +54,19 @@ ${helpers.single_keyword("position", "static absolute relative fixed sticky",
|
|||
flags="CREATES_STACKING_CONTEXT ABSPOS_CB",
|
||||
spec="https://drafts.csswg.org/css-position/#position-property")}
|
||||
|
||||
<%helpers:single_keyword_computed name="float"
|
||||
values="none left right"
|
||||
// https://drafts.csswg.org/css-logical-props/#float-clear
|
||||
extra_specified="inline-start inline-end"
|
||||
needs_conversion="True"
|
||||
animation_value_type="discrete"
|
||||
gecko_enum_prefix="StyleFloat"
|
||||
gecko_inexhaustive="True"
|
||||
gecko_ffi_name="mFloat"
|
||||
flags="APPLIES_TO_FIRST_LETTER"
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-float">
|
||||
<%helpers:single_keyword
|
||||
name="float"
|
||||
values="none left right"
|
||||
// https://drafts.csswg.org/css-logical-props/#float-clear
|
||||
extra_specified="inline-start inline-end"
|
||||
needs_conversion="True"
|
||||
animation_value_type="discrete"
|
||||
gecko_enum_prefix="StyleFloat"
|
||||
gecko_inexhaustive="True"
|
||||
gecko_ffi_name="mFloat"
|
||||
flags="APPLIES_TO_FIRST_LETTER"
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-float"
|
||||
>
|
||||
impl ToComputedValue for SpecifiedValue {
|
||||
type ComputedValue = computed_value::T;
|
||||
|
||||
|
@ -105,18 +107,20 @@ ${helpers.single_keyword("position", "static absolute relative fixed sticky",
|
|||
}
|
||||
}
|
||||
}
|
||||
</%helpers:single_keyword_computed>
|
||||
</%helpers:single_keyword>
|
||||
|
||||
<%helpers:single_keyword_computed name="clear"
|
||||
values="none left right both"
|
||||
// https://drafts.csswg.org/css-logical-props/#float-clear
|
||||
extra_specified="inline-start inline-end"
|
||||
needs_conversion="True"
|
||||
gecko_inexhaustive="True"
|
||||
animation_value_type="discrete"
|
||||
gecko_enum_prefix="StyleClear"
|
||||
gecko_ffi_name="mBreakType"
|
||||
spec="https://www.w3.org/TR/CSS2/visuren.html#flow-control">
|
||||
<%helpers:single_keyword
|
||||
name="clear"
|
||||
values="none left right both"
|
||||
// https://drafts.csswg.org/css-logical-props/#float-clear
|
||||
extra_specified="inline-start inline-end"
|
||||
needs_conversion="True"
|
||||
gecko_inexhaustive="True"
|
||||
animation_value_type="discrete"
|
||||
gecko_enum_prefix="StyleClear"
|
||||
gecko_ffi_name="mBreakType"
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-clear"
|
||||
>
|
||||
impl ToComputedValue for SpecifiedValue {
|
||||
type ComputedValue = computed_value::T;
|
||||
|
||||
|
@ -157,7 +161,7 @@ ${helpers.single_keyword("position", "static absolute relative fixed sticky",
|
|||
}
|
||||
}
|
||||
}
|
||||
</%helpers:single_keyword_computed>
|
||||
</%helpers:single_keyword>
|
||||
|
||||
${helpers.predefined_type(
|
||||
"vertical-align",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue