incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] css generation and rule ordering
Date Tue, 02 Jan 2007 02:28:22 GMT
No, there isn't a way to prevent the scrambling.  I generally
make a practice of avoiding order-dependent rules.  IIRC,
ordering isn't important if you have varying specificities;
and if you're relying on ordering, your CSS may be getting
just a touch overwhelming...

-- Adam



On 12/30/06, Renzo Tomaselli <renzo.tomaselli@tecnotp.it> wrote:
>
>  Hi, I noticed that Trinidad CSS generation occurs through some kind of
> optimization, which groups together CSS rules having exactly the same
> contents. This mixes up component rules and custom rules, thus scrambling
> their original postions.
>  Since CSS rule matching is highly position-dependent, the above mixup
> yields unpleasant side effects. E.i. html elements with multiple classes get
> rendered by the last class attribute found in the CSS file. If position
> changes, rendering can change.
>  I worked around such issue by adding dummy rule elements, so that
> comparison for merging fails and this works fine, since position is
> preserved.
>  Is there any cleaner way to prevent this scrambling or can we even disable
> it at all ?
>  Thanks -- Renzo
>
>

Mime
View raw message