W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Logical gap in UI WD

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Thu, 10 Feb 2000 07:32:59 -0800 (PST)
Message-ID: <20000210153259.15168.qmail@web906.mail.yahoo.com>
To: www-style <www-style@w3.org>
There is a logical gap in the UI WD.

At present, content's initial value is "". This is not changed by the WD.

The WD states that content can now be used to replace content, so <Div
style="content: radio-on">This won't be rendered</div> gives a radio
button.

However, since content's initial value is "", the result for <div>A normal
div element</div> surely must be an empty DIV.

Now to counter this, it seems that there is a need for a non-replaced
value for content, so content: non-replaced specifies that the contents of
the element should be used. 

In addition, I would propose a change to the initial value of content to
non-replaced. This does not alter current generated content rendering:

DIV:before {content: non-replaced /* Initial value */ ;display: block:
background: red; height: 10px} is the same as DIV:before {content: "";
display: block; background: red; height: 10px; content: ""} because
non-replaced on an empty element, as :before and :after are by definition
is always "".

=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Thursday, 10 February 2000 10:36:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:03 GMT