Open Bug 1850962 Opened 3 years ago Updated 3 years ago

[wpt-sync] Sync PR 41740 - [AWC] Add `resizable` CSS @media feature

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 41740 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/41740
Details from upstream follow.

Sonja <laurila@google.com> wrote:

[AWC] Add resizable CSS @media feature

The new resizable CSS will enable using CSS or JS @media query to
know if the window can be resized or not. The value is boolean,
defaulting to true if not specified.

For example:

@media (resizable: false) {
  .button {
    /*CSS to be applied*/
  }
}
window.matchMedia('(resizable: false)').matches

I2P thread
https://groups.google.com/a/chromium.org/g/blink-dev/c/oCxWg8q_OQY/m/LUTw0T5cCQAJ

Public explainer is available @
https://github.com/ivansandrk/additional-windowing-controls/blob/main/awc-explainer.md

Private doc @ go/additional-windowing-controls

Bug: 1466855, b:288265319
Change-Id: I301053f4a0cc9c9c0c15c88f6fea98f9b52ab405
Reviewed-on: https://chromium-review.googlesource.com/4822511
WPT-Export-Revision: 6ad8fca28f21680d611a21ad0edd39572324d608

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
You need to log in before you can comment on or make changes to this bug.