CSS, certain "presentational" attributes and HTML5

Aryeh Gregor, Mon, 4 Apr 2011 18:15:23 -0400:
> On Sun, Apr 3, 2011 at 4:52 PM, Leif Halvard Silli wrote:
>> Actually, I believe it can easily be achieved with CSS:

Regarding whether the effect of <center> can be achieved via CSS:

> Yes, you can always do specific examples.  But you can't specify the
> behavior of <center> entirely in terms of CSS rules that will work for
> every document, while matching current browser behavior.  If you think
> you can, try it.
   [...]
> They must "align descendants to the center".  That is defined in the
> paragraph I linked to; its meaning cannot be captured by CSS rules.
> For instance, the effect inherits in a way different from how CSS
> works.

a) OK - could be that you are right - needs a certain amount of
   time to test it...
b) But perhaps CSS needs to change then? 

In regard of b), then Boris acknowledged that even the effect of 
table@border can't be caught by the current CSS:

> http://www.w3.org/Bugs/Public/show_bug.cgi?id=12413 [...]
> --- Comment #4 from Boris Zbarsky … 2011-04-04 21:35:07 UTC ---
> For what it's worth, you can't do the desired thing here with CSS.  Gecko
> implemented a custom pseudo-class called :-moz-table-border-nonzero to match
> tables with a border attribute set.  For example, border=" 0 " needs to be
> treated just like border="0", and there's no way to do that in CSS.

Do you object to anything that isn't possible to express via (today's) 
CSS?

Btw, seem Google Docs is another one using <center> (in combination 
with HTML4 as well as HTML5 Doctype). E.g. see source of 
https://docs.google.com/document/d/.

-- 
leif halvard silli

Received on Saturday, 9 April 2011 23:07:24 UTC