According to CSSOM [1], when serializing CSSImportRule (as cssText), no whitespace should follow the url() when the media list is empty. At present, other common browsers (FF, Opera) follow this behavior. However, WK is returning an extra SPACE after the url() and before the final SEMICOLON when the media list is empty. An incoming CSSWG test for this behavior can be found at [2]. [1] http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom/Overview.html#serialize-a-css-rule [2] http://test.csswg.org/source/contributors/gadams/incoming/cssom/cssimportrule-media.xht
Created attachment 171224 [details] Patch
Comment on attachment 171224 [details] Patch Attachment 171224 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14628129 New failing tests: http/tests/css/shared-stylesheet-mutation.html http/tests/css/shared-stylesheet-mutation-preconstruct.html
Comment on attachment 171224 [details] Patch Attachment 171224 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14623338 New failing tests: http/tests/css/shared-stylesheet-mutation.html http/tests/css/shared-stylesheet-mutation-preconstruct.html
Created attachment 171255 [details] Patch
Comment on attachment 171255 [details] Patch Clearing flags on attachment: 171255 Committed r132834: <http://trac.webkit.org/changeset/132834>
All reviewed patches have been landed. Closing bug.