Skip to content

Fix table vertical alignment (middle, bottom) - #12593

Merged
bors-servo merged 1 commit into
servo:masterfrom
adamncasey:table-row-cell-height
Jul 27, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
adamncasey:table-row-cell-height

Conversation

@adamncasey

@adamncasey adamncasey commented Jul 25, 2016 •

Copy link
Copy Markdown
Contributor

Fixes table cell vertical alignment (middle, bottom, not yet baseline) when the row contains cells of differing heights.

Moved the work done earlier by @notriddle into a separate public function on TableCellFlow. This function is then called by TableRowFlow once the cell's block size has been calculator.


  • There are tests for these changes

This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 25, 2016
@adamncasey

adamncasey commented Jul 25, 2016 •

Copy link
Copy Markdown
Contributor Author

Have run ./mach test-wpt tests/wpt/mozilla/tests/mozilla/ locally. Travis might throw up some other edge cases I haven't thought about

@pcwalton

Copy link
Copy Markdown
Contributor

@bors-servo: r+

This looks like the right fix to me. Thanks!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 585656d has been approved by pcwalton

@highfive highfive assigned pcwalton and unassigned Manishearth Jul 25, 2016
@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 Jul 25, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 585656d with merge b75a5bf...

bors-servo pushed a commit that referenced this pull request Jul 26, 2016
Fix table vertical alignment (middle, bottom)

<!-- Please describe your changes on the following line: -->
Fixes table cell vertical alignment (middle, bottom, not yet baseline) when the row contains cells of differing heights.

Moved the work done earlier by @notriddle into a separate public function on TableCellFlow. This function is then called by TableRowFlow once the cell's block size has been calculator.

---

<!-- 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] These changes fix #12531 (github issue number if applicable).

<!-- Either: -->
- [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. -->

<!-- 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/12593)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@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 Jul 26, 2016
@highfive

Copy link
Copy Markdown
  ▶ PASS [expected FAIL] /css21_dev/html4/margin-collapse-clear-002.htm

  ▶ PASS [expected FAIL] /css21_dev/html4/margin-collapse-clear-003.htm

  ▶ PASS [expected FAIL] /css21_dev/html4/margin-collapse-clear-009.htm

  ▶ PASS [expected FAIL] /css21_dev/html4/margin-collapse-clear-008.htm

@adamncasey

Copy link
Copy Markdown
Contributor Author

reftest rendering

The references for these tests use tables, and the left column's vertical alignment does not take into account the border height of the right column (which makes the columns uneven heights). This patch fixes this.

…differing height cells

Includes reftest for this behaviour
Patch fixes margin-collapse-clear-002,3,8,9
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jul 26, 2016
@jdm

jdm commented Jul 26, 2016

Copy link
Copy Markdown
Member

@bors-servo: r=pcwalton

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b1debc4 has been approved by pcwalton

@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 Jul 26, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b1debc4 with merge 4f4ba4a...

bors-servo pushed a commit that referenced this pull request Jul 26, 2016
Fix table vertical alignment (middle, bottom)

<!-- Please describe your changes on the following line: -->
Fixes table cell vertical alignment (middle, bottom, not yet baseline) when the row contains cells of differing heights.

Moved the work done earlier by @notriddle into a separate public function on TableCellFlow. This function is then called by TableRowFlow once the cell's block size has been calculator.

---

<!-- 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] These changes fix #12531 (github issue number if applicable).

<!-- Either: -->
- [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. -->

<!-- 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/12593)
<!-- Reviewable:end -->
@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo retry clean force

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b1debc4 with merge 148c8e3...

bors-servo pushed a commit that referenced this pull request Jul 26, 2016
Fix table vertical alignment (middle, bottom)

<!-- Please describe your changes on the following line: -->
Fixes table cell vertical alignment (middle, bottom, not yet baseline) when the row contains cells of differing heights.

Moved the work done earlier by @notriddle into a separate public function on TableCellFlow. This function is then called by TableRowFlow once the cell's block size has been calculator.

---

<!-- 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] These changes fix #12531 (github issue number if applicable).

<!-- Either: -->
- [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. -->

<!-- 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/12593)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@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 Jul 26, 2016
@adamncasey

Copy link
Copy Markdown
Contributor Author

I think the stdio output for the failed build is:

looking for rustc at /Users/servo/.servo/rust/2016-07-25/rustc-nightly-x86_64-apple-darwin/rustc/bin/rustc
Downloading Rust compiler...
Extracting Rust compiler...
Rust compiler ready.
Downloading Host rust library for target x86_64-apple-darwin...
Extracting Rust stdlib for target x86_64-apple-darwin...
Rust x86_64-apple-darwin libs ready.
Build completed in 0:00:09

I'm not sure what's going on

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo retry

  • mac1 is still being provisioned

bors-servo pushed a commit that referenced this pull request Jul 27, 2016
Fix table vertical alignment (middle, bottom)

<!-- Please describe your changes on the following line: -->
Fixes table cell vertical alignment (middle, bottom, not yet baseline) when the row contains cells of differing heights.

Moved the work done earlier by @notriddle into a separate public function on TableCellFlow. This function is then called by TableRowFlow once the cell's block size has been calculator.

---

<!-- 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] These changes fix #12531 (github issue number if applicable).

<!-- Either: -->
- [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. -->

<!-- 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/12593)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b1debc4 with merge b374582...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jul 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo
bors-servo merged commit b1debc4 into servo:master Jul 27, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 27, 2016
@adamncasey
adamncasey deleted the table-row-cell-height branch July 27, 2016 12:07
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.

Table cell vertical alignment impacted by line-height

7 participants