Skip to content

The divisor must be a number. false-positive #516

Description

@boris-petrov
  --aspect: calc(var(--bs-aspect-ratio) / 100);
  --max-height: 70vh;
  --max-width: min(100%, calc(var(--max-height) / var(--aspect)));

This code (the third line) leads to: CSS: “--max-width”: The divisor must be a number.

Note that this comes from the latest round of changes in css-validator (from the last few days). Before that there was again an error on the same line albeit a different one: CSS: “--max-width”: Invalid type: “100%, calc(var(--max-height) / var(--aspect))”..

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