diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2016-05-06 08:10:43 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2016-05-25 21:40:34 +0800 |
commit | a7733b38d40ff074a0d087597be4fdf3f216c517 (patch) | |
tree | 5fd3cb19096ee5ec617a573d4d170268a3632e08 /components/script/dom | |
parent | 52f17a88141c8a55de3816e1a7a169cced518b36 (diff) | |
download | servo-a7733b38d40ff074a0d087597be4fdf3f216c517.tar.gz servo-a7733b38d40ff074a0d087597be4fdf3f216c517.zip |
Add remaining longhand flexbox style properties
Add the remaining longhand CSS properties of flexbox for servo,
including `flex-wrap`, `flex-grow`, `flex-shrink`, `justify-content`,
`align-items`, `align-self` and `align-content`.
tests for the remaining longhand properties are also enabled. Test for
default value of `align-self` is modified because the new default value
for this property is "auto" is current flexbox CR.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/webidls/CSSStyleDeclaration.webidl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl index 567167024ee..1d1d5223183 100644 --- a/components/script/dom/webidls/CSSStyleDeclaration.webidl +++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl @@ -310,7 +310,21 @@ partial interface CSSStyleDeclaration { [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexDirection; [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flex-direction; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexWrap; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flex-wrap; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString justifyContent; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString justify-content; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString alignItems; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString align-items; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString alignContent; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString align-content; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString order; [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexBasis; [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flex-basis; - [SetterThrows, TreatNullAs=EmptyString] attribute DOMString order; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexGrow; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flex-grow; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flexShrink; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString flex-shrink; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString alignSelf; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString align-self; }; |