Open Bug 1821866 Opened 2 years ago Updated 2 years ago

font-family name with spaces serialized without quotes in Firefox

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: evilpies, Unassigned)

References

(Blocks 1 open bug)

Details

I first noticed this in this canvas2d test, but this also seems to apply to normal style properties.

Test case:
document.body.style.fontFamily = "Unknown Font, sans-serif"; document.body.style.fontFamily

Produces "Unknown Font, sans-serif" in Firefox and "\"Unknown Font\", sans-serif" in Chrome.

See https://github.com/w3c/csswg-drafts/issues/5846 for some discussion about this (but no clear conclusion).

For now, until/unless the CSSWG addresses this more precisely, I think the most appropriate thing to do would be to make the test accept either form.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.