Browse Source

LibWeb: Don't relayout whenever a CSS transform changes

Transforms are a paint-level concept for us, so we should be okay to
only update the stacking context tree and repaint.

This makes a lot of CSS animations use way less CPU.
Andreas Kling 1 year ago
parent
commit
9caa0bda7d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibWeb/CSS/Properties.json

+ 1 - 0
Userland/Libraries/LibWeb/CSS/Properties.json

@@ -1978,6 +1978,7 @@
   "transform": {
     "inherited": false,
     "initial": "none",
+    "affects-layout": false,
     "affects-stacking-context": true
   },
   "transform-origin": {