mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb/CSS: Treat *|* selector like * when serializing
1 new WPT pass.
This commit is contained in:
parent
eb98bd1a36
commit
26d71207d4
Notes:
github-actions[bot]
2025-05-16 22:32:12 +00:00
Author: https://github.com/AtkinsSJ
Commit: 26d71207d4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4780
2 changed files with 5 additions and 4 deletions
|
@ -501,7 +501,8 @@ String Selector::serialize() const
|
|||
for (auto& simple_selector : compound_selector.simple_selectors) {
|
||||
if (simple_selector.type == SimpleSelector::Type::Universal) {
|
||||
auto qualified_name = simple_selector.qualified_name();
|
||||
if (qualified_name.namespace_type == SimpleSelector::QualifiedName::NamespaceType::Default)
|
||||
if (qualified_name.namespace_type == SimpleSelector::QualifiedName::NamespaceType::Default
|
||||
|| qualified_name.namespace_type == SimpleSelector::QualifiedName::NamespaceType::Any)
|
||||
continue;
|
||||
// FIXME: I *think* if we have a namespace prefix that happens to equal the same as the default namespace,
|
||||
// we also should skip it. But we don't have access to that here. eg:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue