Skip to content

Commit

Permalink
Bug 1075444 - Handle "(" when parsing CSS for the Style Inspector. r=…
Browse files Browse the repository at this point in the history
…bgrins
  • Loading branch information
simonlindholm committed Oct 24, 2014
1 parent 54ebd78 commit a749046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions browser/devtools/styleinspector/css-parsing-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function parseDeclarations(inputString) {
case "FUNCTION":
current += token.value + "(";
break;
case "(":
case ")":
current += token.tokenType;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ const TEST_DATA = [
{name: "content", value: '"a not s\
o very long title"', priority: ""}
]
}
},
// Test calc with nested parentheses
{input: "width: calc((100% - 3em) / 2)", expected: [{name: "width", value: "calc((100% - 3em) / 2)", priority: ""}]},
];

function run_test() {
Expand Down

0 comments on commit a749046

Please sign in to comment.