Skip to content

Remove support for nonzero unitless values for MathML lengths #24

Closed

Description

@fred-wang

From https://mathml-refresh.github.io/mathml/chapter2.html#fund.units

"A number without a unit is intepreted as a multiple of the reference value. This form is primarily for backward compatibility and should be avoided, prefering explicit units for clarity. "

Converting unitless to percentage adds some complexity to the code. Moreover it is not very intuitive for users except maybe "0". I wonder if we can somewhat simplify this now.

cc @rwlbuis

Activity

  1. added
    MathML Core
    MathML 4
    css / html5
    on Feb 22, 2019
  2. physikerwelt commented on Feb 25, 2019

    @physikerwelt
    Member

    discussed in the telco on 2019-02-25:

    • consensus here?
  3. fred-wang commented on Mar 14, 2019

    @fred-wang
    Author

    cc @rwlbuis, @emilio

    I removed the reference to nonzero unitless values w3c/mathml-core@6e821b2 ; @davidcarlisle can you please check whether the RelaxNG change is correct?

    I'm leaving this open because it still remains to:

    Also, despite that "0" has a unique interpretation we might maybe be more explicit about how it is interpreted. CSS suggests it is interpreted as a number (https://drafts.csswg.org/css-values-3/#lengths) so it should be relative ("0%") per the old unitless intepretation. However, an absolute value (e.g. "0px") might be better for implementation since we don't need to bother with the default values. In any case this is an implementation details, it shouldn't affect the result.

  4. added
    compatibility
    on Mar 20, 2019
  5. added
    need resolution
    need polyfill
    need specification update
    need tests
    and removed
    need resolution
    on May 16, 2019
  6. removed
    need specification update
    on Jun 5, 2019
  7. fred-wang commented on Jun 5, 2019

    @fred-wang
    Author

    Core spec now uses <length-percentage> from CSS which does not allow nonzero unitless values.

  8. 10 remaining items

  9. added
    need specification update
    on Sep 16, 2019
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 Corecompatibilitycss / html5need polyfillneed specification update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions