-
Notifications
You must be signed in to change notification settings - Fork 27
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
Umbrella Focus Area for unprefixing various CSS properties/values #702
Comments
Needing to use Autoprefixer to prefix what is now just a small handful of properties feels wasteful and unfortunate. |
My first thought is that the amount of work to unprefix these significantly varies, given differences to what the unprefixed property has as specified behaviour, which may make this dubious as a single focus area. |
unprefixing can mean many different things.
All these choices have webcompat impact most of the time with legacy websites and native apps using a form of these properties. Also it really depends on each property, as @gsnedders mentioned the effort can sometimes be gargantuan for some of these. |
@gsnedders @karlcow Yes, I agree; This issue can perhaps be seen as a discussion starting point for how to handle property unprefixing in interop. Putting As for the other properties: print-color-adjustI don't see any open issues about this in the Chromium issue tracker; the implementation also seems to exactly match the spec, so I think this can just be unprefixed? user-selectReading through the WebKit issue, there seem to be various open bugs, some of which block unprefixing the property. text-size-adjustWebKit seems to already match the behavior (?) (see bug) while Firefox does not yet implement percentages (see bug). Personally though I think not supporting percentages should not block unprefixing since the most common usage of box-decoration-breakThere is currently an open pull request for WebKit, but some minor edge cases still seem to be unimplemented. (see bug) text-decorationThere also exists an open pull request for WebKit, and the implementation seems to already match the spec pretty well (?). (see bug) stretchThis also seems to be one of the more complicated ones (maybe also make this its own focus area?), since there are some layout edge cases with floats etc. that still need to be fixed in various browsers. See Chromium bug, WebKit bug, Firefox bugs: 1, 2, 3 Note also that |
I'd recommend making separate issues for each property, and mentioning in the issue description that there's a possible group. The process allows us to easily take multiple issues and combine them into a single focus area, whereas pulling apart a single issue containing multiple parts with potentially different levels of complexity and priority is harder. |
This isn't as trivial as one might assume. The majority of the work involved in Blink's recent un-prefixing (https://issues.chromium.org/issues/40415661) was to get
See: mozilla/standards-positions#1054 (comment) for further discussion. |
@BenjaminAster could you add one for |
@Mouvedia This is a non-standard property that does not exist in any specification, and is only implemented on MacOS. The Interop project is only for web features that are already standardized. From proposal_guide.md:
|
An issue can also be opened on https://github.com/whatwg/compat/issues |
Description
CSS vendor prefixes are slowly dying out (fortunately), but there are still some CSS properties/values where some browsers need prefixes:
print-color-adjust
: Needs-webkit-
prefix in Chromium.user-select
: Needs-webkit-
prefix in WebKit.text-size-adjust
: Needs-webkit-
prefix in WebKit and Firefox. (Firefox also supports the-moz-
prefix.)box-decoration-break
: Needs-webkit-
prefix in Chromium and WebKit. Chromium is currently working on shipping unprefixed support.text-decoration
: Needs-webkit-
prefix in WebKit when specifying multiple values in the shorthand.line-clamp
: Needs a-webkit-
prefix and some additional non-standard properties (display: -webkit-box
and-webkit-box-orient: vertical
) to be set in Chromium, WebKit and Firefox. Chromium is currently working on implementing the unprefixed property.(min-/max-)width/height/inline-size/block-size: stretch
: Implemented as-webkit-fill-available
in Chromium and WebKit, and-moz-available
in Firefox.For many of these properties, browsers either do not implement some parts of the spec or implement it a bit differently. So "unprefixing" would also mean fixing those issues to align the implementation with the specification.
Specification
N/A (see hyperlinks above)
Additional Signals
No response
The text was updated successfully, but these errors were encountered: