Google Chrome 78 stable release, equipped with a fallback function to CSS variables and a new experiment mechanism
Version 78.0.3904.70, the latest stable version of the web browser ' Google Chrome ' has been released. CSS and ServiceWorker functions have been updated, as well as a mechanism to try out the functions planned for Google Chrome in the future.
New in Chrome 78 | Web | Google Developers
New in Chrome 78: New origin trials, CSS Properties and Values API, and fresher service workers!-YouTube
◆ Fallback function added to CSS variables
Previously, it was possible to use variables in CSS using the '--variable name' 'var (variable name)' notation, but there is a possibility that the variable name will be overwritten by conflict, or an incorrect value is set There was a problem such as being ignored when being done.
Chrome 78 introduces “window.CSS.registerProperty”, which allows you to select a value to be set if the value is invalid. If an error occurs when the set value is evaluated with the syntax of “syntax” in the “name” variable, the value of “initialValue” is applied instead. In addition, an error will occur if this property is registered multiple times for the same variable.
◆ ServiceWorker update flow is the same as other browsers
ServiceWorker is a technology used in
From Chrome 78, when the ServiceWorker is updated, the update of the script imported in the ServiceWorker will be checked. This is the same behavior as Safari and Firefox.
◆ A new experimental mechanism has appeared
By applying to Google, it is now possible to incorporate the functions that will appear in the future into your service. Users can take advantage of new features without flagging Chrome ’s experiments.
At the time of article creation, 21 experiments such as SMS reception API and access to local files can be registered.
In addition, Chrome 78 includes 37 security bug fixes .
Related Posts:
in Software, Posted by log1d_ts