Accessibility

CSS Advisor

Safari 2.0 ignores a styles sheet or part of the styles sheet

by Thierry Koblentz on December 19, 2007 Avg Rating 4.0 (3)   |   Log in to rate post.

Tagged with no styles rendering , Safari 2.0 , Any property can be dropped , safari , broken styles sheet , Property hack

Problem

When using the "_property" or "*property" hack, Safari 2.0 cannot make sense of the styles sheet. i.e. selector {*color:red}

Solution

The solution is to always follow these declarations with a ";". i.e. selector {*color:red;}

Detailed description

Safari 2.0 has a parsing bug that makes it fail to render styles properly if the "_property" or "*property" hack are not followed by a semi-colon.

For example:
selector {*color:red}

to prevent the issue, simply use a ";" after the declaration:

selector {*color:red;}

Note that the specs do not required this ";" at the end of the block declaration.




Text ID: PROPERTY_HACKS



Comments (0)

To add a comment, please Log in.








CSS Advisor home
Submit a post

rss

CSS ADVISOR RSS FEEDS
Recent: POSTS | COMMENTS | EDITS


Browsers
Internet Explorer (45)
Mozilla/Firefox (16)
Opera (7)
Safari (13)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)