Skip to content

[css-conditional] More DRY with different types of conditionals that have same contents? #2437

@jonjohnjohnson

Description

@jonjohnjohnson

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...

@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, but I'd love to cut out a lot of the duplicate css from this type of situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions