Re: [csswg-drafts] [css-conditional] testing support of properties and values with partial implementations (#3559)

Given, gap properties already exist for grid i.e. `grid-gap`, `grid-column-gap`, `grid-row-gap`, aliases for gap properties could also be added for Flexbox. This would enable detection for gap support specifically in Flexbox using the existing Feature Query syntax. For example:

```
@supports (flex-gap: 10px) {
  div {
    display: flex;
    gap: 10px;
  }
}

@supports not (flex-gap: 10px) {
  div {
    display: flex;
    margin: 10px;
  }
}
```

I'm not sure however, how scaleable this approach would be regarding other properties.

It certainly seams that as there is greater cross-pollination between specifications, this kind of issue is going to become more of a problem and a sustainable solution would be welcome.

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

Received on Friday, 15 February 2019 17:13:44 UTC