Open
Bug 1457333
Opened 7 years ago
Updated 2 years ago
Purge -moz- and -webkit-prefixed values from completion list in devtools
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: xidorn, Assigned: xidorn)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
Currently we list all available values from InspectorUtils::GetCSSValuesForProperty, but we probably want to remove -moz- and -webkit-prefixed values from that since we shouldn't be encouraging people using them.
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Severity: normal → enhancement
Updated•6 years ago
|
Product: Firefox → DevTools
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → xidorn+moz
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8985553 [details]
Bug 1457333 - Purge -moz- and -webkit-prefixed values from completion list in devtools.
https://reviewboard.mozilla.org/r/251164/#review257414
::: devtools/shared/css/generated/properties-db.js
(Diff revision 1)
> "supports": [],
> "values": [
> - "-moz-available",
> - "-moz-fit-content",
> - "-moz-max-content",
> - "-moz-min-content",
I guess it's somewhat unfortunate to remove prefixed values with no unprefixed alternative, but I guess it's fine.
::: servo/components/style_derive/specified_value_info.rs:85
(Diff revision 1)
> if let Some(other_values) = info_attrs.other_values {
> for value in other_values.split(",") {
> values.push(value.to_string());
> }
> }
> + values.retain(|v| !v.starts_with("-moz-") && !v.starts_with("-webkit-"));
nit: Maybe add a comment?
Attachment #8985553 -
Flags: review?(emilio) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 5•6 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #2)
> > - "-moz-available",
> > - "-moz-fit-content",
> > - "-moz-max-content",
> > - "-moz-min-content",
>
> I guess it's somewhat unfortunate to remove prefixed values with no
> unprefixed alternative, but I guess it's fine.
I think it would be good if either :gl or :pbro weighed in on this.
Flags: needinfo?(pbrosset)
Flags: needinfo?(gl)
Comment 6•6 years ago
|
||
Fwiw, those in particular are going to be unprefixed soon (bug 1322780 came up on the list of stuff to do this quarter).
Comment 7•6 years ago
|
||
mozreview-review |
Comment on attachment 8985553 [details]
Bug 1457333 - Purge -moz- and -webkit-prefixed values from completion list in devtools.
https://reviewboard.mozilla.org/r/251164/#review257732
I have no issues with the patch per se, but as mentioned in the comments, I think it would be good to check in with gl or pbro before landing. Perhaps it is still worth keeping these completions since some people may be using the prefixed forms by preference? I am not really sure.
Attachment #8985553 -
Flags: review?(ttromey) → review+
Comment 8•6 years ago
|
||
I think this is fine so long we are going to unprefix them soon. Perhaps hold off for 62 and land for 63. This might be a good time to bring up if we have any way of knowing the usage of the prefixed version of these property values in FF. So, we can make better decision of how and when to go about unprefixing in the future for the devtools autocomplete.
Flags: needinfo?(gl)
Assignee | ||
Comment 10•6 years ago
|
||
Having bug 1322780 block this given the concern in comment 2 about removing prefixed keywords without equivalents.
Depends on: 1322780
Comment 11•6 years ago
|
||
Bug 1128200 suggests only hiding the prefixed values from the completion list if there’s no prefix‑less alternative.
Updated•6 years ago
|
Comment 13•6 years ago
|
||
I personally think some prefixed values/properties are useful for Firefox Engineers, especially in the Browser Toolbox, but I agree hiding them for websites is a good idea.
Comment 14•6 years ago
|
||
(In reply to Tim Nguyen :ntim (please use needinfo?) from comment #13)
> I personally think some prefixed values/properties are useful for Firefox
> Engineers, especially in the Browser Toolbox, but I agree hiding them for
> websites is a good idea.
Those, which don't have a standardized counterpart implemented (yet) like -moz-appearance or -moz-outline-radius or the -moz-element value for background-image, should be kept in the completion lists, even for websites. But for all that do have one, I totally agree they should be hidden.
Sebastian
QA Contact: gl
Assignee | ||
Comment 15•6 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #14)
> (In reply to Tim Nguyen :ntim (please use needinfo?) from comment #13)
> > I personally think some prefixed values/properties are useful for Firefox
> > Engineers, especially in the Browser Toolbox, but I agree hiding them for
> > websites is a good idea.
>
> Those, which don't have a standardized counterpart implemented (yet) like
> -moz-appearance or -moz-outline-radius or the -moz-element value for
> background-image, should be kept in the completion lists, even for websites.
> But for all that do have one, I totally agree they should be hidden.
I don't agree. We should not encourage people to use values which are not on the standard track, since they are not going to be webcompat.
In your examples, I think it has been clear that we want to remove -moz-outline-radius, and use border-radius for outline as well. And -moz-element is probably something we may have in some spec at some point, but it may not look this way. The situation of -moz-appearance is more complicated and I don't have suggestion without further investigation, but IIRC it is someting on the standard track and would be unprefixed or have standard webkit-prefix at some point.
Updated•6 years ago
|
Assignee: xidorn+moz → nobody
Updated•6 years ago
|
Assignee: nobody → xidorn+moz
QA Contact: gl
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•