CSSRule.cpp 526 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2021, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/CSS/CSSRule.h>
  7. namespace Web::CSS {
  8. CSSRule::~CSSRule()
  9. {
  10. }
  11. // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
  12. String CSSRule::css_text() const
  13. {
  14. // The cssText attribute must return a serialization of the CSS rule.
  15. return serialized();
  16. }
  17. // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
  18. void CSSRule::set_css_text(StringView)
  19. {
  20. // On setting the cssText attribute must do nothing.
  21. }
  22. }