8000
Skip to content

[scroll-animations-1] Define named view timeline phases and their usage. #7044 - #7710

Merged
fantasai merged 2 commits into
w3c:mainfrom
fantasai:view-timeline-phases
Sep 15, 2022
Merged

[scroll-animations-1] Define named view timeline phases and their usage. #7044#7710
fantasai merged 2 commits into
w3c:mainfrom
fantasai:view-timeline-phases

Conversation

@fantasai
@fantasai fantasai commented Sep 7, 2022
Copy link
Copy Markdown
Collaborator

Addresses remaining points in #7044 (comment)

Comment thread scroll-animations-1/Overview.bs Outdated
Comment thread scroll-animations-1/Overview.bs Outdated
Comment thread scroll-animations-1/Overview.bs Outdated
@fantasai
fantasai force-pushed the view-timeline-phases branch from 829f280 to 77d04a1 Compare September 8, 2022 00:09
[Exposed=Window]
interface AnimationTimeline {
readonly attribute double? currentTime;
CSSNumericValue? getCurrentTime(optional CSSOMString rangeName);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Still using spaces, for some reason?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So usually when I write preformatted code I indent my source with tabs and indent the preformatted code with spaces. Are you saying that Bikeshed converts tabs to spaces in the output?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes. It'll preserve spaces if you use them, but for pre it changes tabs into 4 spaces.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I'll do that in a separate commit for the whole file maybe. Since the rest of the IDL also uses 2-space indents here.

@fantasai
fantasai force-pushed the view-timeline-phases branch from c7369b5 to ba56688 Compare September 8, 2022 01:20
Comment thread scroll-animations-1/Overview.bs Outdated
The CSS ''@keyframes'' rule is extended thus:

<pre class="prod">
<<keyframe-selector>> = from | to | <<percentage>> | <<timeline-range-name>> <<percentage>>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should these animation property changes go in the css-animations spec?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Eventually, yes. Right now CSS Animations 2 is only an ED and it's not clear what the plan is for FPWD.

Comment thread scroll-animations-1/Overview.bs Outdated
Comment thread scroll-animations-1/update Outdated
Comment thread scroll-animations-1/Overview.bs Outdated
* the [=end=] [=border edge=] of the element’s [=principal box=]
coincides with the [=end=] edge of its [=view progress visibility range=].

<dt><dfn>entry</dfn>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be enter

@fantasai fantasai Sep 15, 2022
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should it? Kinda feels like phase names make more sense as nouns than verbs, but I'm open to debating it. Marked as an issue for now.

Represents the range during which the [=principal box=]
is either fully contained by, or fully covers,
its [=view progress visibility range=] within the [=scrollport=].
* 0% progress represents the earlier position at which:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similar remark to the one above about the “View Progress Visibility Range” (vpvr) – it depends on how you look at it when naming the edges.

Maybe split this up differently so it talks about subjects smaller/larger then the possible area?

  • For subjects whose size is smaller than the vpvr:
    • 0% progress = the end border edge of the element’s principal box coinciding with the end edge of the vpvr
    • 100% progress = the start border edge of the element’s principal box coinciding with the start edge of the vpvr
  • For subjects whose size is larger than the vpvr:
    • 0% progress = the start border edge of the element’s principal box coinciding with the start edge of the
    • 100% progress = the end border edge of the element’s principal box coinciding with the end edge of the

@fantasai fantasai Sep 15, 2022
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Similar remark to the one above about the “View Progress Visibility Range” (vpvr) – it depends on how you look at it when naming the edges.

Edges are named according to the writing mode, this is already defined at the bottom of the section.

Maybe split this up differently so it talks about subjects smaller/larger then the possible area?

Sure, could do that. Maybe in a follow-up commit? It does mess with parallel construction a bit and then have to pick which condition handles the "equal to" situation...

* 100% is equivalent to 100% of the ''animation-timeline-range/cover'' range.
</dl>

ISSUE: Insert diagrams.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can help with this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That would be super helpful!

@fantasai
fantasai force-pushed the view-timeline-phases branch from ba56688 to c9e4be5 Compare September 15, 2022 16:57
@fantasai
fantasai force-pushed the view-timeline-phases branch from c9e4be5 to a21abcc Compare September 15, 2022 17:01
@fantasai
fantasai merged commit 4afadca into w3c:main Sep 15, 2022
@fantasai
fantasai deleted the view-timeline-phases branch September 15, 2022 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0