The spec says: [...] The name of the CSS property. See the CSS property index. [...] http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-getPropertyValue CSS properties are case insensitive, therefore the string passed to getPropertyValue should also be case insensitive. In webkit this is not the case. Test case: http://testserver.se/webkit/tests/getPropertyValue.html
Created attachment 15547 [details] Test case
Same problem with other CSSStyleDeclaration methods, e.g. removeProperty().
Created attachment 15847 [details] Proposed patch This should correct not only the getPropertyValue issue from the original report, but the other routines that Alexey noted.
Comment on attachment 15847 [details] Proposed patch Can you not use tolower rather than the manual lowercasing?
The test case should really cover more cases (the ones Alexey noted) and can probably be dumpAsText().
Comment on attachment 15847 [details] Proposed patch Marking r- until the above comments have been addressed.
Created attachment 15927 [details] Propose patch 2 Use tolower, can't think why I didn't the first time... hrmm :-) Better layout test that tests getPropertyValue, setProperty and removeProperty.
Comment on attachment 15927 [details] Propose patch 2 r=me. I think it would be worth adding the single line needed to dump the results as text as it would make the test more portable to other platforms.
Created attachment 15928 [details] Proposed patch 3 dumpAsText version of layout test
Comment on attachment 15928 [details] Proposed patch 3 Will commit dumpAsText version as in Mark's comment
Landed in r25008
<rdar://problem/5415308>