Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing css.types.length.em feature #21488

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

queengooborg
Copy link
Collaborator

This PR is a part of a project to add missing interfaces and interface features to BCD that are from an active spec (including WICG specs) and is supported in at least one browser. This particular PR adds the missing em member of the length CSS value type. This mirrors the data from rem (which is probably accurate enough for our needs). Fixes #15293.

This PR is a part of a project to add missing interfaces and interface features to BCD that are from an active spec (including WICG specs) and is supported in at least one browser. This particular PR adds the missing `em` member of the `length` CSS value type. This mirrors the data from `rem` (which is probably accurate enough for our needs).  Fixes mdn#15293.
@queengooborg queengooborg added the data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Dec 5, 2023
@kepstin
Copy link
Contributor

kepstin commented Dec 6, 2023

The browser compatibility data included in this PR is definitely not correct. To be honest, I don't really think that tracking this unit's support is meaningful, except for people interested in history of 1990s browsers. It was part of the initial CSS 1 specification after all.

From a mix of some historical digging and personal experience, the em unit would have been available starting with Internet Explorer 3, Netscape 4.5 (although its use of a CSS to JSSS translator made it horribly buggy to use any CSS at all), and Opera 3.5.

Support for the em unit in the KHTML engine predates the fork into WebKit that produced Safari and Chrome. Support for the em unit in the Gecko engine was present from the start, predating the first stable release of the Mozilla suite and the start of the Phoenix/Firebird/Firefox project.

For the purposes of the compatibility data tracked here, all browsers should have support set to the first known browser release, except for Opera (use 3.5) and IE (use 3).

css/types/length.json Outdated Show resolved Hide resolved
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, sometimes it is useful to know which features are around from the start as new web developers don't necessarily have the knowledge how web platform technologies evolved over time.

@Elchi3 Elchi3 merged commit ca2b612 into mdn:main Dec 12, 2023
6 checks passed
@queengooborg queengooborg deleted the css/types/length/em/additions branch December 12, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

css.types.length - em missing
3 participants