mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add default user agent style sheet for Fullscreen API
Matching the fullscreen pseudo class is currently a stub that will be implemented in a future commit.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-23 18:47:01 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/53eae831e28 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7649 Reviewed-by: https://github.com/shannonbooth ✅ Reviewed-by: https://github.com/tcl3
@@ -9,6 +9,7 @@
|
||||
#include <LibWeb/CSS/ComputedProperties.h>
|
||||
#include <LibWeb/CSS/Keyword.h>
|
||||
#include <LibWeb/CSS/Parser/Parser.h>
|
||||
#include <LibWeb/CSS/PseudoClass.h>
|
||||
#include <LibWeb/CSS/SelectorEngine.h>
|
||||
#include <LibWeb/DOM/Attr.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
@@ -557,6 +558,10 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
|
||||
auto focused_area = element.document().focused_area();
|
||||
return focused_area && element.is_inclusive_ancestor_of(*focused_area);
|
||||
}
|
||||
case CSS::PseudoClass::Fullscreen: {
|
||||
// FIXME: Add fullscreen support
|
||||
return false;
|
||||
}
|
||||
case CSS::PseudoClass::FirstChild:
|
||||
if (context.collect_per_element_selector_involvement_metadata) {
|
||||
const_cast<DOM::Element&>(element).set_affected_by_sibling_position_or_count_pseudo_class(true);
|
||||
|
||||
Reference in New Issue
Block a user