Auto merge of #12330 - stshine:flexitem, r=pcwalton

Implement flexible box layout for row container

<!-- Please describe your changes on the following line: -->

This pull requests implements basic flexible box layout for row container.
It  has implemented most basic flexbox features, including grow, shrink, multi-line, *reverse properties, and alignment under `justify-content`, `align-items`, `align-self`, `align-content`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X]  There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12330)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-03 09:24:31 -05:00 committed by GitHub
commit 15947f8f73
200 changed files with 623 additions and 700 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[css-box-justify-content.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[flex-basis-001.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-002.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-003.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-004.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-005.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-006.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-basis-008.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flex-container-margin.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-direction-modify.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[flexbox-abspos-child-001a.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-anonymous-items-001.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-basic-block-horiz-001.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flexbox-flex-wrap-horiz-001.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-flex-wrap-horiz-002.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flexbox-items-as-stacking-contexts-002.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-items-as-stacking-contexts-003.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-justify-content-horiz-001a.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-justify-content-horiz-001b.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-justify-content-horiz-003.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-001-reverse.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-001.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-002a.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-002b.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-003-reverse.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-mbp-horiz-003.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-whitespace-handling-001b.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[flexbox-writing-mode-007.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_align-content-stretch-2.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_align-items-flexend-2.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_align-items-flexstart-2.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,4 @@
[flexbox_computedstyle_min-width-auto.htm]
type: testharness
[flexbox | computed style | min-width: auto]
expected: FAIL
expected: TIMEOUT

View file

@ -1,3 +1,4 @@
[flexbox_direction-row-reverse.htm]
type: reftest
expected: FAIL
expected:
if os == "mac": FAIL

View file

@ -1,3 +0,0 @@
[flexbox_flex-0-0-1-unitless-basis.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_flex-0-0-N-unitless-basis.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_flex-0-1-1-unitless-basis.htm]
type: reftest
expected: FAIL

View file

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

View file

@ -1,3 +0,0 @@
[flexbox_flex-0-1-N-unitless-basis.htm]
type: reftest
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

Some files were not shown because too many files have changed in this diff Show more