jonkemp / inline-css

Inline css into an html file.
MIT License
429 stars 85 forks source link

Strip 'px' from numeric values when inlining table,td,th height and width attributes #93

Closed ryantate13 closed 4 years ago

ryantate13 commented 4 years ago

Correct format for inlining these values is width="200" vs width="200px". This PR handles case insensitive stripping of 'px' from the end of the attribute value when the key is height or width.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.02%) to 99.043% when pulling eb9b11edf9885a3a761be6ae8e6a072b90896ff6 on ryantate13:master into c7300fca652df8af8901842aff9251b54b56d718 on jonkemp:master.

jonkemp commented 4 years ago

Lint task is failing so the build is failing now. 😄

ryantate13 commented 4 years ago

Lint task is failing so the build is failing now. 😄

Fixed 😄