Search

Incorrect CSS stylesheet warnings by daveli

Closed
as Fixed Help for as Fixed

1
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 109855
Opened: 5/1/2005 1:29:58 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Visual Studio does not recognize vendor-specific extensions (http://www.w3.org/TR/CSS21/syndata.html#q4) in CSS stylesheets, or selectors with both an ID selector and a Class selector (http://www.w3.org/TR/CSS21/selector.html#q2).
Details (expand)
Product Language
English
Version
Visual Studio 2005 Beta 2
Category
ASP.NET Development
Operating System
Windows XP Professional
Operating System Language
US English
Steps to Reproduce
Add stylesheet with:

#foo.bar
{
-moz-opacity: 0.42;
}
Actual Results
Warning Style rules should be of the form '#<identifier>' or '.<identifier>'.
Warning Unexpected character sequence. Expected a property name for the "<property> : <value>" declaration.
Expected Results
No warnings
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 5/3/2005 at 11:38 AM
Thankyou for the feedback. We will look at fixing this for RTM.

The web.net team
Posted by Microsoft on 5/3/2005 at 6:48 PM
The Microsoft Sub-status is now "Working on solution"
Posted by Microsoft on 5/4/2005 at 9:58 AM
Thank you for reporting the issue. We added recognition of names that begin with - and _ to the CSS validator. However, I didn't change validation of the #foo.bar since I haven't found information if it is legal syntax. Did you mean that element ID is foo.bar? Technically it is possible to have this kind of ID, but ID with a dot is not client scrip friendly.

Thanks
Web.NET team.
Posted by Microsoft on 5/4/2005 at 10:03 AM
Thank you for reporting the issue. We added recognition of names that begin with - and _ to the CSS validator. However, I didn't change validation of the #foo.bar since I haven't found information if it is legal syntax. Did you mean that element ID is foo.bar? Technically it is possible to have this kind of ID, but ID with a dot is not client scrip friendly.

Thanks
Web.NET team.
Posted by daveli on 5/6/2005 at 1:25 AM
The element has id="foo" and class="bar". Both IE and Firefox correctly applies this style, and the W3C CSS Validator had no problem with the syntax (but the validator did not like "-moz-opacity"-attribute however), so it is probably valid. Maybe you could check with the IE team?

http://jigsaw.w3.org/css-validator/validator?text=%23foo.bar+%7Bcolor%3A+black%7D&usermedium=all
Posted by Microsoft on 5/10/2005 at 6:18 PM
Unfortunately this is not a simple fix on our end. The workaround is to have a space between #foo and .bar. We'll consider fixing this in the next version.
Posted by Microsoft on 10/24/2005 at 6:07 PM
This issue has been reactivated as we begin planning for the next version of Visual Studio. Over the coming months we will reconsider feedback that was previously postponed. We welcome your comments and participation in this process.

-- Visual Studio Team
Posted by Microsoft on 1/27/2006 at 3:10 PM
The Microsoft Sub-status is now "Working on solution"
Posted by Microsoft on 1/30/2006 at 5:58 PM
Thanks for submitting this.This has been fixed in future releases.

Thanks,
Web Platform & Tools Team
Posted by Microsoft on 1/17/2007 at 2:11 AM
Thank you for submitting this issue. The bug has been resolved Fixed, and its resolution shipped as part of Visual Studio 2005 Service Pack 1 (SP1).

You can download SP1 at http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx. If installing SP1 does not resolve the issue for you, please reactivate.

Thanks again for your feedback!
-Scott Currie
-DDTFA Program Manager