WindowControlsOverlay: getTitlebarAreaRect() method
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The getTitlebarAreaRect()
method of the WindowControlsOverlay
interface queries the current geometry of the title bar area of the Progressive Web App window.
This only applies to Progressive Web Apps installed on desktop operating systems and which use the Window Controls Overlay API.
Syntax
getTitlebarAreaRect()
Parameters
None.
Return value
A DOMRect
that provides the coordinates and size of the title bar area within the app's content.
Specifications
Specification |
---|
Window Controls Overlay # the-gettitlebararearect-method |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getTitlebarAreaRect |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.