w3c / w3c/csswg-drafts

Proposing new `env()` variables to enable title bar customization on installed Web Apps

Open
#6,367 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-env-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Hola everyone! Diego here from the Edge team. I've been working with my colleagues on a feature that allows to customize the title bar for installed Web applications. The feature we are working on is called Window Controls Overlay and it proposes a set of new env() variables that define the area of the mentioned title bar.

image

These variables are:

  • titlebar-area-x
  • titlebar-area-y
  • titlebar-area-width
  • titlebar-area-height

We want to add these env() variables since they provide a responsive CSS solution that the JS counterpart can't easily replicate. This is necessary when a window is resized or when the overlay area dynamically accommodates an extension icon for example.

We'd love to get this into the CSS spec, and I'd love to read your thoughts and feedback, so please feel free to use this GitHub thread as a discussion forum.

You can see the sample code to get an idea of how this works.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Window Controls Overlay explainer, especially its CSS environment variables and sample code. Review the proposal and the three-comment discussion to understand the requested CSSWG feedback; done would require a decision on whether and how these variables should enter the CSS specification.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.