title: Checking padding-top: env (safe-area-inset-top);
body: <p>Tell me please. I am making a website that can be logged in both from a browser and my application on ios 14 (webview is used internally).
  How can I make a check on a safe area.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#block {
    width: 100px;
    height: 100px;
    background: red;
    padding-top: 10px;
    padding-top: env(safe-area-inset-top);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="block"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>It is necessary to make it so that from the browser <code>padding-top</code> is <code>10px</code> and from the application, on the device where there is a safe-area <code>padding-top</code> was <code>env(safe-area-inset-top)</code>.
  Thanks in advance.</p>