Skip to content

Test all input types with scrollTo and onscroll - #20172

Open
zcorpan wants to merge 2 commits into
masterfrom
zcorpan/input-element-scrollable
Open

zcorpan wants to merge 2 commits into
masterfrom
zcorpan/input-element-scrollable

Conversation

@zcorpan

@zcorpan zcorpan commented Nov 8, 2019

Copy link
Copy Markdown
Member

This test does not follow any spec yet.
Instead it expects all input types to be scrollable
and fire a scroll event in response to scrollTo(),
to more clearly demonstrate which elements do this in
browsers currently.

Variants tested:

  • overflow: visible / hidden / scroll
  • appearance: auto / none

See whatwg/html#4840

This test does not follow any spec yet.
Instead it expects all `input` types to be scrollable
and fire a `scroll` event in response to `scrollTo()`,
to more clearly demonstrate which elements do this in
browsers currently.

Variants tested:

* overflow: visible / hidden / scroll
* appearance: auto / none

See whatwg/html#4840
@zcorpan

zcorpan commented Nov 8, 2019 •

Copy link
Copy Markdown
Member Author

I think actually the Firefox result on wpt.fyi matches what whatwg/html#4840 currently requires (if we take the "overflow doesn't apply" + no statement to allow or require a scroll container to mean that scrolling shouldn't be supported).

However, on macOS I get different results in Firefox Nightly: month, week, and datetime-local are also PASS (get a scroll event).

@zcorpan

zcorpan commented Nov 18, 2019

Copy link
Copy Markdown
Member Author

I've updated the test based on my previous comment. Firefox passes all subtests.

@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders
gsnedders deleted the zcorpan/input-element-scrollable branch January 24, 2020 18:08
@gsnedders
gsnedders restored the zcorpan/input-element-scrollable branch January 24, 2020 18:49
@Hexcles Hexcles reopened this Jan 24, 2020
@zcorpan

zcorpan commented Jan 27, 2020

Copy link
Copy Markdown
Member Author

@MatsPalmgren can you review this?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants