Technology

Safari Technology Preview 242: Major CSS and HTML Enhancements

2026-05-04 18:50:52

Introduction

Safari Technology Preview Release 242 is now available for download on both macOS Tahoe and macOS Sequoia. This latest version brings a host of improvements and bug fixes, focusing on accessibility, CSS, forms, and HTML. If you already have Safari Technology Preview installed, you can update it via System Settings > General > Software Update. This release includes WebKit changes between revisions 310187@main and 310599@main.

Safari Technology Preview 242: Major CSS and HTML Enhancements
Source: webkit.org

Accessibility Improvements

VoiceOver and Interactive Elements

Developers will appreciate the fix for VoiceOver where it previously read text within images that had role="presentation". This issue has been resolved (bug 159304061). Additionally, macOS accessibility support for customizable <select> elements using the appearance: base-select property has been fixed (bug 173696010).

CSS Enhancements and Bug Fixes

New CSS Features

Two new CSS features have been added:

Resolved CSS Issues

Several CSS bugs have been addressed, improving layout and rendering reliability:

Form Handling Updates

Select Multiple Interaction

A bug in <select multiple> has been resolved. Previously, the onchange event did not always fire when the mouse button was released far outside the element. This now works reliably (bug 173882861).

HTML Changes and New Features

New closedby Attribute for Dialog

The <dialog> element now supports the closedby attribute, giving developers more control over dialog dismissal behavior (bug 173974767).

HTML Parser Fast Path Fixes

Three important fixes have been made to the HTML parser’s fast path:

Image Handling

Srcset Attribute Fix

An issue where inserting an image with a srcset attribute into a document could cause unexpected behavior has been fixed (details available in WebKit bug tracker). This ensures responsive images work more reliably in dynamic content scenarios.

Conclusion

Safari Technology Preview 242 continues the tradition of pushing web standards forward. With significant CSS and HTML enhancements, along with critical accessibility and form fixes, this release helps developers build more robust and inclusive web experiences. Update your copy today via System Settings to take advantage of these improvements.

Explore

How to Make Sense of Apple's Mac Mini Storage and Price Shifts: A Buyer's Guide Python Ships Urgent Bugfix Releases: Version 3.14.2 and 3.13.11 Address Regressions and Security Vulnerabilities SpaceX Set to Deploy 45 Satellites in Early Morning Launch from California Beyond GLP-1: A Five-Mechanism Obesity Drug Excels in Mice; Plus Other Biotech Updates Tesla Unveils Basecharger and Megacharger Pricing for Semi Truck Fleet Charging