dillon1000/react

Commit

Use setProperty when setting style properties (#9302)

* Use setProperty when setting style properties

setProperty is faster in all/most modern browsers. It also lets us support CSS variables.

* Only use setProperty when setting CSS variables

* Add test to ensure setting CSS variables do not warn

* Make this PR pretty again

* Run fiber test script
Browse files
Changed paths3 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM src/renderers/dom/shared/CSSPropertyOperations.js ModifiedM src/renderers/dom/shared/__tests__/CSSPropertyOperations-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…