-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfullscreen.html
More file actions
70 lines (60 loc) · 1.74 KB
/
Copy pathfullscreen.html
File metadata and controls
70 lines (60 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>WebView v149 Viewport Regression Repro</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
/* Container attempting to cover 100 dynamic viewport height plus bottom safe area */
.app-container {
display: flex;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
/* Regression trigger: 100dvh combined with safe-area-inset-bottom */
height: 100dvh;
padding-bottom: env(safe-area-inset-bottom, 0px);
background-color: #1c1c1e;
color: #ffffff;
font-family: system-ui, -apple-system, sans-serif;
}
.header {
padding: 20px;
background-color: #0071e3;
text-align: center;
font-weight: bold;
}
.content {
padding: 20px;
text-align: center;
}
/* Bottom fixed/pinned element that gets clipped or miscalculated */
.bottom-bar {
padding: 16px;
background-color: #ff3b30;
text-align: center;
font-weight: bold;
}
</style>
</head>
<body>
<div class="app-container">
<div class="header">
Top Header
</div>
<div class="content">
<h2>WebView v149 Viewport Repro</h2>
<p>In WebView v149.0.7827.160, combining <code>100dvh</code> with <code>env(safe-area-inset-bottom)</code> causes the bottom element to clip or calculate height incorrectly behind the Android system navigation bar.</p>
</div>
<div class="bottom-bar">
BOTTOM ACTION BAR (This element gets clipped/cut off)
</div>
</div>
</body>
</html>