Open grorg opened 6 years ago
The Working Group just discussed Accept safe-area-inset*
.
Recreation of my first whiteboard drawing:
Maybe better:
How will https://drafts.csswg.org/css-round-display-1 work alongside safe-area-inset
values? @jihyerish? Can't imagine the green line would mean much in round displays, while the red could mean everything if you didn't wan't to utilize shape-inside
/border-boundary
to present your content well in that form? Especially since the @viewport
rule is currently up in the air, with viewport-fit: contain
being it's way to get "the largest inscribed rectangle of the display".
As per #2820, we're proposing four
env()
values that indicate the inset from the edges of the page which guarantee visibility and interactivity.This is commonly referred to as a "safe area".
The four values are:
safe-area-inset-top
safe-area-inset-right
safe-area-inset-bottom
safe-area-inset-left
They evaluate to a
<length>
value.