From af431743a5c1e9358bbc2fb5beda8852f8119079 Mon Sep 17 00:00:00 2001 From: lanyue-llk <270302213+lanyue-llk@users.noreply.github.com> Date: Thu, 12 Nov 2026 15:28:36 +0700 Subject: [PATCH] fix(css): report extraFields in getComputedStyleForNode --- moli-protocol/src/domains/css.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moli-protocol/src/domains/css.rs b/moli-protocol/src/domains/css.rs index 188c5b6bc93..b8faf072310 100644 --- a/moli-protocol/src/domains/css.rs +++ b/moli-protocol/src/domains/css.rs @@ -528,7 +528,8 @@ fn computed_style_result(properties: Vec<(String, String)>) -> Value { "computedStyle": properties .into_iter() .map(|(name, value)| json!({ "name": name, "value": value })) - .collect::>() + .collect::>(), + "extraFields": { "isAppearanceBase": false } }) } @@ -975,6 +976,10 @@ mod tests { .await; let computed = take_response_by_id(&mut ctx, 204); assert_eq!(computed["sessionId"], "SID-background"); + assert_eq!( + computed["result"]["extraFields"], + json!({ "isAppearanceBase": false }) + ); let computed_properties = computed["result"]["computedStyle"] .as_array() .expect("computedStyle array");