Skip to content

print if-statements the Kevin Powell way #219

Description

@bartveneman

CSS @if should be printed as follows:

test {
  color: if(
    media(print): black;
    supports(display: grid): green;
    else: red;
  );
}

See https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/if for docs and potential cases for unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions