Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UA stylesheet rules to use :any-link instead of :visited or :link #10133

Open
Ahmad-S792 opened this issue Feb 10, 2024 · 6 comments
Open

Comments

@Ahmad-S792
Copy link

What is the issue with the HTML Standard?

Hi Team,

While looking into UA stylsheets rules across browsers (WebKit & Blink primiarly), both have:

a:any-link or a:-webkit-any-link

While in the web-spec [1]:

:link, :visited { text-decoration: underline; cursor: pointer; }

[1] https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

Should we update web-spec to use any-link, just a suggestion.

NOTE: SVG2 Web-Spec also have this issue, so we can update it as well.

Thanks!

@annevk
Copy link
Member

annevk commented Feb 10, 2024

For SVG please file an issue over at https://github.com/w3c/svgwg/issues/new.

cc @zcorpan

@Ahmad-S792
Copy link
Author

@annevk - Done for SVG2 Spec as well - w3c/svgwg#933 (for reference).

@zcorpan
Copy link
Member

zcorpan commented Feb 12, 2024

This seems OK. Gecko also uses :any-link: https://searchfox.org/mozilla-central/source/layout/style/res/ua.css#151

@domenic
Copy link
Member

domenic commented Feb 12, 2024

Does this have any observable effect? If this is just a style choice then I'd prefer we avoid the churn.

@zcorpan
Copy link
Member

zcorpan commented Feb 12, 2024

It's not observable to web content.

@annevk
Copy link
Member

annevk commented Feb 13, 2024

I don't think it's a priority or anything, but aligning with implementations makes sense to me for ease of ongoing maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants
@zcorpan @domenic @annevk @Ahmad-S792 and others