On Nov 17, 2013, at 11:32 PM, Barney Carroll wrote:

> This sounds uncannily familiar to Georg's reported bug for Chrome v31 3 days 
> ago on this list whereby stateful re-rendering didn't happen. His example 
> involved invisible checkboxes expanding content via the :checked pseudo-class.
> 
> My take on this is that the Chrome team did some aggressive over-optimisation 
> on the rendering engine for v31 whereby state changes do not perform a proper 
> repaint, for the benefit of not having to recalculate layout whenever a user 
> mouseovers each individual element.
> 
> I've previously managed to deal with these increasingly common Chrome 
> rendering bugs by hacking in -webkit-transform: translateZ( 0 ); on the 
> troublesome element (which brings it into a separate rendering thread that's 
> given more priority) — another trick which has worked for me in the past is 
> applying a CSS animation on a property which could in theory modify the 
> layout properties of the element, but in practice don't — such as animating a 
> bottom margin when there is no following content, or the container has 
> overflow hidden.
> 
> The problem with these methods is that they're obvious hacks but they also 
> eat at performance and can sometimes cause further bugs of their own — still 
> I'd appreciate you're trying them out just to see if they do indeed have any 
> effect.
> 
> The general topic of performance-based CSS hacks is generally quite 
> interesting — I've recently read about reliable, measurable (~2x) layout 
> repaint speeds on changes for elements that have fixed positioning and fixed 
> heights, for example. On the one hand the rapid release cycle for Chrome is 
> fantastic, but at the same time the moving target for bugs is exasperating. 
> Hopefully the next release fixes this and comes out in the next week!

Just currious, but wouldn't putting just...

zoom: 1; 

on the element do the same thing as far as the repaint?
Tha isn't a hack last time I checked.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to