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
Account for percentages in fixed table layout #13192
Conversation
Could you add a reftest for this? Thanks! |
@pcwalton Done. |
@bors-servo: r=pcwalton,emilio Review status: 0 of 4 files reviewed at latest revision, 1 unresolved discussion. components/layout/table.rs, line 376 [r1] (raw file):
Could you convert this branch in an Comments from Reviewable |
📌 Commit ff5aa87 has been approved by |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit ff5aa87 has been approved by |
Account for percentages in fixed table layout Don't just use the minimum length all the time. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13166 (github issue number if applicable). - [X] There are tests for these changes <!-- 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/13192) <!-- Reviewable:end -->
💔 Test failed - mac-rel-wpt |
|
Is there a spec for this? |
I found the applicable spec. |
I don't think this is actually correct, either (though it does fix Github and my testcase is correct). The actual rules for assigning column widths in fixed mode are this:
In other words, we need to count the number of columns with percentage widths, and follow step 2 if they're not zero. |
There, thanks for asking for a spec reference. |
@bors-servo try |
Account for percentages in fixed table layout Don't just use the minimum length all the time. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13166 (github issue number if applicable). - [X] There are tests for these changes <!-- 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/13192) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
|
@bors-servo: r+ |
📌 Commit 102ea5a has been approved by |
Account for percentages in fixed table layout Don't just use the minimum length all the time. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13166 (github issue number if applicable). - [X] There are tests for these changes <!-- 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/13192) <!-- Reviewable:end -->
💔 Test failed - mac-rel-wpt |
|
⚡ Previous build results for arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, windows-dev are reusable. Rebuilding only mac-rel-wpt... |
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
Don't just use the minimum length all the time.
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is