WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
197849
[css-grid] Grid not updated when changing auto repeat type
https://bugs.webkit.org/show_bug.cgi?id=197849
Summary
[css-grid] Grid not updated when changing auto repeat type
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
Details
Formatted Diff
Diff
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
Details
Patch
(21.21 KB, patch)
2019-05-14 08:53 PDT
,
Oriol Brufau
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Oriol Brufau
Comment 1
2019-05-13 12:56:23 PDT
Created
attachment 369766
[details]
Patch
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
Created
attachment 369853
[details]
Patch
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
<
rdar://problem/50776829
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug