Skip to content
Browse files

add a sample selector which uses :has()

  • Loading branch information...
1 parent ecc08a7 commit 626eb013fe84681ff067dc50506e1f00725c5eed @lloyd committed May 29, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 site/index.html
View
6 site/index.html
@@ -55,7 +55,8 @@
},
{
"language": "English",
- "level": "native"
+ "level": "native",
+ "preferred": true
},
{
"language": "Spanish",
@@ -78,7 +79,8 @@
<div class="title"> Choose A Selector... </div>
<div class="selector">.languagesSpoken .language</div>
<div class="selector">.drinkPreference :first-child</div>
- <div class="selector">.name > *</div>
+ <div class="selector">:has(.preferred) > .language</div>
+ <div class="selector">.seatingPreference :nth-child(1)</div>
<div class="selector">.seatingPreference :nth-child(1)</div>
<div class="selector">string:first-child</div>
<div class="selector">."weight"</div>

0 comments on commit 626eb01

Please sign in to comment.
Something went wrong with that request. Please try again.