MCPcopy
hub / github.com/preactjs/preact / getCSSVariableValue

Function getCSSVariableValue

test/browser/style.test.jsx:226–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 const getSpan = () =>
225 /** @type {HTMLSpanElement} */ (scratch.firstChild.firstChild);
226 const getCSSVariableValue = () =>
227 getDiv().style.getPropertyValue('--color');
228 const getTextColor = () => window.getComputedStyle(getSpan()).color;
229
230 render(<App color="blue" />, scratch);

Callers 1

style.test.jsxFile · 0.85

Calls 1

getDivFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…