From 58cfe511ac561aa0a828246b5dfb1cfc1bf012cb Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Thu, 6 Aug 2026 09:59:19 +0800 Subject: [PATCH] render: CSS width/height are now children-content aware This takes https://github.com/lightpanda-io/browser/pull/3137 and applies is to the width/height CSS values (e.g. CSSStyleCSSStyle.getPropertyValue("width")) to provide a consistent width/height view of an element. Fixes slow rendering of https://inchurch.com.br --- src/browser/tests/element/position.html | 32 +++++++++++++++++++ src/browser/webapi/Element.zig | 16 +++++++--- .../webapi/css/CSSStyleDeclaration.zig | 16 ++++++---- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/src/browser/tests/element/position.html b/src/browser/tests/element/position.html index 2657f326b..2d653d46c 100644 --- a/src/browser/tests/element/position.html +++ b/src/browser/tests/element/position.html @@ -168,6 +168,38 @@ } + +