Auto merge of #11417 - stshine:flex-longhand-properties, r=mbrubeck

Support remaining longhand flexbox style properties for servo

- [x] `./mach build -d` does not report any errors
- [X] `./mach test-tidy --faster` does not report any errors
- [X] There are tests for these changes

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.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11417)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-31 21:44:06 -05:00
commit f0b3d1e77d
44 changed files with 82 additions and 122 deletions

View file

@ -20,4 +20,4 @@ body {
"stretch";
body.textContent = body.className = passed ? "PASS" : "FAIL";
</script>
</body></html>
</body></html>

View file

@ -1,5 +1,12 @@
prefs: ["layout.flex.enabled:true",
"layout.flex-direction.enabled:true",
"layout.flex-wrap.enabled:true",
"layout.flex-grow.enabled:true",
"layout.flex-shrink.enabled:true",
"layout.justify-content.enabled:true",
"layout.align-items.enabled:true",
"layout.align-self.enabled:true",
"layout.align-content.enabled:true",
"layout.columns.enabled:true",
"layout.column-width.enabled:true",
"layout.column-count.enabled:true",

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-content-center.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-content-flex-end.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-content-flex-start.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-content-space-around.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-content-space-between.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-baseline.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-center.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-flex-end.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-flex-start.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-items-stretch.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-baseline.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-center.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-flex-end.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-flex-start.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_align-self-stretch.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-flow-nowrap.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-flow-row-nowrap.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-flow-row.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-grow-0.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-grow-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-grow-number.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shorthand-0-auto.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shorthand-initial.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shorthand-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shrink-0.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shrink-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-shrink-number.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-wrap-invalid.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-wrap-nowrap.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-wrap-wrap-reverse.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_flex-wrap-wrap.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_justify-content-center.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_justify-content-flex-end.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_justify-content-flex-start.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_justify-content-space-around.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox_computedstyle_justify-content-space-between.htm]
type: reftest
expected: FAIL