mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibWeb: Support the :last-of-type CSS selector :^)
This commit is contained in:
parent
0eb9a9dd13
commit
1d065aa51b
6 changed files with 25 additions and 0 deletions
12
Base/res/html/misc/last-of-type.html
Normal file
12
Base/res/html/misc/last-of-type.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<style>
|
||||
article :last-of-type {
|
||||
background-color: orange;
|
||||
}
|
||||
</style>
|
||||
<article>
|
||||
<div>This `div` is first.</div>
|
||||
<div>This <span>nested `span` is last</span>!</div>
|
||||
<div>This <em>nested `em` is first</em>, but this <em>nested `em` is last</em>!</div>
|
||||
<b>This `b` qualifies!</b>
|
||||
<div>This is the final `div`!</div>
|
||||
</article>
|
|
@ -38,6 +38,7 @@ span#loadtime {
|
|||
<p>This page loaded in <b><span id="loadtime"></span></b> ms</p>
|
||||
<p>Some small test pages:</p>
|
||||
<ul>
|
||||
<li><a href="last-of-type.html">CSS :last-of-type selector</a></li>
|
||||
<li><a href="first-of-type.html">CSS :first-of-type selector</a></li>
|
||||
<li><a href="background-repeat-test.html">background image with repetition rules</a></li>
|
||||
<li><a href="link-over-zindex-block.html">link elements with background box placed with z-index</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue