Re: [CSS] Rules for parsing and compatibility

Boris Zbarsky wrote:

> Or if it can't be applied? 
>  What does "applied" mean?

Probably cases where there is declaration which doesn't apply for 
the current element, like 'margin-top' for 'inline' element or may 
be property for different kind of media not supported by the 
particular UA, but that shouldn't be taken into account because:

  * in the first case: 'margin-top' is assigned and could be applied 
later if the element become 'block' element. Further, there may are 
and in practice there are always broken implementations and nobody 
is aiming to invent an AI for detecting such UA errors to be 
incorporated in the CSS spec.

  * in the second case: authors should be noted they shouldn't mix 
properties applying to different kind of media because a particular 
UA could possibly not understand them therefore invalidating the 
other declarations.

Generally such "test" blocks should are relatively short and most of 
the style would go in the "normal" style sheet.

-- 
Stanimir

Received on Tuesday, 30 December 2003 20:27:27 UTC