Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scrollIntoView + scrollIntoViewOptions #4866

Closed
wants to merge 1 commit into from
Closed

Conversation

XTard
Copy link
Contributor

@XTard XTard commented Sep 22, 2019

Update scrollIntoView + scrollIntoViewOptions compatibility for Microsoft Edge and Opera for PC.
Opera fully supports scrollIntoViewOptions (in newest version 63). Edge only supports alignToTop parameter.

Update scrollIntoView + scrollIntoViewOptions compatibility for Microsoft Edge and Opera for PC.
Opera fully supports scrollIntoViewOptions (in newest version 63), but Edge doesn't.
@ghost ghost added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 22, 2019
@queengooborg queengooborg self-requested a review September 30, 2019 01:26
@ddbeck ddbeck self-requested a review October 7, 2019 11:21
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @XTard and welcome to BCD! Thank you for opening this PR. This is a good start, though I have a couple of questions in line.

Also, do you have any more information on where your data came from? Did you read this in release notes, an issue tracker, or did you do some testing? It'd be great to have some more info backing this up so we can be ready to merge. Thank you!

@@ -6511,7 +6511,7 @@
"edge": [
{
"version_added": "18",
"notes": "No support for <code>smooth</code> behavior."
"notes": "Parameter <code>alignToTop</code> is supported. No support for <code>smooth</code> behavior."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the data correctly, the note about the smooth option is redundant with the scrollIntoViewOptions feature data you updated below. In that case, I'd suggest rephrasing this

Suggested change
"notes": "Parameter <code>alignToTop</code> is supported. No support for <code>smooth</code> behavior."
"notes": "The only parameter supported is <code>alignToTop</code>."

"notes": "The <code>block</code> and <code>inline</code> options support the values <code>start</code>, <code>center</code>, <code>end</code>, <code>nearest</code>."
},
{
"version_added": true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data as proposed here suggests that

  • This feature was supported in some version before 48
  • From version 48 onward, the note applies

That doesn't really match up with your PR description. Are you're trying to say that, at some point after version 48, support for the behavior option was added too?

@queengooborg queengooborg removed their request for review October 8, 2019 12:48
@queengooborg
Copy link
Contributor

Hey @XTard, do you plan to return to this PR?

@queengooborg
Copy link
Contributor

Hey again -- since we haven't heard back in a few weeks about this, I've created another pull request to move this along. Thanks, @XTard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants