综合编程

Weekly Platform News: CSS Scroll Snap, Opera GX, PWA Install Icon

微信扫一扫,分享到朋友圈

Weekly Platform News: CSS Scroll Snap, Opera GX, PWA Install Icon
0

Šime posts regular content for web developers on webplatform.news
.

In this week’s roundup, Chrome is adding an install option for Progressive Web Apps, Opera GX comes to Windows, the ECMAScript proposals get an update, and CSS Scroll Snap is coming to a Firefox browser near you.

An install icon is coming to Chrome on desktop

Pete LePage
: The next version of Chrome will automatically show an install icon in the address bar on desktop if the site meets Chrome’s PWA
"installability" criteria. You can listen for the appinstalled
event to detect if the user installed your PWA
.


Opera GX is available on Windows

Maciej Kocemba
: The preview version of Opera GX for Windows is now available. This is a special version of Opera that lets users limit how much CPU and RAM is available to the browser.


Updated ECMA
Script proposals

Azu
The JavaScript optional chaining operator ( obj?.prop
) and null-ish coalescing operator ( x ?? y
) proposals have been moved to Stage 2 of the TC39
process. (See Web Platform News issue 902
for more information about the TC39 process.)

// BEFORE
let text = response.settings && response.settings.headerText;
if (text == null) text = "Hello, world!";

// AFTER
let text = response.settings?.headerText ?? "Hello, world!";

CSS Scroll Snap is coming to Firefox

Šime Vidas
: CSS Scroll Snap is supported in Chrome, Safari, and the next version of Firefox.Scroll snapping works well on touch screen devices but there are some usability issues on desktop platforms.

阅读原文...


微信扫一扫,分享到朋友圈

Weekly Platform News: CSS Scroll Snap, Opera GX, PWA Install Icon
0

CSS-Tricks

现阿里P8架构师,面试核心知识点(腾讯+阿里+快手面经)附答案

上一篇

DPoS 网络现状分析报告全文( 图文版 )

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

Weekly Platform News: CSS Scroll Snap, Opera GX, PWA Install Icon

长按储存图像,分享给朋友