Bug 226981

Summary: [css-grid] Overflow should be computed with the actual logical bottom
Product: WebKit Reporter: zsun
Component: CSSAssignee: zsun
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, clopez, esprehn+autocc, ews-watchlist, glenn, jfernandez, kondapallykalyan, pdr, rego, svillar, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

zsun
Reported 2021-06-14 11:43:32 PDT
In order to compute the overflow area in the grid container we should use the result of the ClientLogicalBottom function.
Attachments
Patch (26.69 KB, patch)
2021-06-14 11:58 PDT, zsun
no flags
Patch (7.91 KB, patch)
2021-08-12 06:24 PDT, zsun
no flags
Patch (16.31 KB, patch)
2021-09-06 04:01 PDT, zsun
no flags
Patch (16.63 KB, patch)
2021-09-08 05:08 PDT, zsun
no flags
Patch (16.64 KB, patch)
2021-09-13 11:46 PDT, zsun
no flags
Patch (16.64 KB, patch)
2021-09-14 01:30 PDT, zsun
no flags
zsun
Comment 1 2021-06-14 11:58:25 PDT
EWS Watchlist
Comment 2 2021-06-14 11:59:24 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Sergio Villar Senin
Comment 3 2021-06-17 03:38:23 PDT
Comment on attachment 431349 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431349&action=review > LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-content-alignment-overflow-002-expected.txt:119 > + Looks like we're failing 7/14 subtests. Question is what was the status before the patch?
zsun
Comment 4 2021-06-18 03:43:02 PDT
(In reply to Sergio Villar Senin from comment #3) > Comment on attachment 431349 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=431349&action=review > > > LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-content-alignment-overflow-002-expected.txt:119 > > + > > Looks like we're failing 7/14 subtests. Question is what was the status > before the patch? I have just noticed that in chromium with NG enabled all tests have now passed. I need to look into this and update the patch.
Radar WebKit Bug Importer
Comment 5 2021-06-21 11:44:47 PDT
zsun
Comment 6 2021-08-12 06:24:50 PDT
Sergio Villar Senin
Comment 7 2021-08-13 02:51:39 PDT
Comment on attachment 435419 [details] Patch I am not sure the fix is correct. Furthermore the patch seems to fix some cases but regresses some others, so I am not sure we're improving here.
zsun
Comment 8 2021-08-13 03:51:46 PDT
(In reply to Sergio Villar Senin from comment #7) > Comment on attachment 435419 [details] > Patch > > I am not sure the fix is correct. Furthermore the patch seems to fix some > cases but regresses some others, so I am not sure we're improving here. The fix is not complete. Still I need to address the difference caused by paddings.
zsun
Comment 9 2021-09-06 04:01:24 PDT
Javier Fernandez
Comment 10 2021-09-06 05:00:25 PDT
Comment on attachment 437403 [details] Patch I like the idea, but perhaps we could do some refactoring between the clientLogicalBottomAfterRepositioning and the new logic you've added into the computeOverflow function. After all, it's the same logic for both inline and block axes, isn't it ? We could do both (when needed) in the same loop. What do you think ?
zsun
Comment 11 2021-09-08 05:08:39 PDT
Javier Fernandez
Comment 12 2021-09-13 07:18:25 PDT
Comment on attachment 437620 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437620&action=review r=me > Source/WebCore/rendering/RenderBlock.h:235 > + LayoutSize clientLogicalRightAndBottomAfterRepositioning(); This function can be 'const', right ?
zsun
Comment 13 2021-09-13 11:46:55 PDT
zsun
Comment 14 2021-09-14 01:30:04 PDT
EWS
Comment 15 2021-09-15 11:06:54 PDT
Committed r282463 (241711@main): <https://commits.webkit.org/241711@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438113 [details].
Note You need to log in before you can comment on or make changes to this bug.