News for hackers. Stuff that matters.
Re:CSS Triggers by blue1 on Friday September 15, 2017 @03:26AM (#15255314)
An explanation of what this is would be good.
Re:CSS Triggers by robin_reala on Friday September 15, 2017 @03:36AM (#15255347)
Using certain CSS properties will trigger various phases of rendering in browsers. For performance reasons you want to do the minimum amount of work possible.

An example: adjusting the width of an object will understandably cause the browser to relayout the page in every browser. But what if you just wanted an animated bounce effect? You could animate the width of the object, but in practice a scale transform would perform much better in most browsers as it typically doesn’t trigger a relayout.

So this page just gives you information about which phases are triggered by which properties in which rendering engines.

Re:CSS Triggers by shangxiao on Friday September 15, 2017 @03:40AM (#15255366)
I believe blue1 meant that the page could do with a short explanation at the top… I was wondering the same thing until I realised what it was about.
Re:CSS Triggers by oneeyedpigeon on Friday September 15, 2017 @04:34AM (#15255573)
The people who need to know this will understand what it is immediately, but I agree that a one-liner at the top couldn't hurt.