Bug 100657 - [CSSOM] Extraneous whitespace in CSSImportRule.cssText
Summary: [CSSOM] Extraneous whitespace in CSSImportRule.cssText
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Glenn Adams
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 05:03 PDT by Glenn Adams
Modified: 2012-10-29 12:01 PDT (History)
11 users (show)

See Also:


Attachments
Patch (5.54 KB, patch)
2012-10-29 06:25 PDT, Glenn Adams
no flags Details | Formatted Diff | Diff
Patch (7.52 KB, patch)
2012-10-29 09:08 PDT, Glenn Adams
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Adams 2012-10-29 05:03:38 PDT
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
Comment 1 Glenn Adams 2012-10-29 06:25:32 PDT
Created attachment 171224 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-29 07:24:14 PDT
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 3 Build Bot 2012-10-29 07:57:04 PDT
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
Comment 4 Glenn Adams 2012-10-29 09:08:24 PDT
Created attachment 171255 [details]
Patch
Comment 5 WebKit Review Bot 2012-10-29 12:00:59 PDT
Comment on attachment 171255 [details]
Patch

Clearing flags on attachment: 171255

Committed r132834: <http://trac.webkit.org/changeset/132834>
Comment 6 WebKit Review Bot 2012-10-29 12:01:04 PDT
All reviewed patches have been landed.  Closing bug.