mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Implement :any-link
and :local-link
pseudo-class selectors
`:any-link` matches links, whether they have been visited or not. `:local-link` matches links to the current URL.
This commit is contained in:
parent
eb8f7b303c
commit
3af8b491b4
7 changed files with 41 additions and 0 deletions
1
Tests/LibWeb/Ref/css-any-link-selector-ref.html
Normal file
1
Tests/LibWeb/Ref/css-any-link-selector-ref.html
Normal file
|
@ -0,0 +1 @@
|
|||
<a href="example.com" style="color: orange">Link</a>
|
6
Tests/LibWeb/Ref/css-any-link-selector.html
Normal file
6
Tests/LibWeb/Ref/css-any-link-selector.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<style>
|
||||
:any-link {
|
||||
color: orange;
|
||||
}
|
||||
</style>
|
||||
<a href="example.com">Link</a>
|
2
Tests/LibWeb/Ref/css-local-link-selector-ref.html
Normal file
2
Tests/LibWeb/Ref/css-local-link-selector-ref.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<a href="" style="color: orange">Local</a>
|
||||
<a href="example.com">Not local</a>
|
7
Tests/LibWeb/Ref/css-local-link-selector.html
Normal file
7
Tests/LibWeb/Ref/css-local-link-selector.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<style>
|
||||
:local-link {
|
||||
color: orange;
|
||||
}
|
||||
</style>
|
||||
<a href="">Local</a>
|
||||
<a href="example.com">Not local</a>
|
|
@ -5,8 +5,10 @@
|
|||
"square-flex.html": "square-ref.html",
|
||||
"separate-borders-inline-table.html": "separate-borders-ref.html",
|
||||
"opacity-stacking.html": "opacity-stacking-ref.html",
|
||||
"css-any-link-selector.html": "css-any-link-selector-ref.html",
|
||||
"css-gradient-currentcolor.html": "css-gradient-currentcolor-ref.html",
|
||||
"css-lang-selector.html": "css-lang-selector-ref.html",
|
||||
"css-local-link-selector.html": "css-local-link-selector-ref.html",
|
||||
"css-gradients.html": "css-gradients-ref.html",
|
||||
"svg-symbol.html": "svg-symbol-ref.html",
|
||||
"svg-gradient-spreadMethod.html": "svg-gradient-spreadMethod-ref.html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue