[csswg-drafts] [css-conditional] More DRY with different types of conditionals have same contents?

jonjohnjohnson has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-conditional] More DRY with different types of conditionals have same contents? ==
https://drafts.csswg.org/css-conditional-3/

I don't have any proposal, but I often have to duplicate huge blocks of css when progressively enhancing my applications...

```css
@supports (position:sticky) {
[a bunch of styles]
}

@media (min-height: 30em) {
[same bunch of styles]
}
```

Not saying it's a straight forward thing to combine different types of conditionals with a `,` or to possibly add @support stuffs into the custom media queries of [media queries level 5](https://drafts.csswg.org/mediaqueries-5/), but I'd love to cut out a lot of the duplicate css from this type of situation.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2437 using your GitHub account

Received on Wednesday, 14 March 2018 18:58:09 UTC