Skip to content

Comments

Remove ScrollToOptions dictionary; fix scroll options data#12490

Merged
foolip merged 2 commits intomdn:mainfrom
queengooborg:api/ScrollToOptions
Sep 24, 2021
Merged

Remove ScrollToOptions dictionary; fix scroll options data#12490
foolip merged 2 commits intomdn:mainfrom
queengooborg:api/ScrollToOptions

Conversation

@queengooborg
Copy link
Contributor

This PR performs two actions related to the options for scroll, scrollTo, and scrollBy.

First, the ScrollToOptions dictionary is deleted, and its properties are converted into subfeatures of the dependent methods.

Second, this updates and corrects the data for these different options. While trying to fill out the real values for both Firefox and Safari, I noticed a few discrepancies with the Chrome data as well. This PR fixes them using the following commit/bug data:

Additionally, this removes the IE and Edge partial implementation block on api.Window.scrollBy describing that only scrollBy(x, y) is supported. This is referring to the lack of support for the options parameter, which is already taken care of by the subfeature.

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 20, 2021
@queengooborg queengooborg added needs content update This PR needs a corresponding update to mdn/content to update the documentation needs-release-note 📰 labels Sep 20, 2021
@foolip
Copy link
Contributor

foolip commented Sep 20, 2021

I've written http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=9636 to test for support with feature detection. Can you double check data that was based on commit dates using this? It's hard to tell if there are any runtime flags involved here.

@queengooborg queengooborg removed the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Sep 21, 2021
Copy link
Contributor

@foolip foolip left a comment

Choose a reason for hiding this comment

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

Trying to verify revealed some errors. After applying fixes, can you check if all of the entries have the exact same data? I would expect only two variants of the data due to the different versions for behavior and top/left in Safari, but everything else to stay the same across the board.

@foolip foolip merged commit 86eb73d into mdn:main Sep 24, 2021
@queengooborg queengooborg deleted the api/ScrollToOptions branch September 24, 2021 14:47
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request Oct 12, 2021
ddbeck added a commit that referenced this pull request Oct 12, 2021
* Bump version to v4.0.6

* Add release note for #12094

* Add release note for #12367

* Add release note for #12462

* Add release note for #12490

* Add release note for #12565

* Add release note for #12632

* Add release note for #12638

* Add release note for #12639

* Add release note for #12703

* Add release note for #12718

* Add release note for #12723

* Add release note for #12768

* Add release note for #12770

* Add release note for #12772

* Add release note for #12794

* Add release note for #12796

* Add release note for #12813

* Add stats and hoist known issues
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