When writing an attribute selector with a string literal with a colon in it, shadycss puts the scoped-style rules INSIDE THE STRING LITERAL right after the colon. e.g.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When writing an attribute selector with a string literal with a colon in it, shadycss puts the scoped-style rules INSIDE THE STRING LITERAL right after the colon. e.g.
iron-icon[icon="emerson-icons:onhold"]
should get rewritten as
iron-icon[icon="emerson-icons:onhold"]:not([style-scope]):not(.style-scope)
but instead becomes
iron-icon[icon="emerson-icons:not([style-scope]):not(.style-scope):onhold"]
I was able to work around the issue by using the CSS character code for the colon char
iron-icon[icon="emerson-icons\003Aonhold"]
is rewritten as
iron-icon[icon="emerson-icons\003Aonhold"]:not([style-scope]):not(.style-scope)
I tried to write a test for this but the tests seem to be broken, see my other ticket https://github.com/webcomponents/shadycss/issues/118