mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
Add wpt for :scope pseudo-class
This commit is contained in:
parent
4667e811dd
commit
dd0366c6b9
2 changed files with 39 additions and 0 deletions
|
@ -152045,6 +152045,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/selectors4/scope-without-scoping.html": [
|
||||
[
|
||||
"/css/selectors4/scope-without-scoping.html",
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/selectors4/selector-required.html": [
|
||||
[
|
||||
"/css/selectors4/selector-required.html",
|
||||
|
@ -538672,6 +538684,10 @@
|
|||
"607553f41a33ce3630752cdf027c9f904833a19d",
|
||||
"reftest"
|
||||
],
|
||||
"css/selectors4/scope-without-scoping.html": [
|
||||
"f70b8d60543c5a28fcf955b1780f15c03d60991a",
|
||||
"reftest"
|
||||
],
|
||||
"css/selectors4/selector-required-ref.html": [
|
||||
"815bc765614b4c2e3d8f8f6303e6bb2ee0989c23",
|
||||
"support"
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<title>Selectors Level 4: :scope without scoping</title>
|
||||
<link rel="author" title="Xidorn Quan" href="mailto:me@upsuper.org">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#scope-pseudo">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: red;
|
||||
}
|
||||
:scope > body > div {
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue