Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions feature-group-definitions/text-fragments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Text fragments
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to honor the precedent of MDN with "text fragments", maybe we could add some specificity to the end:

Suggested change
name: Text fragments
name: Text fragments in URLs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, what about our principle of shortest plausible name?

Copy link
Collaborator

@Elchi3 Elchi3 Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"URL references for text fragments"?

Maybe it helps to think about a name for this feature when also thinking about how we used to only have links to ids before. I would have called that "URL references to fragment identifiers" and not just "Fragment identifiers", I assume.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just "fragment identifiers" is what I would call that actually. I remember that from https://www.w3.org/TR/media-frags/ where "media fragments" were defined.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, what about our principle of shortest plausible name?

I guess I thought the existing name wasn't completely credible. Over in #732 (comment) you seemed unimpressed with "text fragments" alone. 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have shut up 😆

"Text fragments" is a bit generic, but it is the best name I can come up.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's merge this as written. If it ends up being too vague when it is presented to developers, I'm sure we'll get feedback about it.

description: Text fragments link to a snippet of text within a page. The browser may scroll, highlight, or otherwise bring that text to the reader's attention. The text is specified in a URL fragment on the form `#:~:text=snippet` and can be styled using the `::target-text` pseudo-element.
spec: https://wicg.github.io/scroll-to-text-fragment/
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/2901
caniuse: url-scroll-to-text-fragment
compat_features:
- api.Document.fragmentDirective
- api.FragmentDirective
- css.selectors.target-text