Open Bug 2015606 Opened 3 months ago Updated 3 months ago

[web-animations-2] Figure out a way to ship timeline ranges by either blocking on shipping TypedOM or shipping a sub-set of TypedOM

Categories

(Core :: DOM: CSS Object Model, task)

task

Tracking

()

People

(Reporter: emilio, Unassigned)

References

(Depends on 1 open bug, Blocks 4 open bugs)

Details

In bug 1810248 a dependency on TypedOM was introduced from scroll driven animations. It seems a bunch of the timeline getters should return CSSNumericValues, which is fine, but it really entangles this with TypedOM.

TypedOM is getting worked on (thanks Jan!) and I think pretty much everything we need (which is just returning percentages) should work, implementation wise.

But we need to decide:

  • Are we ok blocking shipping scroll timelines on shipping TypedOM?
  • Should we try to do some partial shipping of TypedOM / ship the subset scroll timelines depend on?

The first one would be ideal of course if timeline (no pun intended) allows. But the second might be an option to consider. It's not risk-free tho, it seems not totally unreasonable to do:

if (!!window.CSSNumericValue) {
  element.attributeStyleMap()....
}

Or so.

Blocks: 2015191
See Also: → 2006262

(In reply to Emilio Cobos Álvarez [:emilio] from comment #0)

But we need to decide:

  • Are we ok blocking shipping scroll timelines on shipping TypedOM?
  • Should we try to do some partial shipping of TypedOM / ship the subset scroll timelines depend on?

The first one would be ideal of course if timeline (no pun intended) allows. But the second might be an option to consider.

I also prefer the first option for shipment. However, during development, I'm curious if it is possible to enable partially on Nightly first, especially for the features for scroll timelines? Most of the implementation we needed should be in Gecko already, and Just need a new pref to split it. This makes us easier to develop and test for wpt (and for interop).

If TypedOM is ready before scroll-driven animations, we could ship it first. Otherwise, we may have to take option 2 if we have to ship scroll-driven animation earlier. So for now, perhaps we could make option 1 as the tentative decision.

Blocks: 2016880
You need to log in before you can comment on or make changes to this bug.