Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccount for percentages in fixed table layout #13192
Conversation
highfive
commented
Sep 7, 2016
|
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 |
|
|
|
|
|
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 -->
|
|
highfive
commented
Sep 7, 2016
|
|
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 -->
|
|
highfive
commented
Sep 8, 2016
|
|
@bors-servo: r+ |
|
|
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 -->
|
|
highfive
commented
Sep 9, 2016
|
|
@bors-servo retry |
|
|
|
|
notriddle commentedSep 7, 2016
•
edited by larsbergstrom
Don't just use the minimum length all the time.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is