[Webkit-unassigned] [Bug 183106] css env(safe-area-inset-top) or contant(safe-area-inset-top) value doesn't exist at first

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 24 20:36:56 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=183106

--- Comment #1 from yuxian.lxy at alibaba-inc.com ---
Demo Source code:

<!doctype html> 
<html lang="zh-cmn-Hans">
<head>     
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">  
    <title>天猫超市</title>
    <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">
    <style>
        *{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}
    </style>
    <style>
        body::after{
            content: '';
            display: block;
            position: absolute;
            z-index: 1111111;
            top:0;
            left:0;
            height: env(safe-area-inset-top);
            padding-top: 10px;
            right: 0;
            background-color: red;
        }
    </style>
 </head>
 <body>
 </body>
 </html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180225/13d46ebf/attachment.html>


More information about the webkit-unassigned mailing list