Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rowspan handling for rows that span to the end of the rowgroup #14798

Merged
merged 1 commit into from Dec 31, 2016

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented Dec 30, 2016

This fixes rowspan="0" to behave as described in the HTML spec:

For this attribute, the value zero means that the cell is to span all the remaining rows in the row group.

It also prevents any rowspan from overlapping into another rowgroup, as required by HTML § 4.9.12:

Row groups cannot overlap each other. Similarly, column groups cannot overlap each other. A cell cannot cover slots that are from two or more row groups.

r? @notriddle or @pcwalton


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<link rel="match" href="table_rowspan_simple_ref.html">

This comment has been minimized.

@notriddle

notriddle Dec 31, 2016

Contributor

Ugh! Sorry for missing that the first time around.

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<link rel="match" href="table_rowspan_rowgroup_ref.html">

This comment has been minimized.

@notriddle

notriddle Dec 31, 2016

Contributor

Could a <link rel="spec" href="https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements"> be a good idea here?

This comment has been minimized.

@emilio

emilio Dec 31, 2016

Member

I thought spec links used to be <link rel=help>, but I don't think it matters much anyway :)

@notriddle
Copy link
Contributor

notriddle commented Dec 31, 2016

Other than that, LGTM.

@mbrubeck mbrubeck force-pushed the mbrubeck:rowgroup branch from fd03c35 to 4180808 Dec 31, 2016
@mbrubeck
Copy link
Contributor Author

mbrubeck commented Dec 31, 2016

@bors-servo r=notriddle

  • Added <link rel="spec">
@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

📌 Commit 4180808 has been approved by notriddle

@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

Testing commit 4180808 with merge 5145203...

bors-servo added a commit that referenced this pull request Dec 31, 2016
Fix rowspan handling for rows that span to the end of the rowgroup

This fixes `rowspan="0"` to behave as described in [the HTML spec](https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements):

> For this attribute, the value zero means that the cell is to span all the remaining rows in the row group.

It also prevents any `rowspan` from overlapping into another rowgroup, as required by [HTML § 4.9.12](https://html.spec.whatwg.org/multipage/tables.html#table-processing-model):

> Row groups cannot overlap each other. Similarly, column groups cannot overlap each other. A cell cannot cover slots that are from two or more row groups.

r? @notriddle or @pcwalton

---

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/14798)
<!-- Reviewable:end -->
@mbrubeck mbrubeck force-pushed the mbrubeck:rowgroup branch from 4180808 to 37d200e Dec 31, 2016
@mbrubeck
Copy link
Contributor Author

mbrubeck commented Dec 31, 2016

@bors-servo r=notriddle

  • Fixed a tidy error
@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

📌 Commit 37d200e has been approved by notriddle

@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

Testing commit 37d200e with merge 2358636...

bors-servo added a commit that referenced this pull request Dec 31, 2016
Fix rowspan handling for rows that span to the end of the rowgroup

This fixes `rowspan="0"` to behave as described in [the HTML spec](https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements):

> For this attribute, the value zero means that the cell is to span all the remaining rows in the row group.

It also prevents any `rowspan` from overlapping into another rowgroup, as required by [HTML § 4.9.12](https://html.spec.whatwg.org/multipage/tables.html#table-processing-model):

> Row groups cannot overlap each other. Similarly, column groups cannot overlap each other. A cell cannot cover slots that are from two or more row groups.

r? @notriddle or @pcwalton

---

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/14798)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

💔 Test failed - linux-rel-css

@mbrubeck
Copy link
Contributor Author

mbrubeck commented Dec 31, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2016

Testing commit 37d200e with merge c2ac495...

bors-servo added a commit that referenced this pull request Dec 31, 2016
Fix rowspan handling for rows that span to the end of the rowgroup

This fixes `rowspan="0"` to behave as described in [the HTML spec](https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements):

> For this attribute, the value zero means that the cell is to span all the remaining rows in the row group.

It also prevents any `rowspan` from overlapping into another rowgroup, as required by [HTML § 4.9.12](https://html.spec.whatwg.org/multipage/tables.html#table-processing-model):

> Row groups cannot overlap each other. Similarly, column groups cannot overlap each other. A cell cannot cover slots that are from two or more row groups.

r? @notriddle or @pcwalton

---

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/14798)
<!-- Reviewable:end -->
@bors-servo bors-servo merged commit 37d200e into servo:master Dec 31, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@mbrubeck mbrubeck deleted the mbrubeck:rowgroup branch May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.