This PR fixes this bug by specifying that null and empty string are valid values for subparts of the properties margin and padding. I've also added tests for the behavior of setting these properties to undefined (value should remain as is).
Verified that this behavior (using the repro above) matches the following browser's behavior:
Per the linked issue in jsdom, the following bug exists, where
dom
is a JSDom instance:This PR fixes this bug by specifying that
null
andempty string
are valid values for subparts of the propertiesmargin
andpadding
. I've also added tests for the behavior of setting these properties toundefined
(value should remain as is).Verified that this behavior (using the repro above) matches the following browser's behavior:
Chrome 119.0.6045.123 Edge 120.0.2186.2 Firefox 120.0b8 Safari 17.1 (19616.2.9.11.7)
Fixes jsdom/jsdom#2504