mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
LibWeb: Implement CSSImportRule.supportsText
Returns the supports condition specified by the given import at-rule.
This commit is contained in:
parent
c37a47f76f
commit
5d57723ebf
Notes:
github-actions[bot]
2025-03-19 15:43:53 +00:00
Author: https://github.com/tcl3
Commit: 5d57723ebf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4001
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
7 changed files with 35 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue