-
Notifications
You must be signed in to change notification settings - Fork 19
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
Define Color Valued Attributes from CSS / HTML5 #62
Comments
Or maybe it should be the HTML5 one: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#colours ? |
I agree we should just use a pointer to the spec. Since this is in HTML and not CSS, I think the HTML spec is the appropriate one to reference. |
I added a placeholder section to the core spec https://mathml-refresh.github.io/mathml-core/#color |
cc @bkardell What is Firefox seems to recognize HTML colors (similar to what is described in the MathML spec) while WebKit/Chromium accepts CSS colors. Compare this:
Whatever we decide, we will need WPT tests for these. |
I think CSS colors is the way to go since they offer alternative color specification like rgb, rgba and hsl. It seems 'transparent' is supported for both mathcolor and mathbackground in Firefox and WebKit, so maybe it should be specified for both attributes. |
Resolution:
@bkardell, @NSoiffer @rwlbuis Not sure what it is meant by "we agree to go with color attributes". I think we decided to use the CSS syntax. |
Sorry, that is poor minuting on my part. I believe that what I meant to type was something like "we agree to basically follow svg and point to css colors?" Though, that should mean that both of the above in the example should work, right? |
Right that was my understanding too so yes the two syntaxes in #62 (comment) will work. |
The spec now refers to CSS colors. |
I believe that this is basically resolved so that the only appropriate labels are "needs tests" and "MathML 4" (that spec needs updating). |
…ckground uses the CSS definit…, a=testonly Automatic update from web-platform-tests Add test to ensure that mathcolor/mathbackground uses the CSS definition. (#23741) w3c/mathml#62 -- wpt-commits: ebd814422b787abd65010176104861f3cc5b180b wpt-pr: 23741
…ckground uses the CSS definit…, a=testonly Automatic update from web-platform-tests Add test to ensure that mathcolor/mathbackground uses the CSS definition. (#23741) w3c/mathml#62 -- wpt-commits: ebd814422b787abd65010176104861f3cc5b180b wpt-pr: 23741
See https://mathml-refresh.github.io/mathml/chapter2.html#fund.units
Let's just drop that definition and just refer to https://drafts.csswg.org/css-color/#typedef-color instead. This is what browsers are going to use.
The text was updated successfully, but these errors were encountered: