mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'
This commit is contained in:
parent
619a46113f
commit
1c6b303ef2
396 changed files with 29611 additions and 1967 deletions
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<title>CSS Container Queries Test: ::backdrop appearing conditionally on dialog container</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-queries">
|
||||
<link rel="match" href="top-layer-dialog-backdrop-ref.html">
|
||||
<style>
|
||||
html {
|
||||
/* Prevent multiple layout passes due to scrollbars */
|
||||
overflow: hidden;
|
||||
background: red;
|
||||
}
|
||||
dialog {
|
||||
container-type: size;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
visibility: hidden;
|
||||
}
|
||||
dialog::backdrop {
|
||||
display: none;
|
||||
background-color: green;
|
||||
}
|
||||
@container (width > 1px) {
|
||||
dialog::backdrop {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<dialog id="dialog"></dialog>
|
||||
<script>
|
||||
dialog.showModal();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue