Skip to content

Responsive line-height with default parameters does not work #30

@pmendelski

Description

@pmendelski

Hi. I'm using postcss-responsive-type@1.0.0.
I just wanted to use responsive line-height.

html {
  line-height: responsive;
}

Unfortunately it generates an error:

postcss-responsive-type: $FILE_PATH/default.css:5:1: this combination of units is not supported

and invalid css:

html {
  line-height: calc(1.2em + 0.6000000000000001 * ((100vw - undefined) / NaN));
}

@media screen and (min-width: 1280px) {
  html {
    line-height: 1.8em;
  }
}

@media screen and (max-width: 420px) {
  html {
    line-height: 1.2em;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions