MCPcopy Index your code
hub / github.com/ampproject/amphtml / createStyleNode

Function createStyleNode

test/unit/test-fixed-layer.js:383–389  ·  view source on GitHub ↗
(attr, value)

Source from the content-addressed store, hash-verified

381 }
382
383 function createStyleNode(attr, value) {
384 const node = document.createElement('style');
385 if (attr) {
386 node.setAttribute(attr, value || '');
387 }
388 return node;
389 }
390
391 function createValidRule(selector, position, elements) {
392 const rule = {

Callers 1

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected