W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] <reset> element?

From: Asbjørn Ulsberg <asbjorn@tigerstaden.no>
Date: Sat, 16 Dec 2006 00:52:24 +0100
Message-ID: <op.tkmklmlc16f2qb@quark>
On Fri, 15 Dec 2006 18:26:53 +0100, Dean Edwards <dean at edwards.name> wrote:

> Anne van Kesteren wrote:
>> Dean Edwards wrote:
>>> Thoughts?
>>  My thought is that this is a CSS issue and not a markup issue.

I agree with Anne; this is a CSS issue.

> It feels right to fix it with markup.

I completely disagree! :) It feels very wrong to fix a CSS issue with  
markup. For what other uses than styling does <reset> make sense? What  
semantic meaning does it give the content inside it?

A much better solution is a 'reset' property or property value in CSS that  
can reset different inherited and cascaded property values. I can picture  
something like this:

#box {
   color : red;
   text-align: center;

#box div {
   reset : color; /* resets the color to the browser's default value */

#box span {
   reset : *; /* resets all cascading and inherited properties */

I think this is actually something lacking in CSS and something that  
indeed should be proposed to the CSS WG.

Asbj?rn Ulsberg     -=|=-    http://virtuelvis.com/quark/
?He's a loathsome offensive brute, yet I can't look away?
Received on Friday, 15 December 2006 15:52:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:51 UTC