mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 13:57:04 +00:00
LibHTML: Only actually-linked <a> elements should be blue+underlined
Turns out this just needed a little push in the selector engine. :^)
This commit is contained in:
@@ -89,7 +89,7 @@ li {
|
||||
margin-bottom: 2;
|
||||
}
|
||||
|
||||
a {
|
||||
a:link {
|
||||
color: -libhtml-link;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ bool matches(const Selector::Component& component, const Element& element)
|
||||
case Selector::Component::PseudoClass::None:
|
||||
break;
|
||||
case Selector::Component::PseudoClass::Link:
|
||||
ASSERT_NOT_REACHED();
|
||||
if (!element.is_link())
|
||||
return false;
|
||||
break;
|
||||
case Selector::Component::PseudoClass::Hover:
|
||||
if (!matches_hover_pseudo_class(element))
|
||||
|
||||
Reference in New Issue
Block a user