Robert O'Callahan wrote:

On Thu, Jan 23, 2014 at 12:58 PM, Neil <n...@parkwaycc.co.uk> wrote:

I have a vague memory of seeing either a m.d.platform or blog post mentioning 
the use of transforms as an alternative to absolute or relative positioning, in 
particular avoiding reflows by its use of layers.

Does this apply to all transforms, in particular translate(0, 0)? Would it 
therefore be a bad idea to sprinkle translate(0, 0) on elements that never end 
up with a transform? What happens when you remove the transform?

Only animated or 3D transforms get this treatment. Sprinkling translate(0,0) 
everywhere won't have much effect, other than making every element a CSS 
stacking context and slowing down painting a little bit.
Fair enough, I was just wondering whether it was worth optimising some code for the common case of a zero translation. (Mind you I don't know what the effect, if any, of an explicit zero margin style is on an element whose computed margin is already zero.)

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to