Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

fix: replace document.body.scrollTo method #20

Closed
wants to merge 1 commit into from
Closed

fix: replace document.body.scrollTo method #20

wants to merge 1 commit into from

Conversation

aarrwnh
Copy link
Contributor

@aarrwnh aarrwnh commented Oct 28, 2021

Per bug1724243 images are now rendered in a "standards-mode" instead of "quirks-mode" which makes document.body.scrollTo method not work with how image is displayed according to CSS rules (i.e. document's box model height is 0px).

Resolves:
#18
#19

Per [bug1724243](https://bugzilla.mozilla.org/show_bug.cgi?id=1724243) images are now rendered in a "standards-mode" instead of "quirks-mode" which makes `document.body.scrollTo` method not work with how image is displayed according to CSS rules (i.e. document's box model height is 0px).
@darktrojan
Copy link
Owner

Thanks for the fix. Can I suggest that in future you don't reformat the code? It makes it much more difficult to see what actually changed, and therefore less likely your changes will be accepted.

@darktrojan darktrojan closed this Nov 3, 2021
@aarrwnh
Copy link
Contributor Author

aarrwnh commented Nov 4, 2021

@darktrojan That was auto-format since case clauses were/are not indented correctly.

Yes, I know I should not reformat code where it's not necessary, but the changes didn't looked that difficult and in the 'diff view' there's a 'hide whitespace' option, which minimizes edit clutter -- hence why I didn't revert it.

@aarrwnh aarrwnh deleted the fix-scroll branch November 4, 2021 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants