Re: [css-houdini-drafts] [css-paint-api]: APIs not exposed in Worklets

"In addition, for every [NamedConstructor] extended attribute on an exposed interface, a corresponding property must exist on the ECMAScript global object." - putting [Exposed] on an interface also exposes the constructors.

"If [Exposed] appears an interface member, then the interface member’s exposure set must be a subset of the exposure set of the interface or partial interface it’s a member of" - you can't expose members of an interface without exposing the interface itself.

So we can hide parse methods by putting a more restrictive [Exposed] extended attribute on them, but we can't hide the constructors, at least not with Exposed.

Two alternatives:
1) just expose the constructors. It's fine.
2) work out some [Global] hack that lets us have two different versions of the same objects in the different contexts.

I vote for (1)

-- 
GitHub Notification of comment by shans
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/237#issuecomment-317618994 using your GitHub account

Received on Tuesday, 25 July 2017 03:32:43 UTC