Closed
Bug 807336
Opened 12 years ago
Closed 12 years ago
"Unknown property" parse warnings appear in error console, for unrecognized properties in a failing @supports condition
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: dholbert, Assigned: heycam)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
462 bytes,
text/html
|
Details | |
7.42 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
I'm attaching a testcase, with this style:
> @supports (display: pirate) {
> #myDiv {
> parrot: red;
> leg: peg;
> eyepatch: visible;
> }
> }
Of course "display: pirate" is unsupported, so the question is -- how do we deal with the also-unsupported properties in the @supports condition? I'd expect that we wouldn't report parse errors for them, because they're in an @supports rule for some unsupported feature, so conceptually they're "skipped" and likely known-to-be-not-supported.
Formal STR below.
STR:
0. Open error console. Clear it if you like, to make it easier to see things.
1. Load testcase.
2. Inspect error console.
EXPECTED RESULTS: No CSS errors/warnings reported.
ACTUAL RESULTS: CSS parsing errors are reported.
Reporter | ||
Comment 1•12 years ago
|
||
BTW: I filed bug 798592 on a situation like this, on the assumption that this sort of thing would produce EXPECTED RESULTS & prevent error-console spam. Maybe I was just mistaken about that, though...
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 2•12 years ago
|
||
I agree, I think parsing errors should only be reported for non-value related errors (like missing parens).
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → cam
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
What about when we parse a declaration because of, say, assigning to cssText somewhere inside an existing failing @supports rule? Should we be searching up the tree to find if we should be suppressing the errors here?
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #678606 -
Flags: review?(dbaron)
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Comment 6•12 years ago
|
||
A design choice to consider: making these Info messages instead.
Something like:
Info: line/col value foo for property bar in @supports rule is/is not supported.
may be more author-friendly.
Comment on attachment 678606 [details] [diff] [review]
patch
I was originally thinking you were going to hook into OUTPUT_ERROR/CLEAR_ERROR, but after looking at this for a bit I think this is fine.
r=dbaron
Attachment #678606 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Blocks: css-conditional-3
You need to log in
before you can comment on or make changes to this bug.
Description
•