Firefox 96 enhances CSS, Canvas support for developers

Nancy J. Delong

Mozilla has launched Firefox ninety six, an update to the browser that offers aid for new CSS houses and functions, and adds impression encoder aid for the WebP format to the Canvas API.

Firefox ninety six was printed to launch channel users on January eleven. For CSS, Firefox now supports the color-plan property, which makes it possible for an ingredient to point out which color techniques in which it can be easily rendered. Also, the counter-reset property now supports the reversed() operate for creating reversed CSS counters, which are meant for numbering features in descending buy. The reversed() functon can be employed with the record-merchandise counter to number purchased lists in reverse buy.

Moreover for CSS, the hwb() operate for use as a CSS color worth has been carried out. The hwb() operate describes a color according to its hue, whiteness, and blackness.

Firefox’s Canvas API for drawing graphics, meanwhile, gains impression encoder aid for the WebP impression format. This makes it possible for canvas features to export articles as WebP data when working with methods such as HTMLCanvasElement.toDataURL() and HTMLCanvasElement.toBlob().

Mozilla’s bulletin on Firefox ninety six for builders cites no noteworthy changes pertaining to either HTML or JavaScript. But other changes relevant to builders consist of the pursuing:

  • Cookies sent from the same area but working with different techniques are now regarded as to be from different web-sites with respect to the cookie SameSite directive. Also, cookies are assumed to be implicitly set SameSite=Lax if the SameSite attribute is not specified, and cookies with SameSite=None require a secure context.
  • The canShare() API is now supported on Android, allowing for code to look at whether or not navigator.share() will triumph for unique targets. Also, the experimental Net Locks API is enabled by default, allowing for internet apps operating in several tabs or workers to coordinate use of means.
  • For the DOM, the IntersectionObserver() constructor now sets the default rootMargin if an empty string is handed in the related parameter alternative, fairly than throwing an exception.

In other places in Firefox ninety six, advancements have been made in sound suppression, automobile-gain control, and echo-cancellation to give a much better all round audio working experience. Key-thread load has been diminished as properly. For safety, Firefox will now enforce Cookie Plan: Same-Web-site=lax by default to defend towards cross-web page ask for forgery assaults.

Copyright © 2022 IDG Communications, Inc.

Next Post

Microsoft .NET MAUI Preview 11 updates Windows UI styling

Preview 11 of Microsoft’s .Net MAUI (Multi-platform Application UI), a cross-platform growth framework for generating indigenous cell and desktop purposes, has arrived, bringing introductory help for Windows 11 UI styling and help for multi-window purposes. An evolution of Xamarin.Forms, .Net MAUI lets .Net developers to construct indigenous apps for iOS, […]