Upgrading to Safari Technology Preview 242: A Developer's Guide to New Features and Bug Fixes
Overview
Safari Technology Preview 242 is now available for download on macOS Tahoe and macOS Sequoia. This release brings a host of improvements across accessibility, CSS, forms, HTML, and images. Whether you're a web developer, designer, or tester, understanding these changes helps you prepare your sites for future Safari updates. This guide walks you through updating, highlights key additions, and explains how to test them in your projects.

Prerequisites
- A Mac running macOS Tahoe or macOS Sequoia.
- An existing installation of Safari Technology Preview (optional for update)
- Basic familiarity with web development and Safari's Web Inspector.
Step-by-Step Update Instructions
Fresh Installation
- Go to the Safari Technology Preview download page.
- Download the version for your macOS.
- Open the downloaded
.dmgfile and drag the Safari Technology Preview app to your Applications folder. - Launch the browser.
Updating an Existing Installation
- Open System Settings (from Apple Menu).
- Navigate to General > Software Update.
- Click Update Now if Safari Technology Preview 242 appears in the list.
- Restart the browser after installation.
New Features and Resolved Issues
This build includes WebKit changes from revision 310187 to 310599. Below we break down each category.
Accessibility
Resolved Issues:
- VoiceOver no longer reads decorative images: Previously, VoiceOver announced images with
role="presentation". The fix ensures these are skipped as intended. (310483) - Customizable select elements: macOS accessibility now works correctly with
<select>elements styled withappearance: base-select. (310441)
CSS
New Features:
- CSS
attr()function from CSS Values Level 5: You can now useattr()in CSS properties beyondcontent. For example,width: attr(data-width px, 100px);. (310246) - Support for
oblique-onlyinfont-synthesis-style: This allows better control over font style synthesis, following CSS Fonts Level 4. (310409)
Resolved Issues:
- Dark mode in iframes:
@media (prefers-color-scheme: dark)now works inside iframes whosecolor-schemeis set todark. (310465) - Logical axis values in
position-try-order: The property now uses the containing block's writing mode for logical axis (e.g.,block-start) instead of the element's own mode. (310277) - Percent-height replaced elements: No longer compute stale preferred widths in shrink-to-fit containers. (310194)
- Table cell
nowrapquirk restricted to quirks mode: The minimum width calculation quirk no longer applies outside quirks mode. (310195) - Checkbox outline alignment: Outlines for checkboxes now appear correctly aligned. (310323)
- Anchor-positioned elements inside sticky containers: Elements anchored to children of sticky boxes now stick properly. (310255)
- Pseudo-element sorting by tree order: Sorting anchor elements by tree order now works correctly with pseudo-elements. (310407)
- Ligatures with
font-size: 0: Ligatures no longer cause non-zero layout width. (310394) :in-rangeand:out-of-rangeupdates: These pseudo-classes now correctly respond to changes in thereadonlyattribute. (310484)view-timeline-insetserialization: Identical values are now coalesced correctly. (310590)
Forms
Resolved Issues:
<select multiple>event: Theonchangeevent now fires when the mouse button is released far outside the element. (310482)
HTML
New Features:
closedbyattribute on<dialog>: Dialogs can now be closed by clicking outside whenclosedby="any"is set. Learn more in the MDN docs. (310487)
Resolved Issues:
- HTML parser fast path: Fixed three issues: escaped attribute values longer than one character are now processed correctly; nested
<li>elements are detected; and MathML/SVG integration point checks use the adjusted current node. (310209, 310492, 310593)
Images
Resolved Issues:
- Images with
srcset: An issue where inserting an image with asrcsetattribute caused errors has been fixed. (Details in the original commit 310598)
Common Mistakes
- Assuming the
attr()function works everywhere: While CSS Values Level 5 expands its usage, it's currently limited to certain properties. Always test in Safari Technology Preview before relying on it. - Forgetting to set
color-schemeon iframe: The dark mode fix requires the iframe's owncolor-schemeto bedark. Simply adding the media query won't work. - Misinterpreting
position-try-orderfix: Ensure your CSS uses logical properties correctly; the fix changes which writing mode is used, which may affect layouts in mixed writing mode contexts. - Not updating test pages: After updating Safari Technology Preview, clear caches and test all affected features—especially CSS and form behaviors.
Summary
Safari Technology Preview 242 introduces powerful CSS features like the attr() function and oblique-only, fixes critical bugs in forms, HTML parsing, and images, and improves accessibility for VoiceOver and custom selects. By updating and testing these changes early, you can ensure your websites remain compatible and take advantage of the latest web standards. For the complete list of changes, refer to the official WebKit blog.
Related Articles
- Libcamera 0.7.1 Delivers Enhanced Software ISP and Expanded Hardware Support
- Open Source Board Transforms Google Home Mini into Privacy-Focused Smart Hub for $85
- Xteink Blocks Third-Party Firmware on Its Pocket-Sized E-Readers, Users Report
- Windows 11 Gets Smarter, Faster, and Less Distracting: What You Need to Know
- Python 3.14.3: Key Updates and New Features Explained
- Transform Your Discontinued Humane Ai Pin into a Full Android Device
- Bridging the Gap Between Intent and Impact: A Practical Accessibility Framework
- Breaking: Researchers Uncover Fix for SVG Chart Misalignment in LaTeX Publishing Workflows