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

Function getTextColor

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

Source from the content-addressed store, hash-verified

226 const getCSSVariableValue = () =>
227 getDiv().style.getPropertyValue('--color');
228 const getTextColor = () => window.getComputedStyle(getSpan()).color;
229
230 render(<App color="blue" />, scratch);
231 expect(getCSSVariableValue()).to.equal('blue');

Callers 1

style.test.jsxFile · 0.85

Calls 1

getSpanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…