W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Ryosuke Niwa via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Jul 2018 03:27:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-405797417-1531884465-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:53 UTC