icons: Do not allow stroke property via the style tag in svgs.

We already had a lint rule for this, but we did not disallow setting it
from the style side. There is no existing violation of this rule, but
it's still better to have this rule in place.
This commit is contained in:
Shubham Padia
2025-07-22 15:03:27 +00:00
committed by Tim Abbott
parent 22d8c725eb
commit e2011fcd97

View File

@@ -990,6 +990,11 @@ svg_rules = RuleList(
"description": "System icons ignore fill-rule values, so do not include the fill-rule property.",
"include_only": {"web/shared/icons/", "web/images/icons/"},
},
{
"pattern": "fill-rule:",
"description": "System icons ignore fill-rule values, so do not include the fill-rule property.",
"include_only": {"web/shared/icons/", "web/images/icons/"},
},
{
"pattern": r"stroke=(['\"])(.*?)\1",
"description": "System icons ignore stroke values, so do not include the stroke property.",