Skip to content

Fix content container scrolling in older versions of Safari#2208

Draft
DavidOliver wants to merge 1 commit intoelixir-lang:mainfrom
DavidOliver:safari-content-container-scrolling
Draft

Fix content container scrolling in older versions of Safari#2208
DavidOliver wants to merge 1 commit intoelixir-lang:mainfrom
DavidOliver:safari-content-container-scrolling

Conversation

@DavidOliver
Copy link
Contributor

It seems the 'content' CSS container being placed on the absolutely-positioned, 100% height 'main' element results in a lack of vertical scrolling in Safari 17.6. The container was placed on the 'main' element to allow setting of --hX-size custom properties of the .content-inner element based on a size query using said element. Here, we move the container back to .content-inner and directly use the font size values themselves in the relevant rules.

Also removes outdated comment related to headings.

Fixes #2207

It seems the 'content' CSS container being placed on the
absolutely-positioned, 100% height 'main' element results in a lack of
vertical scrolling in Safari 17.6. The container was placed on the
'main' element to allow setting of --hX-size custom properties of the
.content-inner element based on a size query using said element. Here,
we move the container back to .content-inner and directly use the font
size values themselves in the relevant rules.

Also removes outdated comment related to headings.

Fixes elixir-lang#2207
@github-actions
Copy link

github-actions bot commented Mar 1, 2026

@DavidOliver DavidOliver marked this pull request as draft March 1, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Main content is unscrollable in Safari 17.6

2 participants