This is an automated email from the ASF dual-hosted git repository.

greg-dove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 5ff463066645a83dca0a89962f63a20e5ef0951c
Author: greg-dove <[email protected]>
AuthorDate: Mon Jun 15 18:21:29 2026 +0200

    handle '#' in values when creating selectors
---
 .../main/royale/org/apache/royale/style/stylebeads/LeafStyleBase.as | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/LeafStyleBase.as
 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/LeafStyleBase.as
index 1ef5e5162b..5c71c7e78c 100644
--- 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/LeafStyleBase.as
+++ 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/LeafStyleBase.as
@@ -200,7 +200,11 @@ package org.apache.royale.style.stylebeads
                                return "";
                        return ruleBase + ":" + calculatedRuleValue + ";";
                }
-               private static const SANITIZE_REGEX:RegExp = 
/[\s\.\(\)\+\*\/\[\],]/g;
+               // Note: '#' is included so that values containing hex colors 
(e.g.
+               // "conic-gradient(... #ccc ...)") do not produce a class name 
with
+               // literal '#' chars, which the browser would otherwise parse 
as a
+               // chain of id selectors (.class#id#id...) that matches nothing.
+               private static const SANITIZE_REGEX:RegExp = 
/[\s\.\(\)\+\*\/\[\],#]/g;
                private static const PERCENT_REGEX:RegExp = /%/g;
                protected function sanitizeSelector(value:String):String
                {

Reply via email to