W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re[11]: css with attribues

From: Dmitry Turin <sql4-en@narod.ru>
Date: Wed, 16 Jan 2008 09:36:08 +0200
Message-ID: <1256036078.20080116093608@narod.ru>
To: www-style@w3.org

Brad,

BK> CSS properties (at
BK> least those appropriate for all media) should be assignable directly
BK> to HTML tags as attributes, so that the following would be
BK> equivalent (assuming only one div in this example):
BK> ~~~~~~~~~~~~~~~~~~~~~~~~~~
BK> <div float="left" width="20em">
BK> ~~~~~~~~~~~~~~~~~~~~~~~~~~
BK> <style media="all" type="text/css">
BK>  div { float:left; width:20em; }
BK> </style>
BK> ~~~~~~~~~~~~~~~~~~~~~~~~~~
BK> With that, the "style" attribute would be redundant. And if you
BK> wanted to select everything that was floated left (either via html
BK> attribute or all media style sheet) and turn it green, you could do
BK> something like this:
BK> *[float=left] { color:green !important; }

right

BK> HTML UAs skip attributes they don't understand. So a client that does
BK> not understand CSS would be no worse off, as long as this only  
BK> applied to presentational attributes. It _would_ be a problem for non-
BK> presentational attributes that only existed in CSS style sheets that
BK> some clients don't read.

1) if property is written as attribute,
   then non-css UA will skip it, because UA is not updated.
2) if attribute is written as property,
   then non-css and non-undated UA will lost value of attribute.

But what is the non-presentational attributes ?
Write, please, examples of them (write, please, several names of them).
All attributes are presentational.
All applied values are only content of html-element (only between open and close tag).
I even made special proposal to visualize value of attribute
http://html60.euro.ru/site/html60/en/author/forxml_eng.htm


   
Dmitry Turin
SQL5      (5.9.1)  http://sql50.euro.ru
HTML6     (6.5.1)  http://html60.euro.ru
Unicode7  (7.2.1)  http://unicode70.euro.ru
Computer2 (2.0.2)  http://computer20.euro.ru
Received on Wednesday, 16 January 2008 08:06:38 GMT

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