mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make align-items animatable as discrete type.
This commit is contained in:
parent
4ff5a1ef70
commit
53b4cc3593
2 changed files with 8 additions and 3 deletions
|
@ -1070,6 +1070,12 @@ fn static_assert() {
|
|||
|
||||
${impl_simple_copy('align_items', 'mAlignItems')}
|
||||
|
||||
pub fn clone_align_items(&self) -> longhands::align_items::computed_value::T {
|
||||
use values::specified::align::{AlignFlags, AlignItems};
|
||||
AlignItems(AlignFlags::from_bits(self.gecko.mAlignItems)
|
||||
.expect("mAlignItems contains valid flags"))
|
||||
}
|
||||
|
||||
pub fn set_justify_items(&mut self, v: longhands::justify_items::computed_value::T) {
|
||||
self.gecko.mJustifyItems = v.0.bits()
|
||||
}
|
||||
|
|
|
@ -65,10 +65,9 @@ ${helpers.single_keyword("flex-wrap", "nowrap wrap wrap-reverse",
|
|||
|
||||
${helpers.single_keyword("align-items",
|
||||
"stretch flex-start flex-end center baseline",
|
||||
need_clone=True,
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#align-items-property",
|
||||
animation_type="none")}
|
||||
animation_type="discrete")}
|
||||
% else:
|
||||
${helpers.predefined_type(name="align-content",
|
||||
type="AlignJustifyContent",
|
||||
|
@ -82,7 +81,7 @@ ${helpers.single_keyword("flex-wrap", "nowrap wrap wrap-reverse",
|
|||
initial_value="specified::AlignItems::normal()",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-align-items",
|
||||
extra_prefixes="webkit",
|
||||
animation_type="none")}
|
||||
animation_type="discrete")}
|
||||
|
||||
${helpers.predefined_type(name="justify-items",
|
||||
type="JustifyItems",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue