W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: 'initial' | 'inherit' inconsistency

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 29 Oct 2010 22:05:44 -0400
Message-ID: <4CCB7D78.4020504@mit.edu>
To: Brad Kemper <brad.kemper@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 10/29/10 8:23 PM, Brad Kemper wrote:
> That's a good point. I don't know when I am ever expected to use it, or what it is good for. Why would I ever write 'padding:initial' instead of 'padding:0'?

You wouldn't.

On the other hand, "border: initial" is shorter than "border: none 
medium currentColor".

And there is no way to express "quotes: initial" in CSS at this time 
(since the initial value is UA-dependent).  Same for "font-family: 
initial".  And "color: initial".

And "text-align: initial" can't be represented in CSS other than as 
"initial" at the moment, though there have been proposals to change that.

Whether shorthands and whatever values have initial values that can't be 
otherwise specified are sufficient justification is a separate issue.

 > Now if there was a keyword to reset an element to what the UA 
stylesheet had for it, that could be useful.

Sure.  I'd argue that "use the user's default font" is somewhat useful 
too.... ;)  Of course the "use the UA stylesheet value" would be pretty 
close to that for 'font'.

-Boris
Received on Saturday, 30 October 2010 02:06:17 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:33 GMT