LibWeb: Implement CSSImportRule.supportsText

Returns the supports condition specified by the given import at-rule.
This commit is contained in:
Tim Ledbetter 2025-03-19 11:32:34 +00:00 committed by Jelle Raaijmakers
parent c37a47f76f
commit 5d57723ebf
Notes: github-actions[bot] 2025-03-19 15:43:53 +00:00
7 changed files with 35 additions and 3 deletions

View file

@ -171,4 +171,11 @@ void CSSImportRule::set_style_sheet(GC::Ref<CSSStyleSheet> style_sheet)
m_document->invalidate_style(DOM::StyleInvalidationReason::CSSImportRule);
}
Optional<String> CSSImportRule::supports_text() const
{
if (!m_supports)
return {};
return m_supports->to_string();
}
}