Re: [csswg-drafts] [css-variables][cssom] Empty value doesn't round-trip (#9847)

@cdoublev I imagine authors using jQuery like

```js
$(".foo").css({
  display: "block",
  "--foo": "",
})
```

which I think ends up using https://github.com/jquery/jquery/blob/527fb3dcf0dcde69302a741dfc61cbfa58e99eb0/src/css.js#L253C1-L257C6

```js
if ( isCustomProp ) {
  style.setProperty( name, value );
} else {
  style[ name ] = value;
}
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9847#issuecomment-2123516860 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 21 May 2024 22:07:08 UTC