From c9a08c2f0c239e1cb6213ad0b25d2039a7dadbc2 Mon Sep 17 00:00:00 2001 From: Stephen Chenney Date: Tue, 10 Dec 2024 06:20:25 -0800 Subject: [PATCH] Fix a crash in CSS Custom Property application The root highlight pseudo styles do not get recalculated when a CSS custom property is registered, causing crashes when that property is used in the pseudo class. Fix it by checking for a change in InitialData in Element::CalculateHighlightRecalc. Add a test for this case. Bug: 381362600 Change-Id: Iabeaf88bedecfb0ee039b2e98151750844c7ab7a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6077895 Reviewed-by: Anders Hartvoll Ruud Commit-Queue: Stephen Chenney Cr-Commit-Position: refs/heads/main@{#1394243} --- .../highlight-cascade-010.html | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 css/css-pseudo/highlight-cascade/highlight-cascade-010.html diff --git a/css/css-pseudo/highlight-cascade/highlight-cascade-010.html b/css/css-pseudo/highlight-cascade/highlight-cascade-010.html new file mode 100644 index 00000000000000..bbfcffb16aa280 --- /dev/null +++ b/css/css-pseudo/highlight-cascade/highlight-cascade-010.html @@ -0,0 +1,29 @@ + + +CSS Pseudo-Elements Test: highlight styling: late property registration updates highlights + + + + + + +
Text wth a spelling error
+