Can you send me a simple test case for this scenario so I can see if it is a bug or you are not
implementing it correctly.

What should be happening is we read the base skin in and merge in the skin extension after.
The skin extensions css properties take precedence. They extend the base skin's properties.

When we write out the css-2 stylesheet, we have a performance step where we group all the
selectors with the same css properties together. This will then appear to be reordering the properties.

Instead of the selectors being generated in the order you wrote them:
.af_foo {font-size: 8px; color: red; font-weight: bold; font-style: italic; font-family: Tahoma}
.af_bar {font-size: 12px; color: black; border-width: 1px}
.af_zoo {font-size: 8px; color: red; font-weight: bold; font-style: italic; font-family: Tahoma}
.af_xyz {color: red}
.af_abc {font-size: 12px; color: black; border-width: 1px}

You'll see them grouped together:
.af_foo, .af_zoo {font-size: 8px; color: red; font-weight: bold;font-style: italic; font-family: Tahoma}
.af_bar, .af_abc {font-size: 12px; color: black; border-width: 1px}
.af_xyz {color: red}


- Jeanne

Cristi Toth wrote:
My problem is even bigger :(
as Simon Lessard already noticed in StyleSheetDocument, on line 477
the method: private StyleNode _resolveStyle(...)  is really buggy

The problem is that it takes all the style definitions of a selector / element in a 'random' order
and the properties in the first instances are being overwritten by the same properties from the later instances
This is not good...
At least it would have been ... ok, if the definitions from the skin extension style-sheet would have been last
but in my example, the base-desktop.xss seems to be last,
so even if I inhibit the annoying { margin-top: 8px }  property in the skin,
it is still overwritten by the instance in base-desktop.xss, which is last (so it has greater priority)

This is serious trouble
and I don't know how to override this behavior in my current project! (I can't wait for a snapshot fix)
Can anybody suggest some solution?

Is there an issue on this problem ?

thanks,
Cristi Toth

-------------
Codebeat
www.codebeat.ro


On 8/10/07, Cristi Toth <[EMAIL PROTECTED]> wrote:
Hi!

I found a strange default value for IE browser: body { margin-top: 8px } in base-desktop.xss
on line 3943:

<styleSheet browsers="ie">
 
  <style selector="body">
    <property name="margin-top">8px</property>
  </style>
...

Why on earth would anybody need this setting?

I lost some valuable time on finding this...
And its effect was really annoying!


--
Cristi Toth
-------------
Codebeat
www.codebeat.ro



--

Reply via email to