Safari Technology Preview 242: Major CSS and HTML Enhancements

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.

Tags:

Recommended

Discover More

Reclaiming the American Dream: A Pledge to Share ProsperityMastering Safe Database Operations with Python Context Managers in mssql-pythonMozilla's AI Vulnerability Detector Uncovers 271 Firefox Flaws with Near-Perfect AccuracyUnmasking UAT-8302: China-Aligned APT Group’s Cross-Continental Government EspionagePython 3.15 Alpha 6 Arrives with Performance Boosts and New Profiler