Bug 1102464: Part 2: Show a trace of how a css variable got set in the inspector. r=gl
MozReview-Commit-ID: AW5a1CNyDlW
--- a/devtools/client/inspector/shared/tooltips-overlay.js
+++ b/devtools/client/inspector/shared/tooltips-overlay.js
@@ -233,17 +233,17 @@ TooltipsOverlay.prototype = {
if (type === TOOLTIP_FONTFAMILY_TYPE) {
let font = nodeInfo.value.value;
let nodeFront = inspector.selection.nodeFront;
yield this._setFontPreviewTooltip(font, nodeFront);
return true;
}
- if (type === TOOLTIP_VARIABLE_TYPE) {
+ if (type === TOOLTIP_VARIABLE_TYPE && nodeInfo.value.value.startsWith("--")) {
let variable = nodeInfo.value.variable;
let nodeFront = inspector.selection.nodeFront;
yield this._setTextPreviewTooltip(variable, nodeFront);
return true;
}
return false;
}),