Skip to content

Commit

Permalink
Devtools CSS: Show custom variables in styles sidebar pane
Browse files Browse the repository at this point in the history
BUG=569812

Review URL: https://codereview.chromium.org/1578103002

Cr-Commit-Position: refs/heads/master@{#368806}
  • Loading branch information
lisamuel authored and Commit bot committed Jan 12, 2016
1 parent 714e010 commit 5b231ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front_end/sdk/CSSStyleModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ WebInspector.CSSProperty.prototype = {
{
if (!insideProperty) {
var isDisabledProperty = tokenType && tokenType.includes("css-comment") && token.includes(":");
var isPropertyStart = tokenType && (tokenType.includes("css-meta") || tokenType.includes("css-property"));
var isPropertyStart = tokenType && (tokenType.includes("css-meta") || tokenType.includes("css-property") || tokenType.includes("css-variable-2"));
if (isDisabledProperty) {
result = result.trimRight() + indentation + token;
} else if (isPropertyStart) {
Expand Down

0 comments on commit 5b231ae

Please sign in to comment.