MCPcopy Create free account
hub / github.com/cburgmer/rasterizeHTML.js / rewriteStyleContent

Function rewriteStyleContent

src/documentUtil.js:44–46  ·  view source on GitHub ↗
(styleElement)

Source from the content-addressed store, hash-verified

42 };
43
44 var rewriteStyleContent = function (styleElement) {
45 styleElement.textContent = cssRulesToText(styleElement.sheet.cssRules);
46 };
47
48 var addSheetPropertyToSvgStyleElement = function (svgStyleElement) {
49 var doc = document.implementation.createHTMLDocument(""),

Callers 1

replaceSimpleSelectorsByFunction · 0.85

Calls 1

cssRulesToTextFunction · 0.85

Tested by

no test coverage detected