This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17518 - Presence of white-space after serialization of CSS values is unspecified
Summary: Presence of white-space after serialization of CSS values is unspecified
Status: RESOLVED WORKSFORME
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-16 20:46 UTC by Divya Manian
Modified: 2013-08-12 19:55 UTC (History)
0 users

See Also:


Attachments

Description Divya Manian 2012-06-16 20:46:07 UTC
6.6.2 Serializing CSS Values does not list if there should be white-spaces after the semi-colons or not in the serialized output. For example, 'margin: 20px 20px 20px 20px;' is output serialized as 'margin: 20px; ' in Webkit while it is output serialized as 'margin: 20px' in Firefox. 

http://dev.w3.org/csswg/cssom/#serializing-css-values
Comment 1 Simon Pieters 2013-08-12 19:55:55 UTC
The part of the spec you linked to doesn't serialize the semicolon. It is what getPropertyValue returns.

If you mean .cssText on CSSStyleDeclaration, this is specced to include the semicolon but no trailing space after the last declaration.

http://dev.w3.org/csswg/cssom/#serialize-a-css-declaration-block