w3c / w3c/css-validator

aspect-ratio not working

Open
#366 3 comments 0 reactions 1 assignee View on GitHub

@ylafon is already working on this.

Since Apr 9, 2024.

bug
Dominant language
Java
Stars
250
Forks
123
PR merge metrics
No merged PRs in 30d

Description

I'm not 100% sure that this syntax is valid, but some tool I'm using is converting "aspect-ratio: 3000 / 3000;" to "aspect-ratio:3e3/3e3".

This results in the errors:

  • "aspect-ratio": Unknown dimension.
  • "aspect-ratio": "/" is not a "aspect-ratio" value.

According to https://developer.mozilla.org/en-US/docs/Web/CSS/number, scientific notation should be valid for CSS numbers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.