Re: [css-d] Improving your CSS performance

2011-02-14 Thread L. David Baron
On Tuesday 2011-02-15 05:05 +1100, Alan Gresley wrote: > This is interesting and you mention all properties and > most-specific. Taking padding, background and border for example, > would the following CSS allow the computation to happen quicker. > > [dir*="t"] * { > padding-top: 0; > padding-

Re: [css-d] Improving your CSS performance

2011-02-14 Thread Alan Gresley
On 15/02/2011 3:34 AM, L. David Baron wrote: On Monday 2011-02-14 15:27 +, Barney Carroll wrote: In any case, re-specifying sub-properties via a short-hand over and over again through inheritance is actually detrimental to CSS performance — having more properties enforced unnecessarily is ba

Re: [css-d] Improving your CSS performance

2011-02-14 Thread L. David Baron
On Monday 2011-02-14 15:27 +, Barney Carroll wrote: > In any case, re-specifying sub-properties via a > short-hand over and over again through inheritance is actually detrimental > to CSS performance — having more properties enforced unnecessarily is bad on > that front. In Gecko, the opposite

Re: [css-d] Improving your CSS performance

2011-02-14 Thread Barney Carroll
David, Shorthands override everything within their scope, effectively interrupting the cascade, so it's best to avoid them unless that's specifically what you're trying to do. In any case, re-specifying sub-properties via a short-hand over and over again through inheritance is actually detrimental

Re: [css-d] Improving your CSS performance

2011-02-14 Thread Gabriele Romanato
Hi David, this is a good question. It's not clear what values use browsers as their default for certain elements, because specs don't say much about it. For elements such as a div or headings, their values are always 0, so you got a good point here. For form elements, instead, the padding

Re: [css-d] Improving your CSS performance

2011-02-14 Thread David J. Hark
On 2/12/2011 5:02 AM, Gabriele Romanato wrote: Some reflections collected during my experience on production web sites: http://onwebdev.blogspot.com/2011/02/improving-your-css-performance.html HTH :-) http://www.css-zibaldone.com http://www.css-zibaldone.com/test/ (English) http://www.css-zi

[css-d] Improving your CSS performance

2011-02-12 Thread Gabriele Romanato
Some reflections collected during my experience on production web sites: http://onwebdev.blogspot.com/2011/02/improving-your-css-performance.html HTH :-) http://www.css-zibaldone.com http://www.css-zibaldone.com/test/ (English) http://www.css-zibaldone.com/articles/ (English) http://onwebdev