Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » CSS parser problem
CSS parser problem [message #35856] Mon, 16 July 2007 19:00
Eclipse UserFriend
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
Previous Topic:Specify type for class variables
Next Topic:3 nagging questions
Goto Forum:
  


Current Time: Mon Jan 20 17:20:21 GMT 2025

Powered by FUDForum. Page generated in 0.06295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top