Open Bug 2016879 Opened 3 months ago Updated 8 hours ago

Add the constructor of ViewTimeline interface

Categories

(Core :: DOM: Animation, enhancement)

enhancement
Points:
1

Tracking

()

People

(Reporter: boris, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Whiteboard: [scrollanimation:mvp] )

Attachments

(1 file)

Now it's time to add the constructor for ViewTimeline:

dictionary ViewTimelineOptions {
  Element subject;
  ScrollAxis axis = "block";
  (DOMString or sequence<(CSSNumericValue or CSSKeywordValue)>) inset = "auto";
};

[Exposed=Window]
interface ViewTimeline : ScrollTimeline {
  constructor(optional ViewTimelineOptions options = {});
  ...
};

We have to add ViewTimelineOptions as well. However, before we enable CSS Typed OM, we can restrict the inset to be (<DOMString or sequence<(double or DOMString)>). The double here is the length value (and so we don't accept percentage for now). This is just a tentative syntax and we will fix it in the following bug.

Blocks: 2016880
Points: --- → 1
Assignee: nobody → mozmail
Status: NEW → ASSIGNED
Status: ASSIGNED → NEW
Assignee: mozmail → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: