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

[selectors-4] Add functional notation to :local-link selector? :local-link(n)? #2814

Closed
jonjohnjohnson opened this issue Jun 25, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@jonjohnjohnson
Copy link

commented Jun 25, 2018

https://drafts.csswg.org/selectors-4/#the-current-pseudo

See -> https://wiki.csswg.org/ideas/current-url-selector

The current link pseudo-class selector would have the following pattern: E:current(n) {}

Please read the wiki page linked above, I won't rehash all it has to say here. I am wondering if this was ever shot down and if not, what folks think about it now? Because I cannot help but imagine it as extremely useful, especially keeping in mind the :has() relational pseudo-class allowing a "current" anchors parent element to also be selected.

The key here being, the functional notation as opposed to the the current language of the spec.

Edited - :local-link is the selector in the spec

@Loirooriol

This comment has been minimized.

Copy link
Collaborator

commented Jun 28, 2018

@jonjohnjohnson

This comment has been minimized.

Copy link
Author

commented Jun 28, 2018

@Loirooriol oh I forgot seeing it had a new name a while back, but still missing the functional notation for directory depth, which would enable particular breadcrumb and local/external stylings? Maybe I should add "functional notation" to the title?

@jonjohnjohnson jonjohnjohnson changed the title [selectors-4] Pick up the "current url" selector idea? [selectors-4] Add functional notation to :local-link selector? :local-link(n)? Jun 28, 2018

@fantasai

This comment has been minimized.

Copy link
Collaborator

commented Jul 24, 2018

@jonjohnjohnson This was already proposed, see https://www.w3.org/TR/2011/WD-selectors4-20110929/#local-pseudo It was resolved to simplify the feature as in the current ED.

@fantasai

This comment has been minimized.

Copy link
Collaborator

commented Jul 24, 2018

Sorry, it was resolved to drop it, and then we added the simplified version back. See #2010 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.