MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / createStyleElement

Function createStyleElement

front_end/devtools_compatibility.js:1322–1326  ·  view source on GitHub ↗

* @param styleText * @returns

(styleText)

Source from the content-addressed store, hash-verified

1320 * @returns
1321 */
1322 function createStyleElement(styleText) {
1323 const style = document.createElement('style');
1324 style.textContent = styleText;
1325 return style;
1326 }
1327
1328 installBackwardsCompatibility();
1329})(window);

Callers 1

installExtraStyleRulesFunction · 0.85

Calls 1

createElementMethod · 0.45

Tested by

no test coverage detected