From 60d6e8d8a3d9f7df7dfb06f666202c959efe71f9 Mon Sep 17 00:00:00 2001 From: Miyoung Shin Date: Wed, 27 Jan 2021 05:27:39 -0800 Subject: [PATCH] Fix the updating dir=auto issue when inserting text into a display:none This CL fixes the issue of updating dir=auto when inserting text into a display:none subtree by moving the SelfOrAncestorHasDirAutoAttribute flag from ComputedStyle to Node, and updates the flag of all descendants when dir attribute is changed from/to auto and the child is inserted. Bug: 576815 Change-Id: I229aa3df0720572df011e29da90d70a87d073bc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617169 Reviewed-by: Rune Lillesveen Reviewed-by: Mason Freed Commit-Queue: Miyoung Shin Cr-Commit-Position: refs/heads/master@{#847591} --- ...ir-selector-auto-direction-change-001.html | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 css/selectors/selectors-dir-selector-auto-direction-change-001.html diff --git a/css/selectors/selectors-dir-selector-auto-direction-change-001.html b/css/selectors/selectors-dir-selector-auto-direction-change-001.html new file mode 100644 index 00000000000000..f6c6393b08a940 --- /dev/null +++ b/css/selectors/selectors-dir-selector-auto-direction-change-001.html @@ -0,0 +1,34 @@ + + + + CSS Selectors Level 4 Test: Check for correctly updating :dir=auto when the the directionality is changed in a display:none subtree + + + + + + + + +

Test passes if there is a filled green square and no red.

+
+
+
رسمية
+
+
+
+ + + \ No newline at end of file