
4 min read
Firefox 158: CSS Typed Arithmetic, Image Formats and Forms
Written by Abhishek DevandaDeveloperFirefox 158 added CSS typed arithmetic and improved Android support for aria-busy. Here is what to test in your UI and image pipeline.
Coverage: 12–18 October 2026.
Look at three application boundaries
Firefox 158 shipped on 13 October. Its notes describe typed arithmetic in CSS, a change to how images are requested, and Android support for the aria-busy state. These changes touch layout, delivery, and accessibility. A small test in each area will be more useful than trying every feature from the browser release.
Decide which change relates to code you already ship. A team using a fixed spacing scale may have little reason to adopt typed arithmetic. A team maintaining a content-heavy image site has a stronger reason to test image negotiation. Start with the product behavior you need to protect and read the release note through that lens.
Check that your fallback serves a usable format for browsers outside the newest release lines. A content system that chooses formats at upload time has different responsibilities from a cache that negotiates on each request. Decide which layer owns the choice, then test one explicit file and one negotiated URL. This narrows the investigation if the same product image is sharp in one browser and missing in another.
Use typed arithmetic for meaningful relationships
Typed arithmetic lets CSS divide compatible dimensions and use the unitless result. An author can express a relationship between a length and a reference length without first copying the calculation into JavaScript. It can help when a visual enhancement depends on an aspect of the layout that CSS already knows.
Write the core layout as ordinary CSS and guard the enhancement with a feature test that captures the syntax you will use. Inspect different viewport widths, text sizes, and lengthy translated content. A ratio that makes a decorative display feel precise at one width can produce extreme results at another. Keep a sensible range and test the minimum, maximum, and everyday case.
Test image negotiation with a warm cache
Mozilla notes that Firefox 158 adds JPEG XL to the default image request’s Accept header. The request is a clue about formats the browser can handle, not a direction to serve one format unconditionally. If your CDN negotiates formats, it still needs to send a representation the request can use and keep shared variants separated correctly.
Open the same image path in supporting and non-supporting browsers. Compare the response content type, file size, and whether the image is actually rendered. Repeat with a warm cache. This can reveal a cache key that worked when each request was cold but handed an incompatible variant to a later visitor. Keep a conventional fallback for assets served through a picture element.
Recheck asynchronous messages on Android
Firefox for Android now supports aria-busy, according to Mozilla’s notes. The state can tell assistive technology to defer updates until a region has finished changing. In practice, set it when work begins, clear it when work finishes, and confirm each final state has understandable text.
Try a search filter, a message send, or a contact form with a slow response. Test success and failure on a real device with a screen reader available. A self-updating counter inside a busy region can be useful visually and noisy for someone listening. Listen to what is actually announced and keep the output focused on the state the person needs.
Worked example: a responsive image beside a live results list
Imagine a product list uses one image URL and updates results after a filter selection. Start in Firefox 158 with a cold cache. Record the request’s Accept header and the response content type without assuming the browser chose a particular format. Repeat in another browser, then revisit both with a warm cache. If a CDN transforms assets, verify that the dimensions and fallback still fit the card layout in both cases.
Next try a filter with an artificially delayed test response on Android. The results region can mark itself busy while changing, then expose a short message with the number of matches. Check the experience with a screen reader. Listen for a meaningful announcement once the list is ready and make sure a failed response clears the busy state. Combining these checks gives you a realistic test of layout, media and feedback on the same page without requiring a full rewrite of the component.
Turn the findings into a reusable browser check
Record the browser, device, attempted action, and visible or spoken outcome. Give the team one reduced CSS example and one release-ready application route if an issue appears. This distinguishes a web-platform limitation from a style conflict in the project.
As browser support expands, consider simplifying old code only after the minimum version your project supports has caught up. Re-run the same written check so you can remove a fallback with evidence and keep the experience predictable for existing visitors.
- Test the enhancement and its fallback at three practical layout widths.
- Compare response format for an image with both cold and warm caches.
- Check whether an asynchronous form status is understandable with a screen reader.









