WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
204588
[css-grid] Exclude implicit tracks from grid-template-rows/columns resolved values
https://bugs.webkit.org/show_bug.cgi?id=204588
Summary
[css-grid] Exclude implicit tracks from grid-template-rows/columns resolved v...
Oriol Brufau
Reported
2019-11-25 11:13:04 PST
Currently, the resolved values of grid-template-rows/columns include both implicit and explicit tracks. However, specified values can only set explicit tracks. Therefore, resolved values don't round-trip: ```js gridContainer.style.gridAutoRows = "1px"; gridContainer.style.gridTemplateRows = "2px"; var cs = getComputedStyle(gridContainer); cs.gridTemplateRows; // "2px" gridItem.style.gridRow = "auto / 1"; gridContainer.style.gridTemplateRows = cs.gridTemplateRows; // "1px 2px" gridContainer.style.gridTemplateRows = cs.gridTemplateRows; // "1px 1px 2px" gridContainer.style.gridTemplateRows = cs.gridTemplateRows; // "1px 1px 1px 2px" gridContainer.style.gridTemplateRows = cs.gridTemplateRows; // "1px 1px 1px 1px 2px" ```
https://github.com/w3c/csswg-drafts/issues/4475#issuecomment-553525609
resolved to try to exclude implicit tracks and only include explicit ones.
Attachments
Patch
(152.10 KB, patch)
2020-01-14 09:03 PST
,
Oriol Brufau
no flags
Details
Formatted Diff
Diff
Patch
(152.11 KB, patch)
2020-01-15 02:31 PST
,
Oriol Brufau
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Oriol Brufau
Comment 1
2020-01-14 09:03:24 PST
Created
attachment 387660
[details]
Patch
Manuel Rego Casasnovas
Comment 2
2020-01-15 00:27:02 PST
Comment on
attachment 387660
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=387660&action=review
r=me. Thanks for taking care of this.
> Source/WebCore/rendering/RenderGrid.cpp:872 > + // Usually we have `explicitEnd <= numPositions - 1`, but the latter may be > + // smaller when the maximum number of tracks is reached.
Super nit: Not need to wrap this comment line, it's not that long for WebKit standards.
Oriol Brufau
Comment 3
2020-01-15 02:31:16 PST
Created
attachment 387768
[details]
Patch
Oriol Brufau
Comment 4
2020-01-15 02:32:31 PST
Comment on
attachment 387768
[details]
Patch Fixed nit
WebKit Commit Bot
Comment 5
2020-01-15 03:29:30 PST
The commit-queue encountered the following flaky tests while processing
attachment 387768
[details]
: inspector/worker/debugger-pause.html
bug 206285
(authors:
drousso@apple.com
and
joepeck@webkit.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6
2020-01-15 03:30:03 PST
Comment on
attachment 387768
[details]
Patch Clearing flags on attachment: 387768 Committed
r254561
: <
https://trac.webkit.org/changeset/254561
>
WebKit Commit Bot
Comment 7
2020-01-15 03:30:05 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2020-01-15 03:31:18 PST
<
rdar://problem/58601064
>
Lou Acresti
Comment 9
2020-04-15 10:33:08 PDT
Chromium has reverted this change since it was breaking some live sites, mainly devtool-like website building apps like webflow.com and educational tools like gridcritters.com. More info: -
https://bugs.chromium.org/p/chromium/issues/detail?id=1069866
-
https://github.com/w3c/csswg-drafts/issues/4475#issuecomment-613032475
Sounds like the Chromium team are postponing the feature until there's an API for getting measurements of implicit tracks. Disclaimer: I work at Webflow on the team responsible for the CSS Grid feature that broke due to the change in `getComputedStyle`'s API.
Manuel Rego Casasnovas
Comment 10
2020-04-16 03:13:20 PDT
(In reply to Lou Acresti from
comment #9
)
> Chromium has reverted this change since it was breaking some live sites, > mainly devtool-like website building apps like webflow.com and educational > tools like gridcritters.com. > > More info: > > -
https://bugs.chromium.org/p/chromium/issues/detail?id=1069866
> -
https://github.com/w3c/csswg-drafts/issues/4475#issuecomment-613032475
> > Sounds like the Chromium team are postponing the feature until there's an > API for getting measurements of implicit tracks. > > Disclaimer: I work at Webflow on the team responsible for the CSS Grid > feature that broke due to the change in `getComputedStyle`'s API.
Yes we should revert here too, please Oriol take care of reverting the patch. It seems "we were lucky" and this didn't make it to Safari 13.1, so just reverting in trunk would be fine I guess. Adding Simon on CC just in case we need to do anything else.
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