-
Notifications
You must be signed in to change notification settings - Fork 20
Remove support for nonzero unitless values for MathML lengths #24
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
Comments
discussed in the telco on 2019-02-25:
|
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. |
Consensus from https://lists.w3.org/Archives/Public/public-mathml4/2019Mar/0026.html is to deprecate from MathML full. |
Core spec now uses |
…core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23
…core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908
This is tested by https://w3c-test.org/mathml/relations/css-styling/lengths-1.html |
…@linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323 --HG-- extra : moz-landing-system : lando
…@linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427 --HG-- extra : moz-landing-system : lando
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427
…core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908 UltraBlame original commit: ac0176e866080ef838ca94c26e556216aefcecfa
…linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323 UltraBlame original commit: 0692436a2b33c134bf50654ce466e4bd5ddb05cf
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427 UltraBlame original commit: e45398b513298e1c015c8bce85a5cae6cf16151f
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908 UltraBlame original commit: ac0176e866080ef838ca94c26e556216aefcecfa
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908 UltraBlame original commit: ac0176e866080ef838ca94c26e556216aefcecfa
…linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323 UltraBlame original commit: 0692436a2b33c134bf50654ce466e4bd5ddb05cf
…linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323 UltraBlame original commit: 0692436a2b33c134bf50654ce466e4bd5ddb05cf
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427 UltraBlame original commit: e45398b513298e1c015c8bce85a5cae6cf16151f
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427 UltraBlame original commit: e45398b513298e1c015c8bce85a5cae6cf16151f
… some numbers are invalid in …, a=testonly Automatic update from web-platform-tests Update MathML tests for lengths now that some numbers are invalid in core. Basically things like "7.em", "-7.em" or "5" are now invalid. w3c/mathml#24 w3c/mathml#23 -- wpt-commits: a7bec3cae6324dfadbc93705eb8b119d550e094a wpt-pr: 17908
…@linethickness. r=emilio See w3c/mathml#4 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw This commit introduces a new preference option mathml.mfrac_linethickness_names.disabled to disable linethickness names. For now, these names are only disabled in Nightly builds. Announcements and actual disabling of this and other MathML features will be considered later. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console. * mstyle-1.xhtml is updated to use a numeric linethickness since the point of the test is just to check that the attribute is not supported on mstyle, not about the actual attribute value. * Other fractions tests relying on linethickness names are executed with the proper preference adjustment. * mathml/presentation-markup/fractions/frac-linethickness-001.html is now closer to its expectation ; however the test still fails because nonzero unitless values are not removed yet. See w3c/mathml#24 Differential Revision: https://phabricator.services.mozilla.com/D42323
See w3c/mathml#24 and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA This commit introduces a new preference option mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless values like "5" for 500%. MathML nonzero unitless are now disabled by default but it could be easily enabled again later if we decide otherwise. * test_bug553917.html is updated to check that these values now cause an error message to be logged into the console rather than a deprecated warning when nonzero unitless lengths are disabled. Additionally, the test checking invalid double dots "2..0" is updated not to use unitless syntax. * The old test 355548-3.xml checks support for mathsize names and also uses several features that are going to be deprecated. So it is just run with the proper preference adjustment. * mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for unitless lengths so they are now run with that support enabled. * WPT tests frac-linethickness-001.html and lengths-1.html are executed with the some MathML features disabled in order to make them pass. We get more assertion passing for the "Legacy numbers" test of lengths-2.html ; however there are still some issues to address (see bug 1574751). Differential Revision: https://phabricator.services.mozilla.com/D42427
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
The text was updated successfully, but these errors were encountered: