Re: Best ways to avoid unwelcome CSS cascade side effects?

2009-09-14 Thread Alexander Cherednichenko
From what I got here, GWT styling style :) means that you do not heavily use 'global' CSS selectors; most of the styling work is done with classes. we're working on large application, and only 'global' styles we use are related to quirks, not to styling. I'm using some more complex selectors

Re: Best ways to avoid unwelcome CSS cascade side effects?

2009-09-14 Thread Zak
One approach is to write and apply your stylenames in an object- oriented way. The idea is to use multiple classes per element, each adding on a bit more style definition (kind of like super/subclass relationships in Java). If you define these styles in a location- independent way (this style is

Best ways to avoid unwelcome CSS cascade side effects?

2009-09-12 Thread John Gunther
I still recall an incredulous friend's exasperation: I merely changed the value of X and, inexplicably, a completely different thing, Y, now has a different value, too! An obscure side effect of the CSS cascade? No. FORTRAN COMMON blocks. Here are two cases where I or those I know got burned by