cssom-papandreou
Advanced tools
Comparing version 0.2.4-patch4 to 0.2.4-patch5
@@ -270,2 +270,3 @@ //.CommonJS | ||
// Temporary workaround until https://github.com/NV/CSSOM/issues/16 gets resolved | ||
// Remember to keep this block of code in sync with the equivalent hack 50 lines below. | ||
if (styleRule.style.getPropertyValue(name)) { | ||
@@ -316,8 +317,19 @@ styleRule.__ends = i; | ||
// Temporary workaround until https://github.com/NV/CSSOM/issues/16 gets resolved | ||
// Remember to keep this block of code in sync with the equivalent hack 50 lines above. | ||
if (styleRule.style.getPropertyValue(name)) { | ||
styleRule.__ends = i; | ||
currentScope.cssRules.push(styleRule); | ||
styleRule = new CSSOM.CSSStyleRule; | ||
styleRule.selectorText = currentScope.cssRules[currentScope.cssRules.length - 1].selectorText; | ||
styleRule.__starts = i; | ||
var newStyleRule = new styleRule.constructor(); | ||
newStyleRule.__starts = i; | ||
if (styleRule.type === CSSOM.CSSRule.STYLE_RULE) { | ||
newStyleRule.style.setProperty('is-continuation', 'yes'); | ||
newStyleRule.selectorText = currentScope.cssRules[currentScope.cssRules.length - 1].selectorText; | ||
} else if (styleRule.type === CSSOM.CSSRule.FONT_FACE_RULE) { | ||
newStyleRule.style.setProperty('is-continuation', 'yes'); | ||
var fontFamily = styleRule.style.getPropertyValue('font-family'); | ||
if (fontFamily) { | ||
newStyleRule.style.setProperty('font-family', fontFamily); | ||
} | ||
} | ||
styleRule = newStyleRule; | ||
} | ||
@@ -324,0 +336,0 @@ styleRule.style.setProperty(name, buffer.trim(), priority); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.2.4-patch4", | ||
"version": "0.2.4-patch5", | ||
"homepage": "https://github.com/NV/CSSOM", | ||
@@ -13,0 +13,0 @@ "author": "Nikita Vasilyev <me@elv1s.ru>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37121
1209