mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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
|
@ -33,6 +33,10 @@ public:
|
|||
static ValueComparingNonnullRefPtr<CSSKeywordValue> const revert_instance = adopt_ref(*new (nothrow) CSSKeywordValue(Keyword::Revert));
|
||||
return revert_instance;
|
||||
}
|
||||
case Keyword::RevertLayer: {
|
||||
static ValueComparingNonnullRefPtr<CSSKeywordValue> const revert_layer_instance = adopt_ref(*new (nothrow) CSSKeywordValue(Keyword::RevertLayer));
|
||||
return revert_layer_instance;
|
||||
}
|
||||
case Keyword::Unset: {
|
||||
static ValueComparingNonnullRefPtr<CSSKeywordValue> const unset_instance = adopt_ref(*new (nothrow) CSSKeywordValue(Keyword::Unset));
|
||||
return unset_instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue