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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
120 Branch
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: zrhoffman, Assigned: fredw)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
WPT: syntax:'ba | na |nya', initialValue:'nya' is valid
in https://wpt.fyi/results/css/css-properties-values-api/register-property-syntax-parsing.html
Reporter | ||
Updated•1 year ago
|
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"
Assignee | ||
Comment 1•1 year ago
|
||
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
Updated•1 year ago
|
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
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•