Re: 'initial' | 'inherit' inconsistency

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 UTC