I have a partial understanding of CSS. The module gives an error, but seems to work. The error message is:

Error: Expected ',' or '{' but found '*'. Ruleset ignored due to bad selector.
Source File: http://www.sefellows.org/modules/gmap/gmap.css
Line: 1

The ruleset in question is:

v\:* {
behavior:url(#default#VML);
}

Any thoughts or help would be appreciated.

Thanks,
Don

Comments

BachusII’s picture

Title: css error message in mac firefox » css error message in gecko (firefox, mozilla, etc.)

It's a slightly dubious hack to use namespaces.
I can confirm that this is the same for all Gecko based browsers I have access to, on both linux and windows systems.

Fortunately, the declaration is only necessary for IE. (AFAIK)
In that case we might be able to include it using conditional comments.
Perhaps;

<!--[if IE]>
<style type="text/css">
v\:* {
  behavior:url(#default#VML);
}
</style>
<![endif]-->

Otherwise we'll have to put that declaration in a separate file and use some browserchecking to decide if/when to include it. (= IE && !Opera )

Or we could just live with this error. :-P

webgeer’s picture

It should probably be noted that this hack is recommended by Google and not unique to this module.

see: http://www.google.com/apis/maps/documentation/#XHTML_and_VML

bdragon’s picture

Status: Active » Closed (works as designed)

See http://googlemapsapi.blogspot.com/2006/09/vml-security-issue.html for more information about this.
(I just added a pointer to this in the CSS file too, on DRUPAL-5.)

Also, a standards compliant CSS parser will drop unknown rules, so this is only an asthetic issue.