W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

Re: [csswg-drafts] [css-grid] How to serialize the strings in grid-template-areas? (#3261)

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Dec 2018 09:33:03 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-446901699-1544693581-sysbot+gh@w3.org>
> I'm not sure that arguing for consistency with repeat() makes sense here. The rules for unwinding repeat() notations are for getComputedStyle, which returns used values. This question is about specified values.

Yeah I was somehow mixing both things.

The problem is that in Chromium/WebKit that for `grid-template-rows: repeat(4, 20px)` we return as specified value `20px 20px 20px 20px` ([bug #716114](https://bugs.chromium.org/p/chromium/issues/detail?id=716114)) and also as computed value (I'm sorry but I haven't investigated this well enough to know how complex/easy it would be to fix it).
However Firefox only does it for the computed value, and returns `repeat(4, 20px)` as specified value.

So one question could be if we should we change `grid-template-columns|rows` to be consistent to `grid-template-areas` regarding specified values being the same than computed values?

-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3261#issuecomment-446901699 using your GitHub account
Received on Thursday, 13 December 2018 09:33:04 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC