-
Notifications
You must be signed in to change notification settings - Fork 336
Description
I noticed a difference when porting a style that worked in Stylish, and works in userContent.css, but does not work in Stylus. I think it is a bug in Stylus.
The ancient site mudcat.org contains links to within the page such as #BS and #top.
I had userstyles containing
@-moz-document url("http://mudcat.org/"),
url("http://mudcat.org/index.cfm")
The normal entry is just 'mudcat.org' (the /index.cfm links are generated by the 'refresh' button). If I hit the #BS link it goes to http://mudcat.org/#BS
@-moz-document url("http://mudcat.org/") does match that URI in Stylish and userContent.css
In Stylus it doesn't: clicking the #BS link unapplies the userstyle. I have had to add an extra match:
URLs starting with http://mudcat.org/#
This seems only to be an issue when the document path is empty. So if I click 'refresh' and then the #BS link it goes to http://mudcat.org/index.cfm#BS which does match.
An example userstyle is
https://userstyles.org/styles/136780/mudcat-reorder-index-columns
I added the extra match there too - only afterwards realising it must have worked without it.
- Browser:
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0