Closed Bug 1255401 Opened 9 years ago Closed 8 years ago

inIDOMUtils.getCSSValuesForProperty() is missing keyword for 'quotes'

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla59
Tracking Status
firefox59 --- verified

People

(Reporter: sebo, Assigned: tromey)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The 'quotes' property is missing its keyword 'none'. Test case (to execute in Scratchpad): let DOMUtils = Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils); DOMUtils.getCSSValuesForProperty("quotes"); Sebastian
Assignee: nobody → ttromey
Comment on attachment 8941599 [details] Bug 1255401 - fix getCSSValuesForProperty result for "quotes" property; https://reviewboard.mozilla.org/r/211860/#review217696
Attachment #8941599 - Flags: review?(cam) → review+
Comment on attachment 8941598 [details] Bug 1255401 - fix values allowed for "all" property; https://reviewboard.mozilla.org/r/211858/#review217698 This grayscale keyword seems to pop in and out of existence and I'm not sure why. But anyway, I really wonder if we should be generating this big list of values for the all shorthand, since in reality the only values you can use are the CSS-wide keywords. Instead of doing this update, could you look at how we generate this, and make sure we only output inherit / initial / unset?
(In reply to Cameron McCormack (:heycam) from comment #4) > This grayscale keyword seems to pop in and out of existence and I'm not sure > why. Maybe prefs or build options affect it somehow. > But anyway, I really wonder if we should be generating this big list of > values for the all shorthand, since in reality the only values you can use > are the CSS-wide keywords. Instead of doing this update, could you look at > how we generate this, and make sure we only output inherit / initial / unset? Thanks for noticing this. It's probably because `gAllSubpropTable` lists everything. I think special-casing "all" in `InspectorUtils::GetCSSValuesForProperty` is probably the correct approach. Also, "all" takes "revert" as well (according to https://developer.mozilla.org/en-US/docs/Web/CSS/all), but I don't see that in nsCSSParser.cpp.
(In reply to Tom Tromey :tromey from comment #5) > Also, "all" takes "revert" as well (according to > https://developer.mozilla.org/en-US/docs/Web/CSS/all), > but I don't see that in nsCSSParser.cpp. Yes, we don't implement revert yet.
Attachment #8941598 - Flags: review?(cam) → review+
Pushed by ttromey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52fbf0d6c18c fix values allowed for "all" property; r=heycam https://hg.mozilla.org/integration/autoland/rev/1572cddc9e46 fix getCSSValuesForProperty result for "quotes" property; r=heycam
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Works fine for me on Nightly 2018-01-14. Thank you for the patch, Tom! Sebastian
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: