css-triggers icon indicating copy to clipboard operation
css-triggers copied to clipboard

Section for What forces layout / reflow

Open yeomann opened this issue 9 years ago • 10 comments

Hi guys, from this question stack overflow question, may i suggest if we can add section for something like Layout trashing. For example, On site it is mentioned that transform property doesn't cause geometry change i.e no layout re-flow but i think it's worth mentioning that if its called through JavaScript then it does! Let me know your thoughts if i can contribute as well or if i am wrong?

yeomann avatar May 28 '16 11:05 yeomann

Changing a transform (even through JS) does not force relayout or repaint in Chrome. The gist by Paul Irish says that getComputedStyle() does cause relayout if a transform is set.

Currently, csstriggers shows that Gecko, Edge and Webkit do relayout when you change transform. However, @paullewis and I are believe that to be a bug of the respective DevTools and is not actually true.

surma avatar May 28 '16 12:05 surma

Hey @surma and @paullewis I do think it's worth adding this section. We should document what APIs cause a reflow, eg: getBoundingClientRect() offsetHeight, etc as we see the common read-modify-write pattern on the web and it would be nice if this was included.

gregwhitworth avatar Jan 19 '17 16:01 gregwhitworth

Ok, I'm not a hardcore designer but I know my away Photoshop - here's a quick mockup, don't focus on the data it's merely for finalizing the design. Let me know your thoughts. I recommend switching the domain to *triggers.com which most are actually available since technically these aren't CSS triggers but do force a style recalc and possibly layout. Let me know your thoughts @surma and @paullewis

css-triggers

gregwhitworth avatar Jan 21 '17 20:01 gregwhitworth

Yeah, @paullewis had already been messing around with potential domain names. Any suggestions welcome. EngineTriggers doesn’t sound too bad, but I’d like to convey that it’s web-related somehow.

Design looks A+ to me, great stuff :)

surma avatar Jan 21 '17 20:01 surma

This feels like the need for a twitter poll, UA Triggers, Browser Triggers, Pipeline Triggers

gregwhitworth avatar Jan 21 '17 20:01 gregwhitworth

Ha, let’s see what happens.

surma avatar Jan 21 '17 20:01 surma

So, technically “Browser triggers” won, but I liked the idea of just getting “jstriggers.com” (which I just bought) and having both URLs link to the same site. WDYT?

surma avatar Jan 26 '17 15:01 surma

Browser triggers is a mouthful to me. I like the idea having multiple domains linking to a same site.

oldergod avatar Jan 27 '17 00:01 oldergod

Be honest with everyone, trigger just makes me think of chiggers so whatever works for everyone else I'm good with. Just have the title swap out then when you change the tab * Triggers. I'm assuming you all are able to insert the data from Paul's post into the format?

gregwhitworth avatar Jan 27 '17 03:01 gregwhitworth