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

I would strongly suggest just exposing these as strings in IDL for now. There is no need for a more complicated data structure, at least until authors ask for one.

We have precedent for microsyntaxes being reflected as simple strings in at least `<img srcset>`, `<iframe csp>`, `<iframe allow>`, and `<link sizes>`.

We can always add something more complex later, depending on how we find developers are using these things, e.g. feature policy is looking at a *read-only* API that gives a view onto the `allow` attribute. But for now, no need.

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

Received on Thursday, 12 July 2018 15:40:57 UTC