From 7ff175ae2ed3e331b9cc80330f2759ddf6ed3c9a Mon Sep 17 00:00:00 2001 From: Igor Kurkov Date: Wed, 17 May 2023 23:47:15 +0200 Subject: [PATCH] add parsed font-weight value to highlight-overlay card --- inspector_overlay/tool_highlight.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inspector_overlay/tool_highlight.ts b/inspector_overlay/tool_highlight.ts index 1946463d0d7..bf16b6ac5ef 100644 --- a/inspector_overlay/tool_highlight.ts +++ b/inspector_overlay/tool_highlight.ts @@ -490,8 +490,9 @@ export function createElementDescription(elementInfo: ElementInfo, colorFormat: const fontFamily = style['font-family']; const fontSize = style['font-size']; - if (fontFamily && fontSize !== '0px') { - addTextRow('Font', `${fontSize} ${fontFamily}`); + const fontWeight = style['font-weight']; + if (fontFamily && fontWeight && fontSize !== '0px') { + addTextRow('Font', `${fontSize} ${fontWeight} ${fontFamily}`); } const bgColor = style['background-color'];