mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 21:59:21 +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:
committed by
Andreas Kling
parent
cbb4be3e5e
commit
a50da405e9
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user