Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[selectors] Should empty string link match :visited? #2884
Should this match
An empty URL points to the base URL, so assuming there is no
However, there are various WPT tests like https://github.com/web-platform-tests/wpt/blob/6562ed003eebcd25d093ae52d68de28a0ae0d786/css/CSS2/selectors/link-visited-selector-001.xht which are manual. If the above is supposed to work, why not make them automated by linking the current page?
And Edge seems to have some weird bugs, like
document.querySelector('a').href = location.href
So can you confirm that this is supposed to work?
Yes. There's nothing special about href="", as long as it points to the current page (depends on the BASE tag), it should be considered visible. I can't seem to duplicate your problems here -- the jsbin works, local files containing
work as expected. So closing out the issue as invalid.
Ohyeah, the reason the tests there are manual are because all tests during CSS2 development were manual: we didn't have an automation system, so there wasn't a perceived benefit in making them automatable. :) Now that we have automation systems, it would be fine to update them to be automated.
Even in Edge? It still fails for me there. But if it's supposed to work instead of undefined behavior, then it's a bug.
So I guess https://cs.chromium.org/search/?q=file:third_party\/WebKit\/LayoutTests\/fast\/css\/logical-box-border-color-visited-link-\d%2B\.html and https://searchfox.org/mozilla-central/search?q=&case=false®exp=false&path=layout%2Freftests%2Fcss-visited%2Flogical-box-border-color-visited-link- could be moved to WPT.