Closed Bug 432597 Opened 17 years ago Closed 17 years ago

Like to have the warning "Expected declaration but found @filter. Skipped to next declaration" removed

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: egonknapen, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5 We live in an imperfect world, and by using the '@' character in front of any CSS line we can specify changes to our standard CSS files, so they work also fine in IE (not because we want to, but because we have to..). Without having to use a different CSS-file for every browser. I think it is a clean solution to the problematic rendering of MSIE. But because of those warnings, the real warnings are too easy overseen. css-styles like MSIE-'filter' can also be specified without that '@', which ofcourse gives an warning. I wish a possibility to skip that warning in the future. Reproducible: Always Steps to Reproduce: 1. Having the following in a html-file <style> #sidebar { @filter: alpha(opacity=88); opacity: 0.88; } </style> 2. run the page 3. watch the contents of the error console Actual Results: I real life for a big website, you get to see for example 20, 40 or more lines with .... Expected declaration but found '@....' Skipped to next declaration... and missing out the 1 line with a real warning... Expected Results: I only want to see real warnings, which I can fix. two possibilities: - just remove any message to css-lines with '@' in front of them, we know they are for IE. We put them there on purpose... - using about:config or something like that, to specify which warnings would be enabled and which would be surpressed. (Which probably needs somehow an identifiction for warning-type, like when compiling c/c++ )
Component: Error Console → Style System (CSS)
Product: Firefox → Core
QA Contact: error.console → style-system
Try installing the Console Filter extension, then you can have a filter box where you can use strings like "-@filter:" to hide such errors/warnings.
@-rules are a standard CSS syntax, not something for browser-specific extensions. I agree that we shouldn't be reporting browser-specific extensions (prefixed with _ or -), but these aren't they. I'm inclined to wontfix.
Philip that extension is something I have been looking for. I knew of the Console2 extension, which I used under firefox 2, but that one didn't have such a filter option. Thanks a lot for the firefox 3 version. David, I do not know where @ is used, except as a hack for MSIE. I think the Console Filter extension Philip is suggesting is a good solution. Now If there only a cross between Console2 (being able to select javascript errors and/or css errors), together with that filter feature. .... I'm changing it to worksforme...
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Just found out, that console filter can only show me @js = javascript errors or @css.... Thanks Philip...
"@" is used for "@import", "@media", and a few other things.
You need to log in before you can comment on or make changes to this bug.