Skip to content

fix: remove deprecated overflow-y:overlay in .pm__body#827

Open
terminalchai wants to merge 1 commit into
orestbida:masterfrom
terminalchai:fix/remove-deprecated-overflow-overlay
Open

fix: remove deprecated overflow-y:overlay in .pm__body#827
terminalchai wants to merge 1 commit into
orestbida:masterfrom
terminalchai:fix/remove-deprecated-overflow-overlay

Conversation

@terminalchai
Copy link
Copy Markdown
Contributor

Problem

.pm__body in the preferences modal has:

overflow-y: auto;
overflow-y: overlay;

overflow-y: overlay is a non-standard, deprecated value that was originally a Chrome/WebKit extension to render the scrollbar on top of content (overlay scrollbars) rather than taking up layout space. It was removed in Chrome 112 (April 2023) and has never been part of any CSS spec.

In Chrome 112+ and all other engines (Firefox, Safari) the overlay line is silently ignored, making it dead code. It also generates console warnings in some tooling.

Closes #784.

Fix

Remove the dead overflow-y: overlay line from _preferences-modal.scss and all compiled dist outputs (cookieconsent.css, cookieconsent.esm.js, cookieconsent.umd.js, preferences-modal.css).

The overflow-y: auto declaration immediately above it already provides the correct scrolling behaviour on all browsers.

The overlay value is non-standard and was removed in Chrome 112+.
The overflow-y: auto declaration above it handles scrolling correctly.

Fixes orestbida#784
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for cookieconsentv3-playground ready!

Name Link
🔨 Latest commit 6435475
🔍 Latest deploy log https://app.netlify.com/projects/cookieconsentv3-playground/deploys/6a0787bda71e3b000838ce62
😎 Deploy Preview https://deploy-preview-827--cookieconsentv3-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: overflow: overlay is a legacy value

1 participant