Skip to content

Commit

Permalink
vaev-style: Added support for :root.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 26, 2024
1 parent acd5288 commit 7ee514f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/web/vaev-style/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ static bool _match(Pseudo const &s, Markup::Element const &el) {
case Pseudo::LINK:
return _matchLink(el);

case Pseudo::ROOT:
return el.tagName == Html::HTML;

case Pseudo::FIRST_OF_TYPE:
return _matchFirstOfType(el);

Expand Down

0 comments on commit 7ee514f

Please sign in to comment.