Transparent background in web application

Description

Study the feasibility of allowing transparent backgrounds in web applications, so e.g. the homescreen background can be seen through the app.

This feature is allowed in native applications.

Environment

None

Activity

Show:

José Dapena Paz 
June 20, 2022 at 4:17 PM

Verified on master targetting Needlefish. If I make html5 launcher transparent using appinfo.json, and remove the background image provided by launcher application, background is black instead of showing html5 background.

Théo Bueno 
May 15, 2019 at 2:49 PM

Indeed, nice catch!

https://github.com/webosose/chromium68/blob/%4039.agl.guppy/src/neva/app_runtime/webview.cc#L498

Through this function, Chromium renderer background can be set to transparent via SetBackgroundColor. The latter seems to be implemented by the Aura Shell window manager.

Jacobo Aragunde Pérez 
May 15, 2019 at 2:07 PM

According to , it's definitely possible to have transparent webapps. There is an appinfo entry in webOS for "isTransparent" that calls SetTransparentBackground in WebOS webview. That sets the webview background color to transparent instead of black.

We have to expose the same behavior to AGL WAM.

Jacobo Aragunde Pérez 
May 14, 2019 at 10:04 AM

We know there is a concept of window opacity in Chromium from:
https://chromium-review.googlesource.com/c/chromium/src/+/1520666

Per https://lf-automotivelinux.atlassian.net/browse/SPEC-2266#icft=SPEC-2266, this patch was backported into AGL Chromium. This is a hint that maybe it's possible to do transparent web applications.

Fixed

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created May 14, 2019 at 9:51 AM
Updated March 29, 2023 at 6:30 PM
Resolved March 29, 2023 at 6:30 PM