WebView-CG / usage-and-challenges

Documenting usage scenarios for WebView and the challenges they create
https://webview-cg.github.io/usage-and-challenges/
Other
12 stars 4 forks source link

Enrich operating system level user interface #11

Open tomayac opened 2 years ago

tomayac commented 2 years ago

Use case name

Enrich operating system level user interface.

Submitter(s)

Thomas Steiner (@tomayac)

Motivation

Enrich operating system level user interface with native-looking but flexible elements without requiring changes to the underlying operating system code.

Stakeholders

Apple (Since they use this, but I note that I barely document the use case, not speak on Apple's behalf.)

Analysis

Via @jimniels' blog post:

In the macOS terminal:

defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write -g WebKitDeveloperExtras -bool YES

This will enable a context menu in a system web view:

image

Inspecting the web view with Safari's Web Inspector shows that it's using non-standard CSS properties and value keywords.

image

Related W3C deliverables and/or work items

N/A

How is the issue solved in the Browser, and what’s more is needed?

N/A