- From: Robert Flack via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Jun 2023 00:10:11 +0000
- To: public-css-archive@w3.org
Making `timeline-scope` block propagation of a named timeline allows subtrees to use named timelines without worrying about conflicts with ancestors using the same names. e.g. ```html <div style="timeline-scope: --timeline"> .... <div id="subtree" style="timeline-scope: --timeline"> ... <!-- This is the --timeline used by anything inside of #subtree --> <div id="inner-timeline" style="view-timeline: --timeline;"></div> </div> ... <!-- This is the --timeline used by anything outside of #subtree --> <div id="outer-timeline" style="view-timeline: --timeline;"></div> </div> ``` The downside is if you actually wanted to use the `#inner-timeline` named timeline you wouldn't have access to it without removing the intermediate `timeline-scope` declaration. Removing this would not break things in pages which did not separately define a timeline in the outer scope so as long as a developer controls the subtree it seems flexible. IMO this allows for similar setups to custom variables where the `#subtree` can redefine a timeline such that it has a different timeline for that subtree. If we don't block the propagation, the `--timeline` in the outer tree becomes invalid due to multiple timelines attaching to that name and so developers have to be careful to not use names that could conflict with an ancestor named timeline. -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8915#issuecomment-1581678596 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 June 2023 00:10:12 UTC