Bug 183106 - css env(safe-area-inset-top) or constant(safe-area-inset-top) value doesn't exist at first
Summary: css env(safe-area-inset-top) or constant(safe-area-inset-top) value doesn't e...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 11
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2018-02-24 20:34 PST by yuxian.lxy
Modified: 2019-03-07 04:39 PST (History)
5 users (show)

See Also:

demo video (28.84 MB, video/quicktime)
2018-02-24 20:34 PST, yuxian.lxy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuxian.lxy 2018-02-24 20:34:41 PST
Created attachment 334572 [details]
demo  video

please watch the follow video, u can see the css env(safe-area-inset-top) or contant(safe-area-inset-top) value doesn't exist at first, u can see the red area was getting higher slowly

  demo page : https://pages.tmall.com/wow/chaoshi/act/sa-test
Comment 1 yuxian.lxy 2018-02-24 20:36:56 PST
Demo Source code:

<!doctype html> 
<html lang="zh-cmn-Hans">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">  
    <meta name="apple-mobile-web-app-title" content="天猫超市">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">   
    <link rel="apple-touch-icon" href="//img.alicdn.com/tps/TB1TaKUPpXXXXbBXVXXXXXXXXXX-152-152.png">
        *{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%}li,ol,ul{list-style:none}em,i{font-style:normal}img{border:none}img,input{vertical-align:middle}a,html{-webkit-tap-highlight-color:transparent}body{font:12px/1.5 "PingFang SC",miui,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,sans-serif;background-color:#f0f0f0;color:#3d4245;min-height:100vh;-webkit-text-size-adjust:none}a{text-decoration:none;color:inherit}
            content: '';
            display: block;
            position: absolute;
            z-index: 1111111;
            height: env(safe-area-inset-top);
            padding-top: 10px;
            right: 0;
            background-color: red;
Comment 2 Radar WebKit Bug Importer 2018-02-24 22:06:06 PST
Comment 3 zhouqi 2018-05-21 08:42:47 PDT
any progress?
Comment 4 yuxian.lxy 2018-08-30 18:50:31 PDT
Any progress??