When using attribute selectors that contain URLs, the URL is highlighted as if it were a CSS property (separated at the : character), and the highlighting seems to become broken afterwards:
I'd expect the URL to be treated as a string. In fact, I don't think any attribute selector value, other than those for the style attribute (e.g. span[style="padding:2em"]) to be highlighted as css key-value properties.
Describe the bug
When using attribute selectors that contain URLs, the URL is highlighted as if it were a CSS property (separated at the
:
character), and the highlighting seems to become broken afterwards:This code:
...is highligted like this:
Compare with:
Browser
Tested in Chromium-based (Brave) and Firefox.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect the URL to be treated as a string. In fact, I don't think any attribute selector value, other than those for the style attribute (e.g.
span[style="padding:2em"]
) to be highlighted as css key-value properties.Screenshots
Added above.
Additional context
N/A.