Re: [csswg-drafts] [css-grid] Default Grid Columns, Rows, and Areas (#4002)

Would [`:where`](https://drafts.csswg.org/selectors/#zero-matches) fix your specificity problem?

```css
:where(main > *) { /* 0 specificity */
  grid-column: normal;
}
```

About not being able to style text nodes/runs, #2208 would be a more general solution.

Though your proposal would make it simpler when the grid items are a mix of ::before, ::after, ::text, children elements, descendant elements (via `display: contents`), etc.

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

Received on Wednesday, 5 June 2019 13:55:04 UTC