Border-collapsed table's border width recalculation is stateful
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: dshin, Assigned: dshin)
References
Details
Attachments
(2 files)
STR:
- Open the testcase
- Note table shape
- Hover over "one"
- Note thick border between "one" and "two"
- Hover elsewhere
- Note table shape
Expected: 2) and 6) are identical
Actual: 6) has more space between "one" and "two"
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Probably happened since bug 1464928. The testcase is derived from a test added from that bug.
The path responsible was added from bug 41262 - stored border widths are stateful, storing the max of the result of GetBorderWidth
and the incoming border (Which is 0 in this case). GetBorderWidth returns a halved value, hence why the final table's gap between cells is half of 20px.
The original test case doesn't suffer from this because it works with 1px borders, of which half is rounded down to 0.
Assignee | ||
Comment 2•2 months ago
|
||
Updated•2 months ago
|
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84b76f80bf96 On calculating border-collapsed table's borders, reset max-seen width. r=TYLin
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46138 for changes under testing/web-platform/tests
Comment 5•1 month ago
|
||
Backed out for causing wr failures in /css/css-tables/*
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | /css/css-tables/table_grid_size_col_colspan.html | Testing http://web-platform.test:8000/css/css-tables/table_grid_size_col_colspan.html == http://web-platform.test:8000/css/css-tables/table_grid_size_col_colspan-ref.html
- Failure Log 2
- Failure line 2: TEST-UNEXPECTED-FAIL | /css/css-tables/tentative/paint/collapsed-border-large-cell.html | Testing http://web-platform.test:8000/css/css-tables/tentative/paint/collapsed-border-large-cell.html == http://web-platform.test:8000/css/css-tables/tentative/paint/collapsed-border-large-cell-ref.html
Upstream PR was closed without merging
Assignee | ||
Comment 7•1 month ago
|
||
Changes made, try run looks good (Failure cases don't even use table, so it seems unrelated)
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39658819ee60 On calculating border-collapsed table's borders, reset max-seen width. r=TYLin
Comment 9•1 month ago
|
||
(In reply to David Shin[:dshin] from comment #7)
Changes made, try run looks good (Failure cases don't even use table, so it seems unrelated)
Yeah, the R5 run there looks like it's a version of bug 1895092, so it's likely an infra issue and not something you need to worry about. (It matches the "bad" pattern from bug 1895092 comment 16.)
Comment 10•1 month ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Updated•1 month ago
|
Comment 12•1 month ago
|
||
Issue is reproducible on a 2024-05-05 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 128.0a1 and Firefox 127.0b2 on Windows 10, macOS 12, Ubuntu 22.
Description
•