jsdom / cssstyle

A Node.js implementation of the CSS Object Model CSSStyleDeclaration interface
MIT License
107 stars 70 forks source link

Update allProperties.js #150

Closed lencioni closed 1 year ago

lencioni commented 2 years ago

I did this by cloning the repo, running npm install, and then executing the following command:

node scripts/download_latest_properties.js

Finally, I ran eslint autofix on the file, which mostly just reformatted the quotes from doubles to singles.

I hope that updating this file will allow JSDOM to avoid stripping these valid styles from style attributes on DOM nodes.

lencioni commented 2 years ago

We've tested this change at Airbnb by using patch package and it seems to resolve some issues we were running into with this list being outdated.