File tree Expand file tree Collapse file tree 4 files changed +148
-0
lines changed
demos/src/individual/safe-inset-areas Expand file tree Collapse file tree 4 files changed +148
-0
lines changed Original file line number Diff line number Diff line change 44
44
background-color : rgb (0 0 255 / 0.2 );
45
45
inset : 0 ;
46
46
}
47
+
48
+ # bottom , # top {
49
+ position : fixed;
50
+ height : 5px ;
51
+ pointer-events : none;
52
+ background : lime;
53
+ z-index : 1 ;
54
+ width : 75vw ;
55
+ left : 12.5vw ;
56
+ }
57
+ # bottom {
58
+ bottom : 0 ;
59
+ }
60
+ # top {
61
+ top : 0
62
+ }
63
+
64
+ # left , # right {
65
+ position : fixed;
66
+ width : 5px ;
67
+ pointer-events : none;
68
+ background : hotpink;
69
+ z-index : 1 ;
70
+ height : 75vh ;
71
+ top : 12.5vh ;
72
+ }
73
+ # left {
74
+ left : 0 ;
75
+ }
76
+ # right {
77
+ right : 0
78
+ }
47
79
</ style >
48
80
</ head >
49
81
@@ -61,6 +93,11 @@ <h1>No <code>viewport-fit</code></h1>
61
93
< div id ="fixer "> </ div >
62
94
< div id ="fixer0 "> </ div >
63
95
96
+ < div id ="top "> </ div >
97
+ < div id ="bottom "> </ div >
98
+ < div id ="left "> </ div >
99
+ < div id ="right "> </ div >
100
+
64
101
< button id ="btnOptions "> options</ button >
65
102
< dialog id ="options ">
66
103
< header >
Original file line number Diff line number Diff line change 44
44
background-color : rgb (0 0 255 / 0.2 );
45
45
inset : 0 ;
46
46
}
47
+
48
+ # bottom , # top {
49
+ position : fixed;
50
+ height : 5px ;
51
+ pointer-events : none;
52
+ background : lime;
53
+ z-index : 1 ;
54
+ width : 75vw ;
55
+ left : 12.5vw ;
56
+ }
57
+ # bottom {
58
+ bottom : 0 ;
59
+ }
60
+ # top {
61
+ top : 0
62
+ }
63
+
64
+ # left , # right {
65
+ position : fixed;
66
+ width : 5px ;
67
+ pointer-events : none;
68
+ background : hotpink;
69
+ z-index : 1 ;
70
+ height : 75vh ;
71
+ top : 12.5vh ;
72
+ }
73
+ # left {
74
+ left : 0 ;
75
+ }
76
+ # right {
77
+ right : 0
78
+ }
47
79
</ style >
48
80
</ head >
49
81
@@ -61,6 +93,11 @@ <h1><code>viewport-fit=auto</code></h1>
61
93
< div id ="fixer "> </ div >
62
94
< div id ="fixer0 "> </ div >
63
95
96
+ < div id ="top "> </ div >
97
+ < div id ="bottom "> </ div >
98
+ < div id ="left "> </ div >
99
+ < div id ="right "> </ div >
100
+
64
101
< button id ="btnOptions "> options</ button >
65
102
< dialog id ="options ">
66
103
< header >
Original file line number Diff line number Diff line change 44
44
background-color : rgb (0 0 255 / 0.2 );
45
45
inset : 0 ;
46
46
}
47
+
48
+ # bottom , # top {
49
+ position : fixed;
50
+ height : 5px ;
51
+ pointer-events : none;
52
+ background : lime;
53
+ z-index : 1 ;
54
+ width : 75vw ;
55
+ left : 12.5vw ;
56
+ }
57
+ # bottom {
58
+ bottom : 0 ;
59
+ }
60
+ # top {
61
+ top : 0
62
+ }
63
+
64
+ # left , # right {
65
+ position : fixed;
66
+ width : 5px ;
67
+ pointer-events : none;
68
+ background : hotpink;
69
+ z-index : 1 ;
70
+ height : 75vh ;
71
+ top : 12.5vh ;
72
+ }
73
+ # left {
74
+ left : 0 ;
75
+ }
76
+ # right {
77
+ right : 0
78
+ }
47
79
</ style >
48
80
</ head >
49
81
@@ -61,6 +93,11 @@ <h1><code>viewport-fit=contain</code></h1>
61
93
< div id ="fixer "> </ div >
62
94
< div id ="fixer0 "> </ div >
63
95
96
+ < div id ="top "> </ div >
97
+ < div id ="bottom "> </ div >
98
+ < div id ="left "> </ div >
99
+ < div id ="right "> </ div >
100
+
64
101
< button id ="btnOptions "> options</ button >
65
102
< dialog id ="options ">
66
103
< header >
Original file line number Diff line number Diff line change 44
44
background-color : rgb (0 0 255 / 0.2 );
45
45
inset : 0 ;
46
46
}
47
+
48
+ # bottom , # top {
49
+ position : fixed;
50
+ height : 5px ;
51
+ pointer-events : none;
52
+ background : lime;
53
+ z-index : 1 ;
54
+ width : 75vw ;
55
+ left : 12.5vw ;
56
+ }
57
+ # bottom {
58
+ bottom : 0 ;
59
+ }
60
+ # top {
61
+ top : 0
62
+ }
63
+
64
+ # left , # right {
65
+ position : fixed;
66
+ width : 5px ;
67
+ pointer-events : none;
68
+ background : hotpink;
69
+ z-index : 1 ;
70
+ height : 75vh ;
71
+ top : 12.5vh ;
72
+ }
73
+ # left {
74
+ left : 0 ;
75
+ }
76
+ # right {
77
+ right : 0
78
+ }
47
79
</ style >
48
80
</ head >
49
81
@@ -61,6 +93,11 @@ <h1><code>viewport-fit=cover</code></h1>
61
93
< div id ="fixer "> </ div >
62
94
< div id ="fixer0 "> </ div >
63
95
96
+ < div id ="top "> </ div >
97
+ < div id ="bottom "> </ div >
98
+ < div id ="left "> </ div >
99
+ < div id ="right "> </ div >
100
+
64
101
< button id ="btnOptions "> options</ button >
65
102
< dialog id ="options ">
66
103
< header >
You can’t perform that action at this time.
0 commit comments