mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/CSS: Implement cascade layers (aka @layer
)
This is done quite simply for now, there are certainly optimizations that can and should be made later. With this we now pass: - http://wpt.live/css/css-cascade/layer-basic.html - http://wpt.live/css/css-cascade/layer-important.html - http://wpt.live/css/css-cascade/layer-statement-copy-crash.html - http://wpt.live/css/css-cascade/layer-stylesheet-sharing-important.html - http://wpt.live/css/css-cascade/layer-stylesheet-sharing.html - http://wpt.live/css/css-cascade/layer-vs-inline-style.html
This commit is contained in:
parent
cbb4be3e5e
commit
a50da405e9
Notes:
github-actions[bot]
2024-09-06 05:50:49 +00:00
Author: https://github.com/AtkinsSJ
Commit: a50da405e9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1291
6 changed files with 799 additions and 12 deletions
|
@ -46,6 +46,11 @@ CSSStyleDeclaration* CSSStyleRule::style()
|
|||
return m_declaration;
|
||||
}
|
||||
|
||||
FlyString CSSStyleRule::qualified_layer_name() const
|
||||
{
|
||||
return parent_layer_internal_qualified_name();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#serialize-a-css-rule
|
||||
String CSSStyleRule::serialized() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue