[webkit-help] How does CSSStyleDeclaration#isPropertyImplicit work?
Ryosuke Niwa
rniwa at webkit.org
Sun Dec 12 08:40:16 PST 2010
You might find be interested in reading the change log for
http://trac.webkit.org/changeset/11481.
2010/12/12 Ryosuke Niwa <rniwa at webkit.org>
> <!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/408e511b/attachment.html>
More information about the webkit-help
mailing list