Skip to content

Nested media queries instead of the 0.02px workaround? #49

@simevidas

Description

@simevidas

@miragecraft posted on Twitter the following discovery:

@media (width < 640px) {
  /* styles */
}

/* is the same as */

@media (max-width: 640px) {
  @media not (width: 640px) {
    /* styles */
  }
}

This seems like a better output than the (max-width: 639.98px) workaround that this plugin currently uses. Has this solution ever been considered?

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