This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23048 - Split ScrollOptions to different dicts
Summary: Split ScrollOptions to different dicts
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 09:56 UTC by Simon Pieters
Modified: 2013-08-23 11:39 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2013-08-23 09:56:20 UTC
http://dev.w3.org/csswg/cssom-view/#scrollbehavior

[[
dictionary ScrollOptions {
  double x;
  double y;
  ScrollBehavior behavior = "auto";
};
]]

Using x/y in the dict that gets used by scroll() is evidently confusing. Should split it to different dicts instead:

dictionary ScrollOptions {
  ScrollBehavior behavior = "auto";
};
dictionary ScrollOptionsHorizontal : ScrollOptions {
  double x;
};
dictionary ScrollOptionsVertical : ScrollOptions {
  double y;
};

(The x/y members are used by Element#scrollLeft and scrollTop.)
Comment 1 Simon Pieters 2013-08-23 11:39:01 UTC
https://dvcs.w3.org/hg/csswg/rev/23e8495a9cd2