Skip to content

Commit

Permalink
Parse flex-direction CSS property.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Zentner authored and pcwalton committed Aug 21, 2015
1 parent 1f9778f commit 45b7ee9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/script/dom/webidls/CSSStyleDeclaration.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,6 @@ partial interface CSSStyleDeclaration {
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString transitionTimingFunction;
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString transitionProperty;
[SetterThrows, TreatNullAs=EmptyString] attribute DOMString transitionDelay;

[SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexDirection;
};
8 changes: 8 additions & 0 deletions components/style/properties.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4746,6 +4746,14 @@ pub mod longhands {
pub use properties::longhands::transition_duration::{get_initial_single_value};
pub use properties::longhands::transition_duration::{get_initial_value, parse, parse_one};
</%self:longhand>

// CSS Flexible Box Layout Module Level 1
// http://www.w3.org/TR/css3-flexbox/

${new_style_struct("Flex", is_inherited=False)}

// Flex container properties
${single_keyword("flex-direction", "row row-reverse column column-reverse", experimental=True)}
}


Expand Down

0 comments on commit 45b7ee9

Please sign in to comment.