Skip to content

[TASK] Drop special support for vendor prefixes #1083

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

oliverklee
Copy link
Collaborator

In the past, vendor prefixes like -moz- or -webkit- were used for experimental CSS features in browsers. Nowadays, the browsers use features for this instead. Hence, special support for vendor prefixes is no longer needed.

https://developer.mozilla.org/en-US/docs/Glossary/Vendor_Prefix

@coveralls
Copy link

coveralls commented Mar 5, 2025

Coverage Status

coverage: 55.679% (-0.05%) from 55.726%
when pulling df1405c on task/drop-vendor-prefixes
into 2c3fe72 on main.

In the past, vendor prefixes like `-moz-` or `-webkit-` were
used for experimental CSS features in browsers. Nowadays,
the browsers use features for this instead. Hence, special
support for vendor prefixes is no longer needed.

https://developer.mozilla.org/en-US/docs/Glossary/Vendor_Prefix
@oliverklee oliverklee force-pushed the task/drop-vendor-prefixes branch from 130015f to df1405c Compare March 5, 2025 11:47
Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

With this change, the vendor-prefixed calc will be parsed as vanilla CSSFunctions, which will work in some cases, but not all - e.g. -moz-calc(( 50px - 50% ) * 2) will be rejected at the ( inside the function argument, but the remainder of the value will still be parsed, resulting in ( 50px - 50px in this case.

Since the vendor prefixes are still used in legacy CSS, which may need to be parsed (e.g. to automatically update it to use modern constructs), I think we need to first deprecate the vendor-prefixed calc in 8.8. I'll do that now...

Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

This can be merged now they are deprecated for v8.8 in #1086.

@JakeQZ JakeQZ merged commit c5348e9 into main Mar 5, 2025
21 checks passed
@JakeQZ JakeQZ deleted the task/drop-vendor-prefixes branch March 5, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants