mdn / mdn/browser-compat-data

css.types.ratio - `<ratio>` with `<number> / <number>` or `<number>` seems to be supported since Firefox 78

Open Beginner friendly
#18,198 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:multiple data:css needs collector test
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

https://github.com/mdn/browser-compat-data/blob/2e205a9b65d23a216ca246e9d619974098465910/css/types/ratio.json#L53-L62

see : https://mrhenry.github.io/web-tests/#de023e11-f61a-4635-a74c-e4a152251bdf

From Firefox 78 all these variants of <ratio> seem to pass :

@media screen and (min-aspect-ratio: 1/100) {
	#a {
		color: #0f0;
	}
}

@media screen and (min-aspect-ratio: 0.01/1) {
	#b {
		color: #0f0;
	}
}

@media screen and (min-aspect-ratio: 0.01) {
	#c {
		color: #0f0;
	}
}

#d {
	color: #0f0;
}

@media screen and (min-aspect-ratio: 0/0) {
	#d {
		color: red;
	}
}

@media screen and (max-aspect-ratio: 0/0) {
	#e {
		color: #0f0;
	}
}

@media screen and (min-aspect-ratio: calc(1)/calc(10*10)) {
	#f {
		color: #0f0;
	}
}

@media screen and (min-aspect-ratio: calc(1/100)) {
	#g {
		color: #0f0;
	}
}

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.

Research direction

Start with css/types/ratio.json lines 53-62 and compare its Firefox data with the linked web-tests result. Verify the reported forms from Firefox 78, then update the compatibility entries so they match the confirmed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.