Re: [csswg-drafts] [css-pseudo-4] Add a highlight pseudo-element for scroll-to-text (#5522)

> If I'm understanding correctly, this is basically like the :target element, except it's a pseudo-element, right?

`::target-text` sounds pretty good, I hadn't thought of that. `:target` is the element matching a fragment anchor id, and then `::target-text` would be the same but for text fragments.



-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5522#issuecomment-705243202 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 October 2020 23:20:36 UTC