Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
update polymer
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 10, 2016
1 parent 0166005 commit 392c3fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/polymer-styling.js
Expand Up @@ -388,7 +388,10 @@ Polymer.StyleUtil = (function() {
e = e$[i];
// look inside templates for elements
if (e.localName === 'template') {
cssText += this.cssFromElement(e);
// retain css content when specified,
if (!e.hasAttribute('preserve-content')) {
cssText += this.cssFromElement(e);
}
} else {
// style elements inside dom-modules will apply to the main document
// we don't want this, so we remove them here.
Expand Down Expand Up @@ -1006,10 +1009,10 @@ Polymer.ApplyShim = (function(){
}

// fix shim'd var syntax
// var(--a, --b) -> var(--a, var(--b));
// var(--a, --b) -> var(--a,var(--b))
function fixVars(matchText, varA, varB) {
// if fallback doesn't exist, or isn't a broken variable, abort
return 'var(' + varA + ',' + 'var(' + varB + '));';
return 'var(' + varA + ',' + 'var(' + varB + '))';
}

// produce variable consumption at the site of mixin consumption
Expand Down

0 comments on commit 392c3fc

Please sign in to comment.