Closed Bug 1752634 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 32603 - Add <dimension-token> type-checking to CSSNumericValue::parse()

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32603 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32603
Details from upstream follow.

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

Add <dimension-token> type-checking to CSSNumericValue::parse()

This patch implements a recent spec bug fix:

https://github.com/w3c/css-houdini-drafts/pull/1065

Fixed: 1291603
Change-Id: I3adae8148dd47b24d4516448e492daccce7ecd91
Reviewed-on: https://chromium-review.googlesource.com/3425673
WPT-Export-Revision: 12b08bfb756f754967af75f73bc6789ad4be7569

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 9 subtests

Status Summary

Firefox

OK : 1
FAIL: 9

Chrome

OK : 1
PASS: 8
FAIL: 1

Safari

OK : 1
FAIL: 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-2004-qr-debug] (Chrome: OK, Safari: OK)
Parsing an invalid string throws SyntaxError: FAIL (Chrome: PASS, Safari: FAIL)
Parsing a string with a non numeric token throws SyntaxError: FAIL (Chrome: PASS, Safari: FAIL)
Parsing a string with left over numeric tokens throws SyntaxError: FAIL (Chrome: PASS, Safari: FAIL)
Parsing a calc with incompatible units throws a SyntaxError: FAIL (Chrome: PASS, Safari: FAIL)
Parsing a <dimension-token> with invalid units throws a SyntaxError: FAIL (Chrome: FAIL, Safari: FAIL)
Parsing ignores surrounding spaces: FAIL (Chrome: PASS, Safari: FAIL)
Parsing min() is successful: FAIL (Chrome: PASS, Safari: FAIL)
Parsing max() is successful: FAIL (Chrome: PASS, Safari: FAIL)
Parsing clamp() is successful: FAIL (Chrome: PASS, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-2004-qr-debug] (Chrome: OK, Safari: OK)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/711d18f4c75e [wpt PR 32603] - Add <dimension-token> type-checking to CSSNumericValue::parse(), a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ddc93efd327 [wpt PR 32603] - Add <dimension-token> type-checking to CSSNumericValue::parse(), a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.