[wp-trac] [WordPress Trac] #22476: Standardize single and double quotes in CSS url()s
WordPress Trac
noreply at wordpress.org
Wed Feb 12 20:41:05 UTC 2014
#22476: Standardize single and double quotes in CSS url()s
----------------------------+-----------------------------
Reporter: TobiasBg | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Future Release
Component: Administration | Version:
Severity: trivial | Resolution:
Keywords: has-patch | Focuses: ui
----------------------------+-----------------------------
Description changed by TobiasBg:
Old description:
> As per http://www.w3.org/TR/CSS2/syndata.html#value-def-uri (and other
> locations), single quotes {{{'}}} and double quotes {{{"}}} in
> {{{url()}}} values in CSS like
> {{{
> body { background: url("../img/image,gif");
> }}}
> are optional. Most of core's CSS is already written without such quotes.
> The patch 22476-remove-quotes-in-url.diff removes the remaining ones, for
> consistency and to save us some bytes again, even in the minified CSS.
New description:
As per http://www.w3.org/TR/CSS2/syndata.html#value-def-uri (and other
locations), single quotes {{{'}}} and double quotes {{{"}}} in {{{url()}}}
values in CSS like
{{{
body { background: url("../img/image.gif");
}}}
are optional. Most of core's CSS is already written without such quotes.
The patch 22476-remove-quotes-in-url.diff removes the remaining ones, for
consistency and to save us some bytes again, even in the minified CSS.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22476#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list