Skip to content

Commit 9611262

Browse files
committed
[css2] Added quotes in url(), Added a separate example without
quotes. Removed some comments. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401707
1 parent ba9f19a commit 9611262

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

css2/syndata.src

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.61 1998-05-06 19:28:40 ijacobs Exp $ -->
3+
<!-- $Id: syndata.src,v 2.62 1998-05-12 12:47:05 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -790,20 +790,25 @@ functional notation used to designate URIs in property values is
790790

791791
<div class="example"><P>
792792
<PRE>
793-
BODY { background: url(http://www.bg.com/pinkish.gif) }
793+
BODY { background: url("http://www.bg.com/pinkish.gif") }
794794
</PRE>
795795
</div>
796796

797797
<P> The format of a URI value is 'url(' followed by optional <a
798798
href="#whitespace">whitespace</a> followed by an optional single quote
799-
(') or double quote (") <!-- " --> character followed by the URI
799+
(') or double quote (") character followed by the URI
800800
itself, followed by an optional single quote (') or double quote (")
801-
<!-- " --> character followed by optional whitespace followed by
802-
')'. Quote characters <!-- that are not part of the URI itself --> must be
803-
balanced.
801+
character followed by optional whitespace followed by
802+
')'. The two quote characters must be the same.
803+
804+
<div class="example"><P>An example without quotes:
805+
<PRE>
806+
LI { list-style: url(http://www.redballs.com/redball.png) disc }
807+
</PRE>
808+
</div>
804809

805810
<P> Parentheses, commas, whitespace characters, single quotes (') and
806-
double quotes (") <!-- " --> appearing in a URI must be escaped with a
811+
double quotes (") appearing in a URI must be escaped with a
807812
backslash: '\(', '\)', '\,'.
808813

809814
<P>Depending on the type of URI, it might also be possible to write
@@ -821,7 +826,7 @@ of the style sheet, not that of the source document.
821826
<P>For example, suppose the following rule:</p>
822827

823828
<PRE>
824-
BODY { background: url(yellow) }
829+
BODY { background: url("yellow") }
825830
</PRE>
826831

827832
<P>is located in a style sheet designated by the URI:</p>

0 commit comments

Comments
 (0)