From 9caa0bda7d4028ab0ba21fd029ea9945e8c9a13c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 27 Jul 2023 09:54:45 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/CSS/Properties.json | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index 52dd5575fb..a58ba98e52 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -1978,6 +1978,7 @@ "transform": { "inherited": false, "initial": "none", + "affects-layout": false, "affects-stacking-context": true }, "transform-origin": {