mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Allow -moz-stack-sizing to work in a single direction only.
This commit is contained in:
parent
d855c929ef
commit
2e686b323c
2 changed files with 4 additions and 13 deletions
|
@ -4199,16 +4199,7 @@ clip-path
|
||||||
</%self:impl_trait>
|
</%self:impl_trait>
|
||||||
|
|
||||||
<%self:impl_trait style_struct_name="XUL"
|
<%self:impl_trait style_struct_name="XUL"
|
||||||
skip_longhands="-moz-stack-sizing -moz-box-ordinal-group">
|
skip_longhands="-moz-box-ordinal-group">
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
|
||||||
pub fn set__moz_stack_sizing(&mut self, v: longhands::_moz_stack_sizing::computed_value::T) {
|
|
||||||
use properties::longhands::_moz_stack_sizing::computed_value::T;
|
|
||||||
self.gecko.mStretchStack = v == T::stretch_to_fit;
|
|
||||||
}
|
|
||||||
|
|
||||||
${impl_simple_copy('_moz_stack_sizing', 'mStretchStack')}
|
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn set__moz_box_ordinal_group(&mut self, v: i32) {
|
pub fn set__moz_box_ordinal_group(&mut self, v: i32) {
|
||||||
self.gecko.mBoxOrdinal = v as u32;
|
self.gecko.mBoxOrdinal = v as u32;
|
||||||
|
|
|
@ -44,9 +44,9 @@ ${helpers.single_keyword("-moz-box-pack", "start center end justify",
|
||||||
alias="-webkit-box-pack",
|
alias="-webkit-box-pack",
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-pack)")}
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-pack)")}
|
||||||
|
|
||||||
${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore",
|
${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore ignore-horizontal ignore-vertical",
|
||||||
products="gecko", gecko_ffi_name="mStretchStack",
|
products="gecko", gecko_ffi_name="mStackSizing",
|
||||||
gecko_constant_prefix="NS_STYLE_STACK_SIZING",
|
gecko_enum_prefix="StyleStackSizing",
|
||||||
animation_value_type="none",
|
animation_value_type="none",
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-stack-sizing)")}
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-stack-sizing)")}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue