mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibHTML: Implement immediate-child selectors (#foo > #bar)
This commit is contained in:
parent
156b35742a
commit
cad326f323
2 changed files with 25 additions and 2 deletions
|
@ -11,6 +11,10 @@
|
|||
border-width: 1;
|
||||
border-color: #00ff00;
|
||||
}
|
||||
div > .boo > .bee {
|
||||
background-color: #000000;
|
||||
color: #ff00ff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -28,5 +32,18 @@
|
|||
<div>hello</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="boo">
|
||||
<div class="bee">Spooky!</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="boo">
|
||||
<div>
|
||||
<div class="bee">
|
||||
Not spooky!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue