Re: no-cascade proposition

No, not exactly what I meant.
I really meant, treat the element as if it was a root element *only* for
its inheritance model, not the cascade or whatever else. Ie: disable all
inheritance to the element.
If some property of the element has the value "inherit", just act *for
this property* as if the element had nothing to inherit from.
But child elements could of course inherit from this element.

This would only change the inheritance model, not the cascade, because
it would really be too complex (and probably impossible) to handle.

Reading http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit :

    If the 'inherit' value is set on the root element, the property is
assigned its initial value.

So i guess we could add something like that to this definition to
express exactly what i meant :

    If the 'inherit' value is set on the root element, [or if the
element's inheritance is disabled by means such as "disable-inheritance:
all;", ]the property is assigned its initial value.

Really, it should only affect inheritance.

Sylvain Galineau a écrit :
>> Well, I thought it could just do "as if" the given element was a root
>> element (had no parent), and thus considered to have nothing to inherit
>> from.
>>     
> So you could define arbitrary style roots anywhere in the document using CSS. What happens at the DOM level e.g. would a library such as jQuery be able to skip these 'embedded roots' without writing custom code for it ?
>
> I like the concept but explicit markup mechanisms are much better here imo.
>
>   

Received on Sunday, 14 December 2008 09:49:43 UTC