Re: [css-houdini-drafts] [css-paint-api] Remove alpha flag, in favour of a contextSettings flag?

The CSS Working Group just discussed `Remove alpha flag, in favour of a contextSettings flag?`, and agreed to the following resolutions:

* `RESOLVED: object called contextAttributes`

<details><summary>The full IRC log of that discussion</summary>
&lt;iank_> Topic: Remove alpha flag, in favour of a contextSettings flag?<br>
&lt;iank_> Github: https://github.com/w3c/css-houdini-drafts/issues/435<br>
&lt;fantasai> iank_: I noticed recently that the alpha flag is a little silly and not really future-proof<br>
&lt;fantasai> iank_: There's maybe some other arguments appearing here, e.g. color space<br>
&lt;fantasai> iank_: We don't want to keep on adding flags to the class, maybe makes sense to have a dictionary<br>
&lt;fantasai> franremy: Couldn't you just add on top of alpha? Why make the change?<br>
&lt;fantasai> iank_: Mirrors better the ???? API<br>
&lt;fantasai> s/????/getContext<br>
&lt;fantasai> iank_: However, I'm quite fine keeping the static ????<br>
&lt;fantasai> franremy: Not a preference, just wondering why changes<br>
&lt;fantasai> surma: I think mirroring getContext is a good idea. Also see getAlias call being useful here, so makes sense to add the objection<br>
&lt;fantasai> iank_: Do you have a better name than settings?<br>
&lt;fantasai> surma: options? :)<br>
&lt;fantasai> dino: We should reuse ... [looking stuff up]<br>
&lt;fantasai> iank_: canvasContextCreationAttributes?<br>
&lt;fantasai> dino: Yeah, contextCreationAttributes<br>
&lt;fantasai> dino: We know we're in a context, so creationAttributes<br>
&lt;fantasai> dino: But we know its attributes so maybe just creation<br>
&lt;fantasai> dino: I don't think we should use the word settings<br>
&lt;fantasai> dino: creationAttributions<br>
&lt;fantasai> TabAtkins: Can you make it longer, please?<br>
&lt;fantasai> Rossen: canvasContextCreationAttributes<br>
&lt;fantasai> TabAtkins: Yup, thanks<br>
&lt;fantasai> iank_: Let's do a twitter poll, and pick the most popular<br>
&lt;fantasai> surma: Just use contextAttributes. That's how MDN lists it for getAttribute2D<br>
&lt;fantasai> Rossen: Sounds like we're going with the boject, calling it contextAttributes<br>
&lt;fantasai> Rossen: which is nicely in MDN already<br>
&lt;fantasai> Rossen: Opinions or objections?<br>
&lt;fantasai> RESOLVED: object called contextAttributes<br>
</details>


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

Received on Tuesday, 1 August 2017 10:08:35 UTC