Skip to content

Fully implement the "align descendants" rule for div. - #7825

Merged
bors-servo merged 2 commits into
servo:masterfrom
eefriedman:div-align
Oct 8, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
eefriedman:div-align

Conversation

@eefriedman

Copy link
Copy Markdown
Contributor

This adds -servo-left and -servo-right to complement -servo-center.

This intentionally doesn't try to address issue #7301. Commit added to address #7301.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 2, 2015
@Ms2ger

Ms2ger commented Oct 2, 2015

Copy link
Copy Markdown
Contributor

This test should go somewhere under tests/wpt/web-platform-tests/html/rendering/.

@eefriedman

Copy link
Copy Markdown
Contributor Author

tests/wpt/web-platform-tests/html/rendering/ looks like it's part of an upstream repository; do you want me to upstream this test?

I'm guess the test should be named something like web-platform-tests/html/rendering/non-replaced-elements/flow-content-0/div-align.html?

Does it make sense to upstream the test as-is, without a test for #7301?

@jdm

jdm commented Oct 2, 2015

Copy link
Copy Markdown
Member

Upstreaming happens automatically, so it's fine to make changes there.

This adds -servo-left and -servo-right to complement -servo-center.

This intentionally doesn't try to address issue servo#7301.
Flows never care about their own text-align, only the text-align of
their parent; change the text-align flags to account for that.  Make the
"align descendants" rule use the flags instead of the current node's style.

Fixes servo#7301.
@eefriedman

Copy link
Copy Markdown
Contributor Author

Moved tests. Added fix for #7301, since it turned out to be easier than I thought it would be.

@mbrubeck mbrubeck self-assigned this Oct 2, 2015
@mbrubeck

mbrubeck commented Oct 8, 2015

Copy link
Copy Markdown
Contributor

Reviewed 8 of 8 files at r1, 2 of 2 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@mbrubeck

mbrubeck commented Oct 8, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit a31461b has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 8, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a31461b with merge ab42ca4...

bors-servo pushed a commit that referenced this pull request Oct 8, 2015
Fully implement the "align descendants" rule for div.

This adds -servo-left and -servo-right to complement -servo-center.

~~This intentionally doesn't try to address issue #7301.~~  Commit added to address #7301.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7825)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 8, 2015
@jdm

jdm commented Oct 8, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, linux-rel, mac-dev-ref-unit are reusable. Rebuilding only mac-rel-css, mac-rel-wpt...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit a31461b into servo:master Oct 8, 2015
@SimonSapin SimonSapin removed the S-tests-failed The changes caused existing tests to fail. label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants