Closed Bug 1843988 Opened 1 year ago Closed 1 year ago

CSS.registerProperty for syntax 'ba\f\n|\tna\r|nya' throws "Invalid syntax descriptor"

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: zrhoffman, Assigned: fredw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Summary: CSS.registerProperty for syntax 'ba | na |nya' throws "Invalid syntax descriptor" → CSS.registerProperty for syntax 'ba\f\n|\tna\r|nya' throws "Invalid syntax descriptor"

Descriptor::from_str skips preprocessing so it's necessary to treat
carriage return and line feed as newlines [1] [2].

[1] https://drafts.csswg.org/css-syntax-3/#input-preprocessing
[2] https://drafts.csswg.org/css-syntax-3/#newline

Assignee: nobody → fwang
Status: NEW → ASSIGNED
Pushed by fred.wang@free.fr: https://hg.mozilla.org/integration/autoland/rev/f18a71905df1 Treat form feed as whitespace during CSS.registerProperty syntax parsing. r=zrhoffman
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: