-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
Description
https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions has logical members but not physical.
As per the discussion in #11796, it seems this might be useful on its own. I think the main question is how to resolve conflicts.
Probably the interface needs to become:
enum ScrollPosition { "start", "center", "end", "nearest" };
dictionary ScrollIntoViewOptions : ScrollOptions {
ScrollPosition block;
ScrollPosition inline;
ScrollPosition x;
ScrollPosition y;
ScrollIntoViewContainer container = "all";
};Then something along the lines of: If any logical side is specified, use them, otherwise use the physical ones (if specified), otherwise default to block: "start", inline: "nearest".
So a bit annoying to write in prose but I think fairly reasonable and easy to implement.
SebastianZ
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Tuesday Afternoon