Closed Bug 1840477 Opened 2 years ago Closed 2 years ago

[css-properties-values-api] Finish syntax validation

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: emilio, Assigned: zrhoffman)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Another decent chunk of work for @property / registerProperty is, given a syntax Descriptor and an UnparsedValue, parse the later following the syntax rules of the former.

Once we parse those, probably into something like:

enum Value {
    Number(specified::Number),
    Length(specified::Length),
    Transform(...),
    Url(...),
    // etc
}

We should also add checks for computational independence. That should make @property validation and registerProperty follow the spec.

See the references to this bug in the codebase.

Assignee: emilio → nobody
Depends on: 1843980
Depends on: 1843982

With this patch, all the WPTs for initial value validation pass, except
for one whose syntax fails to parse (see bug 1843988).

Depends on D183806

Assignee: nobody → zach
Status: NEW → ASSIGNED
Blocks: 1844501
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41122 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
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: