[webkit-help] How does CSSStyleDeclaration#isPropertyImplicit work?

Ryosuke Niwa rniwa at webkit.org
Sun Dec 12 08:39:07 PST 2010


<!DOCTYPE html>
<html>
<body>
<div id="test" style="margin: 1px 2px;">hello</div>
<script>
document.writeln(test.style.isPropertyImplicit("margin-left")); // prints
true
</script>
</body>
</html>

Best,
Ryosuke Niwa

On Sun, Dec 12, 2010 at 4:39 AM, Никита Васильев <me at elv1s.ru> wrote:

> WebKit supports unstandard
> CSSStyleDeclaration.prototype.isPropertyImplicit method. How does it
> work? It seems like it always return false.
>
> <style>
> html {background: black}
> </style>
> <script>
>
> document.styleSheets[0].cssRules[0].style.isPropertyImplicit("background-image")
> // false
> </script>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20101212/ad39b403/attachment.html>


More information about the webkit-help mailing list