Skip to content

Define Color Valued Attributes from CSS / HTML5 #62

Closed

Activity

  1. added
    MathML Core
    MathML 4
    css / html5
    on Feb 28, 2019
  2. changed the title [-]Define Color Valued Attributes from CSS[/-] [+]Define Color Valued Attributes from CSS / HTML5[/+] on Feb 28, 2019
  3. NSoiffer commented on Mar 4, 2019

    @NSoiffer
    Contributor

    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.

  4. davidcarlisle commented on Mar 5, 2019

    @davidcarlisle
    Collaborator
  5. added
    compatibility
    and removed
    compatibility
    on Mar 20, 2019
  6. fred-wang commented on May 2, 2019

    @fred-wang
    Author

    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:

    <p><math mathcolor="red"><mtext>red</mtext></math></p>
    <p><math mathcolor="rgb(255,0,0)"><mtext>rgb(255,0,0)</mtext></math></p>
    

    Whatever we decide, we will need WPT tests for these.

  7. rwlbuis commented on May 6, 2019

    @rwlbuis

    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.

  8. added
    need tests
    on May 6, 2019
  9. added
    need resolution
    on May 16, 2019
  10. fred-wang commented on May 16, 2019

    @fred-wang
    Author

    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.

  11. added
    need specification update
    and removed
    need resolution
    on May 16, 2019
  12. bkardell commented on May 16, 2019

    @bkardell
    Collaborator

    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.

  13. fred-wang commented on May 16, 2019

    @fred-wang
    Author

    Right that was my understanding too so yes the two syntaxes in #62 (comment) will work.

  14. removed
    need specification update
    on Jun 5, 2019
  15. fred-wang commented on Jun 5, 2019

    @fred-wang
    Author

    The spec now refers to CSS colors.

  16. NSoiffer commented on Mar 2, 2020

    @NSoiffer
    Contributor

    I believe that this is basically resolved so that the only appropriate labels are "needs tests" and "MathML 4" (that spec needs updating).

  17. removed
    need tests
    on May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MathML 4MathML Corecss / html5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions