LordHits
LordHits

Reputation: 5083

Unknown property 'MozOpacity' - meaning?

I'm using Chris Pederick's Firefox addon "Web Developer 1.1.6". I get this warning when hitting a certain web page on my site:

Unknown property 'MozOpacity'. Declaration dropped.

What does this mean and how can I fix this on my site?

Upvotes: 0

Views: 5248

Answers (4)

Adam Lassek
Adam Lassek

Reputation: 35505

It's customary for browsers to prefix experimental or proprietary features with -moz (for Gecko-based browsers) or -webkit (for webkit) so they can be used but don't interfere with standard CSS rendering. In the case of -moz-opacity, it seems that they have finally removed the proprietary tag since the standard opacity tag is supported.

I don't think any equivalent convention is followed by the IE team, but then again IE is so behind the pack it probably never came up ;)

Upvotes: 3

infovore
infovore

Reputation: 31

It might not be an issue with your site. Some browser plugins - for instance, Firebug or Web Developer - often add extra styles dynamically to the page for debugging purposes; I've noticed the unofficial -moz-* styles pop up in my own Firefox debugging.

However, this isn't necessarily a problem with your page; it could be a problem that your user agent is first creating itself, and then assuming later that there's a problem with your page.

First, I suggest trying to disable your Firefox plugins and seeing if you still get aforementioned error. Then, make sure your plugins are up-to-date - especially any development/debugging type ones that might be manipulating the DOM after pageload.

Upvotes: 1

Ionuț Staicu
Ionuț Staicu

Reputation: 22164

there is some proprietary css declaration : - filter (from microsoft); - -moz-corner-radius, -moz-opacity and other -moz prefixed from mozilla - -khtml prefixed from safari

these are NOT standard and it works ONLY in that browser. If you don't expect -moz properties to work on safari and filter on firefox, you can ignore that warnings :)

Upvotes: 0

Ross
Ross

Reputation: 46997

Are you using mozopacity in your CSS stylesheet? This might be spelled wrong and is thus triggering an error.

You might be looking for -moz-opacity which has been dropped as of Firefox 3.0.

Upvotes: 1

Related Questions