Hi,
As requested in
https://issues.chromium.org/issues/40718410,
it would be useful to emulate non-zero values for the CSS
env(safe-area-*) environment variables (see
https://developer.mozilla.org/en-US/docs/Web/CSS/env)
in DevTools' device mode.
In the linked issue someone provided a patch that, with slight
modifications to account for what changed since it was written,
gives a working implementation for a new CDP request to override the
values for these variables. I've uploaded the change to
https://crrev.com/c/6253279,
together with
https://crrev.com/c/6252825
as a frontend PoC to test the implementation. You can find a video
demo of the two CLs at
https://issues.chromium.org/40718410#attachment62805533.
I'd like to confirm that this change would be accepted, and if yes,
the process to land it. As I understand it, the change is small
enough to not require a design doc. I'm aware I still need to write
tests, and the frontend part is obviously not yet production-ready
(I haven't thought about what the best UI/UX might be, suggestions
would of course be welcome).
Best regards
Max