Tagged articles
3 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Apr 24, 2024 · Frontend Development

CSS :has Pseudo-class for Modal Scroll Locking

This article shows how to lock page scrolling when a modal is open by using the new CSS :has pseudo‑class—replacing JavaScript‑driven overflow toggles that fail with nested dialogs—and demonstrates a simple body:has(dialog[open]) selector that works across all modern browsers.

:has() selectorCSSJavaScript
0 likes · 4 min read
CSS :has Pseudo-class for Modal Scroll Locking
Laravel Tech Community
Laravel Tech Community
Dec 15, 2022 · Frontend Development

jQuery 3.6.2 Released with Adjustments for Chrome’s New :has() Selector

jQuery 3.6.2, released four months after version 3.6.1, introduces compatibility fixes for Chrome’s newly added :has() selector, handling forgiving parsing and complex selector scenarios, while ensuring older versions may still be affected and directing users to the full changelog for additional changes.

3.6.2:has() selectorChrome
0 likes · 3 min read
jQuery 3.6.2 Released with Adjustments for Chrome’s New :has() Selector