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