2021-02-21 13:45:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-02-21 13:45:26 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/CSS/CSSRule.h>
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
CSSRule::~CSSRule()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-10-01 19:57:45 +02:00
|
|
|
// https://drafts.csswg.org/cssom/#dom-cssrule-csstext
|
|
|
|
String CSSRule::css_text() const
|
|
|
|
{
|
|
|
|
// The cssText attribute must return a serialization of the CSS rule.
|
|
|
|
return serialized();
|
|
|
|
}
|
|
|
|
|
|
|
|
// https://drafts.csswg.org/cssom/#dom-cssrule-csstext
|
|
|
|
void CSSRule::set_css_text(StringView)
|
|
|
|
{
|
|
|
|
// On setting the cssText attribute must do nothing.
|
|
|
|
}
|
|
|
|
|
2021-02-21 13:45:26 +02:00
|
|
|
}
|