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 #933

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

Comments

@Ahmad-S792
Copy link

Hi Team,

This is mirror reference to issue raised in HTML Standard: whatwg/html#10133 , where it is proposed to align all standards with current at least two browsers implementation (Chrome & Safari) to start leveraging :any-link:

Currently, the UA stylesheet rules in SVG2 Spec [1] show:

:link, :visited {
  cursor: pointer;
}

While Chrome has it as:

a:-webkit-any-link

In Safari as part of PR: WebKit/WebKit#24154, I was trying to use same as web-spec but later it was suggested that it would be better to align all HTML & SVG to have :any-link.

[1] https://svgwg.org/svg2-draft/styling.html#UAStyleSheet

I am raising this to align this across the board.

Thanks!

@Ahmad-S792
Copy link
Author

@heycam - Any guidance, who can comment and share input on this? Sorry - first time in SVGWG world.

@caribouW3
Copy link
Member

The SVG2 spec has a reference to the CSS2 recommendation. If it were to use more recent CSS features like the :any-link selector, there should be a reference to the corresponding CSS specification. This means that SVG2 support would mandate support for CSS Selectors level 4 (which is a WD, at the moment).

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

No branches or pull requests

2 participants