On Tuesday 2008-05-06 13:31 -0700, [EMAIL PROTECTED] wrote:
> I notice the code get a property like this:
> nsIDOMCSSStyleDeclaration* cssDecl;
>
> nsAutoString value;
> cssDecl->GetPropertyValue(NS_LITERAL_STRING("visibility"), value);
>
> But how can I check if cssDecl has a property with a specified
> property name?
Every property has a computed value for every element, so such a
check doesn't make sense in the computed value space. If you're
looking for whether there is a specified value -- we don't currently
have an API for that. (It's also not clear whether you'd count
inherited values for inherited properties.)
-David
--
L. David Baron http://dbaron.org/
Mozilla Corporation http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout