Re: [csswg-drafts] [css-shadow-parts] IDL for attributes

I'd argue that those attributes should have had a better IDL attribute but that's somewhat of an orthogonal discussion to have. Anyhow, I think here's an idea on how these map-like IDL might work. Introduce a new interface like `DOMTokenMap` then have `stringifier` return the actual string. The IDL attribute would have `PutsForwards` to forward the assignment to `value` property of `DOMTokenMap`. Then `DOMTokenMap` can have named properties to set and get mapped values.

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

Received on Wednesday, 18 July 2018 03:27:48 UTC