-
Notifications
You must be signed in to change notification settings - Fork 23k
Update view-timeline-name property
#42114
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
base: main
Are you sure you want to change the base?
Conversation
Updated the description and syntax for the `view-timeline-name` property to clarify its usage and allowed values. include multiple and globalss
|
Preview URLs Flaws (10)URL:
(comment last updated: 2025-11-25 16:39:21) |
Added a fallback message for unsupported browsers.
files/en-us/web/css/reference/properties/view-timeline-name/index.md
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| } | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ``` | |
| ```` | |
files/en-us/web/css/reference/properties/view-timeline-name/index.md
Outdated
Show resolved
Hide resolved
Removed unnecessary code block for hidden CSS.
dipikabh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @estelle! I've added a few comments
| - : The timeline has no name. This is the default. | ||
| - `<dashed-ident>` | ||
| - : An arbitrary custom identifier defining a name for a view progress timeline, which can then be referenced in an [`animation-timeline`](/en-US/docs/Web/CSS/Reference/Properties/animation-timeline) property. | ||
| - : A {{cssxref("dashed-ident")}} defining a name for a view progress timeline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about we move some of the relevant info from "Description" here:
| - : A {{cssxref("dashed-ident")}} defining a name for a view progress timeline. | |
| - : Specifies a comma-separated list of {{cssxref("dashed-ident")}} custom name identifiers. All `<dashed-ident>` values must start with `--`, which helps avoid name clashes with standard CSS keywords. |
|
|
||
| - `none` | ||
| - : The timeline has no name. | ||
| - : The timeline has no name. This is the default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - : The timeline has no name. This is the default. | |
| - : Indicates that the timeline has no name. This is the default value. |
| > If the scroller element does not overflow its container in the axis dimension or if the overflow is hidden or clipped, no scroll progress timeline will be created. | ||
| The `view-timeline-name`, {{cssxref("view-timeline-axis")}} and {{cssxref("view-timeline-inset")}} properties can also be set using the {{cssxref("view-timeline")}} shorthand property. | ||
| The **`view-timeline-name`** [CSS](/en-US/docs/Web/CSS) property specifies the names for the [named view progress timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines#named_view_progress_timeline) associated with the element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to indicate that it can be used to specify one or more names
| The **`view-timeline-name`** [CSS](/en-US/docs/Web/CSS) property specifies the names for the [named view progress timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines#named_view_progress_timeline) associated with the element. | |
| The **`view-timeline-name`** [CSS](/en-US/docs/Web/CSS) property specifies the names of one or more [named view progress timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines#named_view_progress_timeline) associated with the element. |
| /* Keyword value */ | ||
| view-timeline-name: none; | ||
|
|
||
| /* CSS identifier */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we say "Custom identifier" instead?
| The `view-timeline-name` property is used to define the name of a _named view progress timeline_, which is progressed through based on the change in visibility of an element (known as the _subject_) inside a scrollable element (_scroller_). The `view-timeline-name`, {{cssxref("view-timeline-axis")}} and {{cssxref("view-timeline-inset")}} properties can also be set using the {{cssxref("view-timeline")}} shorthand property. | ||
|
|
||
| The `view-timeline-name` property is set on the subject. The value is the keyword `none` or a comma-separated list of `<dashed-ident>` custom name identifiers. All `<dashed-ident>` values must start with `--`, which helps avoid name clashes with standard CSS keywords. The names can then be referenced in {{cssxref("animation-timeline")}} declarations to indicate the element that will be animated as the timeline progresses. | ||
|
|
||
| If the subject's named scroller element does not overflow its container in the [axis dimension](/en-US/docs/Web/CSS/view-timeline-axis) or if the overflow is hidden or clipped, no scroll progress timeline will be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest a different flow. Currently the text is going back and forth between the concept and the property. WDYT about something along these lines:
| The `view-timeline-name` property is used to define the name of a _named view progress timeline_, which is progressed through based on the change in visibility of an element (known as the _subject_) inside a scrollable element (_scroller_). The `view-timeline-name`, {{cssxref("view-timeline-axis")}} and {{cssxref("view-timeline-inset")}} properties can also be set using the {{cssxref("view-timeline")}} shorthand property. | |
| The `view-timeline-name` property is set on the subject. The value is the keyword `none` or a comma-separated list of `<dashed-ident>` custom name identifiers. All `<dashed-ident>` values must start with `--`, which helps avoid name clashes with standard CSS keywords. The names can then be referenced in {{cssxref("animation-timeline")}} declarations to indicate the element that will be animated as the timeline progresses. | |
| If the subject's named scroller element does not overflow its container in the [axis dimension](/en-US/docs/Web/CSS/view-timeline-axis) or if the overflow is hidden or clipped, no scroll progress timeline will be created. | |
| A view progress timeline is progressed through based on the change in visibility of an element, called the _subject_, inside a scrollable element, called the _scroller_. The `view-timeline-name` property is set on the subject. If the subject's named scroller element does not overflow its container in the [axis dimension](/en-US/docs/Web/CSS/view-timeline-axis) or if the overflow is hidden or clipped, no scroll progress timeline will be created. | |
| You can also set `view-timeline-name` by using the {{cssxref("view-timeline")}} shorthand property. If you specify `<dashed-ident>` values, the names can be referenced in {{cssxref("animation-timeline")}} declarations to indicate the element that will be animated as the timeline progresses. |
Updated the description and syntax for the
view-timeline-nameproperty to clarify its usage and allowed values. include multiple and globalss