Clement Fradet Normand
Clement Fradet Normand
@jcesarmobile Do you have screenshot examples ?
Maybe a great enhancement for [viewport addon](https://storybook.js.org/docs/react/essentials/viewport)
@shilman i can do it, but i don't know if we can force safe-area-inset env variables in an iframe, do you have some documentation about it ?
@shilman Just tried with: ```JS document.documentElement.style.setProperty("safe-area-inset-top","20px"); ``` But it doesn't work: ```JS document.documentElement.style.getPropertyValue("safe-area-inset-top"); //=> returns "" ``` Safe-area-inset variables are set by user agent and doesn't seem editable. Is there...
Cf https://discourse.mozilla.org/t/question-is-there-a-way-to-override-css-native-env-variable-like-safe-area-inset-top/79675
Cf https://stackoverflow.com/questions/56499416/setting-css-env-variables-programmatically-using-javascript @jantimon maybe you can help on this ?
The recent notch with new Macbooks laptops may accelerate this topic
> I'm not even sure if it is possible to simulate these variables 🤔 Yes not sure, the alternative at the moment is to write something like, but that may...