File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,46 @@ tho user agents may define additional undocumented [=environment variables=]:
7777
7878* Issue: define list of predefined vars
7979
80+ Safe area inset variables {#safe-area-insets}
81+ ------------------------------------------------------------------
82+
83+ <table>
84+ <tr>
85+ <th> Name</th>
86+ <th> Value</th>
87+ <th> Media</th>
88+ </tr>
89+ <tr>
90+ <td> safe-area-inset-top</td>
91+ <td> <<length>> </td>
92+ <td> visual</td>
93+ </tr>
94+ <tr>
95+ <td> safe-area-inset-right</td>
96+ <td> <<length>> </td>
97+ <td> visual</td>
98+ </tr>
99+ <tr>
100+ <td> safe-area-inset-bottom</td>
101+ <td> <<length>> </td>
102+ <td> visual</td>
103+ </tr>
104+ <tr>
105+ <td> safe-area-inset-left</td>
106+ <td> <<length>> </td>
107+ <td> visual</td>
108+ </tr>
109+ </table>
110+
111+ The safe area insets are four [=environment variables=] that define a rectangle by
112+ its top, right, bottom, and left insets from the edge of the viewport. For rectangular
113+ displays, these must all be zero, but for nonrectangular displays they must form a
114+ rectangle, chosen by the user agent, such that all content inside the rectangle is
115+ visible, and such that reducing any of the insets would cause some content inside of
116+ the rectangle to be invisible due to the nonrectangular nature of the display. This
117+ allows authors to limit the layout of essential content to the space inside of the
118+ safe area rectangle.
119+
80120Using Environment Variables: the ''env()'' notation {#env-function}
81121===================================================================
82122
You can’t perform that action at this time.
0 commit comments