LibWeb/CSS: Parse the ::slotted pseudo-element

This commit is contained in:
Shannon Booth 2025-07-12 16:15:06 +12:00 committed by Sam Atkins
commit 9054ff29f0
Notes: github-actions[bot] 2025-07-15 12:55:25 +00:00
10 changed files with 141 additions and 21 deletions

View file

@ -294,6 +294,11 @@ String Selector::PseudoElementSelector::serialize() const
}
m_value.visit(
[&builder](NonnullRefPtr<Selector> const& compund_selector) {
builder.append('(');
builder.append(compund_selector->serialize());
builder.append(')');
},
[&builder](PTNameSelector const& pt_name_selector) {
builder.append('(');
if (pt_name_selector.is_universal)