CSSRule.cpp 501 B

123456789101112131415161718192021222324
  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. // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
  9. String CSSRule::css_text() const
  10. {
  11. // The cssText attribute must return a serialization of the CSS rule.
  12. return serialized();
  13. }
  14. // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
  15. void CSSRule::set_css_text(StringView)
  16. {
  17. // On setting the cssText attribute must do nothing.
  18. }
  19. }