mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add support for fullscreen #10102
This commit is contained in:
parent
c3c086e521
commit
55f0e56224
33 changed files with 454 additions and 30 deletions
|
@ -286,3 +286,25 @@ video { object-fit: contain; }
|
|||
|
||||
|
||||
textarea { white-space: pre-wrap; }
|
||||
|
||||
*|*:not(:root):fullscreen {
|
||||
position:fixed !important;
|
||||
top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
|
||||
margin:0 !important;
|
||||
box-sizing:border-box !important;
|
||||
min-width:0 !important;
|
||||
max-width:none !important;
|
||||
min-height:0 !important;
|
||||
max-height:none !important;
|
||||
width:100% !important;
|
||||
height:100% !important;
|
||||
transform:none !important;
|
||||
|
||||
/* intentionally not !important */
|
||||
object-fit:contain;
|
||||
}
|
||||
|
||||
iframe:fullscreen {
|
||||
border:none !important;
|
||||
padding:0 !important;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue