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

[css3-content] CSS3 content property cannot specify the replaced-element with its attribute value?

From: Masayuki Nakano <masayuki@toybox.jpn.org>
Date: Wed, 21 Apr 2004 02:30:49 +0900
To: www-style@w3.org
Message-Id: <20040421013431.95B3.MASAYUKI@toybox.jpn.org>

In CSS3 G & R contnet module, content property has contents.
However, it cannot spcify replaced-element with its attribute value;
In the case of HTML, OBJECT element is try the uri of "data"
attribue value and if the try failed, its content is rendered.
This behavior is not determined by CSS, it is determined in spec
of source document spec.
Because CSS3 content property cannot specify them.
In other words, an element in the XML document that is not known
by UA cannot be specified by CSS.

And from same reason, the alternate content may not be 'contents',
the alternate content may be called replaced-content.
This issue influence that generating ::before/::after pseudo-element.

I think best choice of this issue is that adding to uriofattr function.
So, OBJECT elements will be following rules:

    content: uriofattr(data), contents;

I think this is smart and flexible.
# But, does this idea conflict with BASE element of HTML?

Masayuki Nakano(Mozilla-gumi)
Received on Tuesday, 20 April 2004 13:34:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:13 UTC