-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getContext()'s second argument #9194
Conversation
In practice getContext() only has two arguments. And in practice some handling of the second argument is shared across the various rendering context types. This aligns the standard with that practice. This also obviates the need for dedicated coercion algorithms for "2d" and "bitmaprender". This change also fixes various minor nits found along the way, such as the inconsistent spelling of contextId (was sometimes contextType). Tests: web-platform-tests/wpt#9194. Fixes #595.
Summoning @wpt-pr-bot. |
Someone else will have to run |
In practice getContext() only has two arguments. And in practice some handling of the second argument is shared across the various rendering context types. This aligns the standard with that practice. This also obviates the need for dedicated coercion algorithms for "2d" and "bitmaprender". This change also fixes various minor nits found along the way, such as the inconsistent spelling of contextId (was sometimes contextType). Tests: web-platform-tests/wpt#9194 and web-platform-tests/wpt#9205. Fixes #595.
In practice getContext() only has two arguments. And in practice some handling of the second argument is shared across the various rendering context types. This aligns the standard with that practice. This also obviates the need for dedicated coercion algorithms for "2d" and "bitmaprender". This change also fixes various minor nits found along the way, such as the inconsistent spelling of contextId (was sometimes contextType). Tests: web-platform-tests/wpt#9194 and web-platform-tests/wpt#9205. Fixes whatwg#595.
d45dfd0
to
6217c19
Compare
Can someone help me out with getting |
You might be able to get past that with brew by doing
Note: I see it’s necessary to actually |
Done. |
c79e410
to
507b854
Compare
Based on the IRC comment at https://w3.logbot.info/testing/20200208#c542306, I went ahead and split this into two commits (and rewrote the history on the branch and force-pushed it here). Please doublecheck it all. |
LGTM, but I cannot approve as I wrote this. |
See whatwg/html#595 and whatwg/html#3370 for context.