

It was long thought such a selector was not possible, but our team figured out a way to highly-optimize performance and deliver a flexible solution that does not slow the page. This selector fulfills a long-expressed desire for a “parent selector” - a way to apply CSS rules conditionally based on the contents of an element - and goes even further with the possibilities it enables. Landing in Safari first, WebKit added support for the :has() pseudo-class. Several additions to CSS in 2022 offer revolutionary new ways for web developers to architect their code, making it easier to reuse code, create design systems, and integrate with complex applications. WebKit also added support for the global autofocus attribute allowing developers to indicate which element should be the one in focus when the page loads or when a is displayed. You can learn all about using and ::backdrop in Introducing the Dialog Element. Show the dialog Pretty dialog example styled The ::backdrop pseudo-element makes it possible to style the background underneath the modal. Do you want to delete everything? You will lose all your data. The element provides a robust and powerful way to create overlays and modals. WebKit added support for lazy-loading images with the loading attribute on the element, providing web developers with an easy way to instruct the browser to defer loading certain images until the user scrolls near them.Īfter years of standardization debates over accessibility considerations and with a solution finally at hand, WebKit added support for the element and ::backdrop pseudo-element. You can update to Safari 15.4 on macOS Big Sur and macOS Catalina by going to System Preferences → Software Update → More info, and choosing to update Safari. Safari 15.4 is available for macOS Monterey 12.3, macOS Big Sur, macOS Catalina, iPadOS 15.4, and iOS 15.4. This is the first big WebKit release of 2022, and we’re just getting started.


We’ve assembled a huge release as part of our commitment to web developers, and the people who use the web. With over 70 additions to WebKit, Safari 15.4 is packed with new web technologies, updates, and fixes.
