Closed Bug 1788605 Opened 2 years ago Closed 11 months ago

Align scriptlevel's syntax on MathML Core

Categories

(Core :: MathML, defect)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

mathml/relations/css-styling/attribute-mapping-002.html still has failing tests for invalid values of scriptlevel after bug 1667090.

There are several reasons:

The ToInteger function is not very strict, so scriptlevel parsing
currently accepts invalid values like "+-1", "--1", "+z1", "+ 1",
"2.0", "-3"" or "200px". To fix that, we perform an extra check
during parsing to ensure that the part after the optional leading
sign is really an <unsigned> number (string of digits).

This patch also fixes some issues in attribute-mapping-002.html
(previously attached attribute not removed, not handling
none/mprescripts specially, gather checks in one loop) and add
more test cases such as the ones mentioned above. The situation of
leading/trailing whitespace is unclear, so testing for things like
" +1" and "+1 " is ignored for now.

Pushed by fred.wang@free.fr:
https://hg.mozilla.org/integration/autoland/rev/cee98ae67ea4
Align scriptlevel's syntax on MathML Core. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35907 for changes under testing/web-platform/tests

Backed out alongside Bug 1667090, for causing Xpcshell failures on test_css-properties-db.js. CLOSED TREE
Backout link
Push with failures
Link to failure log
Failure line :
TEST-UNEXPECTED-FAIL | devtools/shared/tests/xpcshell/test_css-properties-db.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | devtools/shared/tests/xpcshell/test_css-properties-db.js | run_test - [run_test : 73] The static database and platform do not match for

Please also check this new Reftest failure
Failure line : REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/mathml/scriptlevel-1.html == layout/reftests/mathml/scriptlevel-1-ref.html | image comparison, max difference: 255, number of differing pixels: 6594

Upstream PR merged by moz-wptsync-bot
Attachment #9292612 - Attachment description: Bug 1788605: Align scriptlevel's syntax on MathML Core. r=emilio → WIP: Bug 1788605: Align scriptlevel's syntax on MathML Core. r=emilio
Attachment #9292612 - Attachment description: WIP: Bug 1788605: Align scriptlevel's syntax on MathML Core. r=emilio → Bug 1788605: Align scriptlevel's syntax on MathML Core. r=emilio
Pushed by fred.wang@free.fr:
https://hg.mozilla.org/integration/autoland/rev/b0f86186fb9a
Align scriptlevel's syntax on MathML Core. r=emilio
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41220 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: