capricorn86 / happy-dom

A JavaScript implementation of a web browser without its graphical user interface
MIT License
3.09k stars 185 forks source link

fix: [#1363] Fix bug with missing fallback value #1381

Closed odanado closed 3 months ago

odanado commented 3 months ago

Close #1363

Custom properties without fallback values can be converted to custom properties with fallback values (using SINGLE_CSS_VARIABLE_REGEXP).

e.g.

After converting to a custom property for which a fallback value exists, the value can be found using a regular expression that handles the custom property in this case (using CSS_VARIABLE_REGEXP).