Bug 197849

Summary: [css-grid] Grid not updated when changing auto repeat type
Product: WebKit Reporter: Oriol Brufau <obrufau>
Component: CSSAssignee: Oriol Brufau <obrufau>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, jfernandez, rego, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=961407
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews213 for win-future
none
Patch none

Oriol Brufau
Reported 2019-05-13 12:53:24 PDT
What steps will reproduce the problem? (1) Run this testcase: ```html <style> #grid { display: grid; width: 200px; background: linear-gradient(red, red) no-repeat 0 / 100px; } #item { grid-column-start: 2; height: 100px; background: green; } </style> <div id="grid"> <div id="item"></div> </div> <script> var grid = document.getElementById("grid"); grid.style.gridTemplateColumns = "repeat(auto-fill, 100px)"; grid.style.gridTemplateColumns = "repeat(auto-fit, 100px)"; </script> ``` What is the expected result? There should be a 100x100 green box with no red What happens instead? The green box appears more to the right, so you can see red. This is because when WebKit compares `repeat(auto-fill, 100px)` and `repeat(auto-fit, 100px)`, it only checks whether the list of track sizes are equal, but it doesn't compare `auto-fill` and `auto-fit`. The former produces resolves to `100px 100px` and the latter to `0px 100px`, but Blink thinks they are equal so it doesn't update the grid. This has been fixed in Blink: https://crbug.com/961407
Attachments
Patch (21.19 KB, patch)
2019-05-13 12:56 PDT, Oriol Brufau
no flags
Archive of layout-test-results from ews213 for win-future (13.82 MB, application/zip)
2019-05-14 07:30 PDT, EWS Watchlist
no flags
Patch (21.21 KB, patch)
2019-05-14 08:53 PDT, Oriol Brufau
no flags
Oriol Brufau
Comment 1 2019-05-13 12:56:23 PDT
EWS Watchlist
Comment 2 2019-05-14 07:30:57 PDT
Comment on attachment 369766 [details] Patch Attachment 369766 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/12187483 New failing tests: imported/blink/compositing/layer-creation/iframe-clip-removed.html
EWS Watchlist
Comment 3 2019-05-14 07:30:59 PDT
Created attachment 369842 [details] Archive of layout-test-results from ews213 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews213 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Oriol Brufau
Comment 4 2019-05-14 08:53:33 PDT
Oriol Brufau
Comment 5 2019-05-14 08:57:24 PDT
Comment on attachment 369842 [details] Archive of layout-test-results from ews213 for win-future The EWS failure seems unrelated to my patch. Anyways, I have rebased it due to a conflict with bug 197854, so let's check again.
Oriol Brufau
Comment 6 2019-05-14 11:54:53 PDT
Comment on attachment 369853 [details] Patch Win EWS is green now
WebKit Commit Bot
Comment 7 2019-05-14 12:06:30 PDT
Comment on attachment 369853 [details] Patch Clearing flags on attachment: 369853 Committed r245295: <https://trac.webkit.org/changeset/245295>
WebKit Commit Bot
Comment 8 2019-05-14 12:06:32 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2019-05-14 12:07:57 PDT
Note You need to log in before you can comment on or make changes to this bug.