[Webkit-unassigned] [Bug 14363] getComputedStyle of all style properties is incorrect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 27 12:29:34 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=14363





------- Comment #4 from browserbugs at gtalbot.org  2008-02-27 12:29 PDT -------
(In reply to comment #2)
> (...) why our result for
> cssText is incorrect though.  Could you please explain your reasoning.

When cssText is an attribute of a CSS rule:
"cssText of type DOMString
    The parsable textual representation of the rule. This reflects the current
state of the rule and not its initial value."
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSRule-cssText
when

When cssText is an attribute of a CSS declaration (which is *this* case wrt
this bug's testcase):
"
cssText of type DOMString
    The parsable textual representation of the declaration block (excluding the
surrounding curly braces). Setting this attribute will result in the parsing of
the new value and resetting of all the properties in the declaration block
including the removal or addition of properties.
"
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleDeclaration-cssText

"cssText is the full text of the style rules as they are written in the
stylesheet."
http://www.scottandrew.com/weblog/articles/dhtml_ns6
{cssText can get (read) but also set (write) the text value according to DOM 2
CSS.}

In the testpage, body.element.style has no textual declaration, except in the
linked external stylesheet http://www.gtalbot.org/Stylesheets/StartSection.css
. I think that's why other browsers give an empty value like
cssText=
for the cssText
More tests could be done here.


                margin: 8px;
                padding: 0px;
                color: black;
                background-color: #DDD; /* 221 */

is the parsable textual representation of the declaration block in the external
stylesheet for the body element while Safari 3.0.4 build 523.12.9 do not return
such text of the declaration block when doing the testcase.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list