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

DS-695 Comment-out content-visibility rule #2416

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

danielamorse
Copy link
Collaborator

Jira

https://pegadigitalit.atlassian.net/browse/DS-695

Summary

content-visibility: auto; is conflicting with our JS that calculates scroll position. Comment-out to avoid bugs until we can fix the root issue.

Details

When an image is far enough outside of the viewport, content-visibility: auto; will hide the image and the height thereafter is determined by the height attribute of the image. If there is no height attribute, the height is 0. Either way, this change in height can happen while the TOC is in mid-scroll toward a target section. Upon arrival at that section, the page has shifted and it arrives at the wrong spot. Until we can figure out how to work with this new property, I am commenting-out this rule.

How to test

Review files changed. Nothing else to review.

@github-actions github-actions bot added the type: feature List this PR in the 'Features' section of the release notes. label Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature List this PR in the 'Features' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants