mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb/CSS: Implement revert-layer
With the introduction of the cascade layer, the 5th CSS-wide keyword, `revert-layer`, has been added.
This commit is contained in:
parent
71d977b791
commit
bea7eec518
Notes:
github-actions[bot]
2024-09-11 21:31:19 +00:00
Author: https://github.com/An-n-ya 🔰
Commit: bea7eec518
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1371
Reviewed-by: https://github.com/AtkinsSJ ✅
8 changed files with 70 additions and 5 deletions
|
@ -326,10 +326,11 @@ public:
|
|||
|
||||
// https://www.w3.org/TR/css-values-4/#common-keywords
|
||||
// https://drafts.csswg.org/css-cascade-4/#valdef-all-revert
|
||||
bool is_css_wide_keyword() const { return is_inherit() || is_initial() || is_revert() || is_unset(); }
|
||||
bool is_css_wide_keyword() const { return is_inherit() || is_initial() || is_revert() || is_unset() || is_revert_layer(); }
|
||||
bool is_inherit() const { return to_keyword() == Keyword::Inherit; }
|
||||
bool is_initial() const { return to_keyword() == Keyword::Initial; }
|
||||
bool is_revert() const { return to_keyword() == Keyword::Revert; }
|
||||
bool is_revert_layer() const { return to_keyword() == Keyword::RevertLayer; }
|
||||
bool is_unset() const { return to_keyword() == Keyword::Unset; }
|
||||
|
||||
bool has_auto() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue