W3C home > Mailing lists > Public > www-style@w3.org > April 2012

[css3-gcpm] EXAMPLE 2 in section 2.1.1 is not correct

From: Werner Donné <werner.donne@pincette.biz>
Date: Tue, 24 Apr 2012 15:46:56 +0200
To: www-style@w3.org
Message-Id: <9DE623E7-E8EA-48D8-AC54-7797FC0AC644@pincette.biz>
Hello,

Section 2.1.1 of the editor's draft ("string-set") has the following example:

@page {
  @top-right { content: env(url) }
  @bottom-right { content: env(date-time) }
}

The "env" function can't be used in this context. It should be a member of the <content-list> of a "string-set" property. The example could be changed as follows:

@page {
  @top-right { content: string(url) }
  @bottom-right { content: string(date-time) }
}

body {
  string-set: url env(url), date-time env(date-time);
}

Best regards,

Werner.
--
http://www.pincette.biz/
Handling your documents with care, wherever you are.
Received on Tuesday, 24 April 2012 13:47:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT