You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define Color Valued Attributes from CSS / HTML5 #62
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcss / html5Issues related to CSS or HTML5 interoperability
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:
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? red is a valid color name in css as a 'keyword' I think.
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcss / html5Issues related to CSS or HTML5 interoperability
Activity
[-]Define Color Valued Attributes from CSS[/-][+]Define Color Valued Attributes from CSS / HTML5[/+]fred-wang commentedon Feb 28, 2019
Or maybe it should be the HTML5 one: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#colours ?
NSoiffer commentedon Mar 4, 2019
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.
davidcarlisle commentedon Mar 5, 2019
I added a placeholder section to the core spec https://mathml-refresh.github.io/mathml-core/#color
fred-wang commentedon May 2, 2019
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.
rwlbuis commentedon May 6, 2019
I think CSS colors is the way to go since they offer alternative color specification like rgb, rgba and hsl.
SVG1.1 refers to CSS2:
https://www.w3.org/TR/SVG11/types.html#DataTypeColor
SVG2 refers to CSS3:
https://www.w3.org/TR/SVG2/painting.html#ColorProperty
It seems 'transparent' is supported for both mathcolor and mathbackground in Firefox and WebKit, so maybe it should be specified for both attributes.
fred-wang commentedon May 16, 2019
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.
bkardell commentedon May 16, 2019
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?
redis a valid color name in css as a 'keyword' I think.fred-wang commentedon May 16, 2019
Right that was my understanding too so yes the two syntaxes in #62 (comment) will work.
fred-wang commentedon Jun 5, 2019
The spec now refers to CSS colors.
NSoiffer commentedon Mar 2, 2020
I believe that this is basically resolved so that the only appropriate labels are "needs tests" and "MathML 4" (that spec needs updating).
Add test to ensure that mathcolor/mathbackground uses the CSS definit…
Add test to ensure that mathcolor/mathbackground uses the CSS definit…
Bug 1640137 [wpt PR 23741] - Add test to ensure that mathcolor/mathba…
Bug 1640137 [wpt PR 23741] - Add test to ensure that mathcolor/mathba…
Bug 1640137 [wpt PR 23741] - Add test to ensure that mathcolor/mathba…