window.getComputedStyle() will force layout in one of 3 conditions: Quite a lot of properties/methods force, but I haven't made an exhaustive list. It makes me confused. Here's a demo https://8mxws.csb.app/ Q9. Triggers recalculation of the layout dimensions. _ moves an element completely out of the page's normal layout flow, like it is sitting on its own separate layer. Changingbackground-attachmentdoes not trigger any geometry changes, which is good. - [ ] the "Can I Use" website - [x] the Web Platform Tests Suite - [ ] the CSS . When you animate the left/top properties, it triggers the CSS layout recalculation which takes up quite a lot of resources, since it happens in the main thread of the HTML page. You signed in with another tab or window. Q3. Painting is typically a super expensive operation, so you should be cautious. Consider . As a whole these questions on CSS will improve your understanding of the subject. top opacity width height Q7. I ran two tests by using the Performance Tab. Wait, is this a read-write cycle? To subscribe to this RSS feed, copy and paste this URL into your RSS reader. In the worst case script can enter a write / read loop where it sets a style, reads a property that forces synchronous layout or style recalculation, and then repeats this process. How would you change the value to plum? 3 console.log("width", entry.contentRect.width); What is the