Closed Bug 1325129 Opened 7 years ago Closed 7 years ago

investigate support for caret-color property

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clarkbw, Unassigned)

References

Details

bug 1063162 implements the caret-color CSS property. This bug is to investigate any work required by the Inspector in supporting this property and to track that work as it is done.
Values of the 'caret-color' property displayed in the rule-view should have a color swatch displayed next to them just like values of the 'color' property.

iirc, color swatches appear next to colors automatically when options.supportsColor equals `true` in OutputParser.parseCssProperty [1].
The only way that it can be true is if the property (caret-color in this case) is defined as supporting the COLOR  or GRADIENT css types.
I think the mapping of properties and types comes from the CSS database [2], which uses DOMUtils.cssPropertySupportsType for this.

So, we need this platform API to be up to date for caret-color to appear just like any other colors in the rule-view.

[1] http://searchfox.org/mozilla-central/rev/ac40ca3ec39efe85bfb111274c10ee4ceea5bb7a/devtools/client/shared/output-parser.js#69
[2] http://searchfox.org/mozilla-central/source/devtools/server/actors/css-properties.js
I tried this today and we do get a color swatch in the rule view for the caret-color property.
If that's all that we wanted (I think so but I'm not certain), then this bug can be closed.
Just tried it out, looks good!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.