Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[CB-2650] - Weinre style inspection breaks with normalize.css
  • Loading branch information
pmuellr committed May 3, 2013
1 parent e1370ba commit bb83d05ba862b045917a42a6e5a4554383285155
Showing 2 changed files with 14 additions and 10 deletions.
@@ -53,6 +53,7 @@ <h2>2012/??/?? - version 2.0.0</h2>
<li><a href="https://issues.apache.org/jira/browse/CB-1193">CB-1193</a> - add Windows Phone support
<li><a href="https://issues.apache.org/jira/browse/CB-1800">CB-1800</a> - remove references to "incubator"
<li><a href="https://issues.apache.org/jira/browse/CB-1494">CB-1494</a> - Supports running server behind a proxy, such as Heroku Cedar
<li><a href="https://issues.apache.org/jira/browse/CB-2650">CB-2650</a> - Weinre style inspection breaks with normalize.css
<li><a href="https://issues.apache.org/jira/browse/CB-3319">CB-3319</a> - Chrome is setting window properties which now breaks Weinre
<li><a href="https://issues.apache.org/jira/browse/CB-3328">CB-3328</a> - chrome version >= 27 breaks flex-box usage
</ul>
@@ -54,16 +54,19 @@ module.exports = class CSSStore
getMatchedCSSRules: (node) ->
result = []

for styleSheet in document.styleSheets
continue unless styleSheet.cssRules

for cssRule in styleSheet.cssRules
continue unless _elementMatchesSelector(node, cssRule.selectorText)
object = {}
object.ruleId = @_getStyleRuleId(cssRule)
object.selectorText = cssRule.selectorText
object.style = @_buildMirrorForStyle(cssRule.style, true)
result.push object
try
for styleSheet in document.styleSheets
continue unless styleSheet.cssRules

for cssRule in styleSheet.cssRules
continue unless _elementMatchesSelector(node, cssRule.selectorText)
object = {}
object.ruleId = @_getStyleRuleId(cssRule)
object.selectorText = cssRule.selectorText
object.style = @_buildMirrorForStyle(cssRule.style, true)
result.push object
catch err
return result

result

0 comments on commit bb83d05

Please sign in to comment.