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

Are these features really "non-standard"? #165

Closed
jakearchibald opened this issue Jan 20, 2022 · 3 comments
Closed

Are these features really "non-standard"? #165

jakearchibald opened this issue Jan 20, 2022 · 3 comments

Comments

@jakearchibald
Copy link

https://compat.spec.whatwg.org/

This standard describes a collection of non-standard (and often vendor-prefixed) CSS properties and DOM APIs that web browsers need to support for compatibility with the de facto web.

Are these features really "non-standard" given that they're now specified in the Compatibility Living Standard?

For example, from https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-webkit-device-pixel-ratio

Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

I think this warning on MDN is incorrect. -webkit-min-device-pixel-ratio is more reliable than min-resolution, since the latter is not supported in Safari, whereas the former has excellent browser support.

Should features specified in the Compatibility Living Standard be considered deprecated?

@miketaylr
Copy link
Member

Are these features really "non-standard" given that they're now specified in the Compatibility Living Standard?

I suppose they were non-standard until we specified them (not making claims I did a great job for most of them!), and now they've grown into beautiful swans. 🦢

Do you have any recommendation of how to improve? Maybe just remove non-standard?

Should features specified in the Compatibility Living Standard be considered deprecated?

Some perhaps, where better alternatives exist. Perhaps I will find the time to start addressing #156, which is one way to identify what should be considered deprecated vs "specced in this doc".

@jakearchibald
Copy link
Author

I think removing "non-standard" is good, and mark particular features as deprecated if there's a reasonable path to remove it. In the case of -webkit-device-pixel-ratio I don't think it can be deprecated yet due to lack of Safari support for resolution.

miketaylr added a commit that referenced this issue Jan 28, 2022
Also, get rid of an old issue that seems less relevant.

Fixes: #165
@jakearchibald
Copy link
Author

Cheers fella!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants