mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision b'd1192ca239e944dc6cdbcd079e1c16227e08e30c'
This commit is contained in:
parent
69b272b4e1
commit
ec63c43030
233 changed files with 5065 additions and 1252 deletions
|
@ -281,6 +281,9 @@
|
|||
@container style(--reg-length: 10px) {
|
||||
#reg-px { color: green; }
|
||||
}
|
||||
@container style(--reg-length: initial) {
|
||||
#reg-px-initial { color: green; }
|
||||
}
|
||||
|
||||
#reg-container-font-relative {
|
||||
--reg-length: 10px;
|
||||
|
@ -303,10 +306,21 @@
|
|||
@container style(--reg-length: 50cqi) {
|
||||
#reg-container-relative { color: green; }
|
||||
}
|
||||
|
||||
#reg-container-initial {
|
||||
--reg-length: 10px;
|
||||
}
|
||||
@container style(--reg-length: 10px) {
|
||||
#reg-initial-value { color: green; }
|
||||
}
|
||||
@container style(--reg-length: initial) {
|
||||
#reg-initial-keyword { color: green; }
|
||||
}
|
||||
</style>
|
||||
<div id="registered">
|
||||
<div id="reg-container-px">
|
||||
<div id="reg-px"></div>
|
||||
<div id="reg-px-initial"></div>
|
||||
</div>
|
||||
<div id="reg-container-font-relative">
|
||||
<div id="reg-font-relative"></div>
|
||||
|
@ -317,12 +331,20 @@
|
|||
<div id="reg-container-container-relative">
|
||||
<div id="reg-container-relative"></div>
|
||||
</div>
|
||||
<div id="reg-container-initial">
|
||||
<div id="reg-initial-value"></div>
|
||||
<div id="reg-initial-keyword"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-px")).color, green);
|
||||
}, "Match registered <length> custom property with px.");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-px-initial")).color, green);
|
||||
}, "Match registered <length> custom property with px via initial keyword.");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-font-relative")).color, green);
|
||||
}, "Match registered <length> custom property with em in query.");
|
||||
|
@ -334,4 +356,12 @@
|
|||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-container-relative")).color, green);
|
||||
}, "Match registered <length> custom property with cqi unit.");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-initial-value")).color, green);
|
||||
}, "Match registered <length> custom property with initial value.");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#reg-initial-keyword")).color, green);
|
||||
}, "Match registered <length> custom property with initial value via initial keyword.");
|
||||
</script>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<style>
|
||||
.box { width: 100px; height: 100px; border: 1px solid black; }
|
||||
.hidden { content-visibility: hidden }
|
||||
#dialog { outline: none; }
|
||||
</style>
|
||||
|
||||
<div id=container class=box>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<style>
|
||||
.box { width: 100px; height: 100px; border: 1px solid black; }
|
||||
dialog { outline: none; }
|
||||
</style>
|
||||
|
||||
<div id=container class=box>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue