CSS parser problem [message #35856] |
Mon, 16 July 2007 19:00 |
Eclipse User |
|
|
|
Originally posted by: nobody.spamcop.net
I just found a problem with the CSS parser in PDT:
When a selector is followed by a comment (just) before the opening
brace, the whole rule is not "seen":
- it doesn't appear in the outline; and
- it isn't syntax-highlighted.
The following fragment demonstrates this:
------------------------------------------
..recentcomments tr.buttonrow, /* override generic table colors */
..recentcomments tr.buttonrow td
{
background-color: #EEE6CA;
border-top: 1px solid #AAA;
}
..recentcomments .admincol /* _buttons_ in admin column */
{
width: 6.5em;
}
..highscores
{
margin-left: 5em;
}
..highscores caption {
text-align: center;
}
------------------------------------------
The position of the opening brace does not make any difference;
something as simple as h1 { color: black; } is parsed correctly while
h2 /**/ { color: green; } is not.
The W3C CSS validator has absolutely no problem with this syntax
(placing a comment between selector and opening brace), nor do any
browsers I've tried with (FF 2.0 and IE 5 for instance).
--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
|
|
|
Powered by
FUDForum. Page generated in 0.06295 seconds