Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
better fix for 'initial' not serializing correctly from cssom; also n…
Browse files Browse the repository at this point in the history
…oted Blink bug.
  • Loading branch information
sorvell committed Mar 31, 2014
1 parent 898cc87 commit 431026f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ShadowCSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,13 @@ var ShadowCSS = {
// of troublesome properties to fix https://github.com/Polymer/platform/issues/53
//
// inherit rules can be omitted from cssText
if (rule.style.background == 'initial') {
cssText += 'background: initial; ';
}
if (rule.style.border == 'initial') {
cssText += 'border: initial; ';
// TODO(sorvell): remove when Blink bug is fixed:
// https://code.google.com/p/chromium/issues/detail?id=358273
var style = rule.style;
for (var i in style) {
if (style[i] === 'initial') {
cssText += i + ': initial; ';
}
}
return cssText;
},
Expand Down

0 comments on commit 431026f

Please sign in to comment.