Re: [csswg-drafts] [css-grid] grid-template-width and grid-template-height (#9182)

> I can see this problem with ::contents too

Sure, but it's not a problem, because it's an entirely independent (pseudo-)element, so everything is well defined it allows controlling the behavior separately. The problem with `grid-template-width` being different than the sum of the columns is that then it's not clear if e.g. `justify-content: center` will align the `grid-template-width` within the element, or the columns within the `grid-template-width`.

> I think a new single property with a good definition and narrow scope is better than creating a new element with limitless combinations.

On the opposite, I think that a property that would probably require duplicating lots of the existing ones (like having a variant of `justify-content` that aligns the `grid-template-width`, and another variant that aligns the columns) isn't actually simpler after all.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9182#issuecomment-2017735920 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 25 March 2024 11:01:17 UTC