LibWeb: Implement plumbing for view transitions

This implements large parts of the CSS view-transitions-1 spec.
This commit is contained in:
Psychpsyo 2025-03-23 12:38:21 +01:00 committed by Sam Atkins
commit 56739b4b16
Notes: github-actions[bot] 2025-09-07 12:59:13 +00:00
22 changed files with 1516 additions and 4 deletions

View file

@ -262,8 +262,13 @@ u32 Selector::specificity() const
break;
}
case SimpleSelector::Type::TagName:
// count the number of type selectors and pseudo-elements in the selector (= C)
++tag_names;
break;
case SimpleSelector::Type::PseudoElement:
// count the number of type selectors and pseudo-elements in the selector (= C)
// FIXME: This needs special handling for view transition pseudos:
// https://drafts.csswg.org/css-view-transitions-1/#named-view-transition-pseudo
++tag_names;
break;
case SimpleSelector::Type::Universal: