Open Bug 1411798 Opened 8 years ago Updated 3 years ago

Web Console Shows CSS Errors for Unrecognized Properties in @supports Rules

Categories

(Core :: CSS Parsing and Computation, defect, P3)

57 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugzilla-2, Unassigned)

References

Details

Attachments

(1 file)

414 bytes, application/xhtml+xml
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171023180840 Steps to reproduce: 1. View a page with a stylesheet that declares a single |@supports| at-rule with a single unsupported CSS property (such as |margin-block|). 2. Open the Web Console (Ctrl+Shift+K). 3. Make sure CSS errors are visible. Actual results: Firefox 56.0.1: No errors are shown in the console. Firefox 57.0b11: One error is shown in the console (e.g., “Unknown property ‘margin-block’. Declaration dropped.”) Expected results: No errors should be shown in the console.
Attached file Test Case
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Priority: -- → P3
Hmmm... looks like we don't suppress parse errors in @supports for Stylo. We should do something similar like Bug 807336 did for old style system [1] I think. [1] https://searchfox.org/mozilla-central/rev/bab833ebeef6b2202e71f81d225b968283521fd6/layout/style/nsCSSParser.cpp#4440-4442
See Also: → 807336
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: