1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibWeb: Implement the CSS all property

This sets all longhand values to one of initial, inherit, unset or
revert. Note that revert is not supported yet, but will be soon.
This commit is contained in:
Andreas Kling 2023-07-29 10:53:24 +02:00
parent de31a8a425
commit 13d5d47b56
5 changed files with 62 additions and 2 deletions

View file

@ -154,6 +154,8 @@ private:
bool expand_variables(DOM::Element&, Optional<CSS::Selector::PseudoElement>, StringView property_name, HashMap<FlyString, NonnullRefPtr<PropertyDependencyNode>>& dependencies, Parser::TokenStream<Parser::ComponentValue>& source, Vector<Parser::ComponentValue>& dest) const;
bool expand_unresolved_values(DOM::Element&, StringView property_name, Parser::TokenStream<Parser::ComponentValue>& source, Vector<Parser::ComponentValue>& dest) const;
void set_all_properties(DOM::Element&, Optional<CSS::Selector::PseudoElement>, StyleProperties&, StyleValue const&, DOM::Document&, CSS::CSSStyleDeclaration const*) const;
template<typename Callback>
void for_each_stylesheet(CascadeOrigin, Callback) const;