CSS.h 583 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
  3. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <AK/String.h>
  9. #include <AK/StringView.h>
  10. #include <LibJS/Forward.h>
  11. #include <LibWeb/WebIDL/ExceptionOr.h>
  12. // https://www.w3.org/TR/cssom-1/#namespacedef-css
  13. namespace Web::CSS {
  14. WebIDL::ExceptionOr<String> escape(JS::VM&, StringView identifier);
  15. bool supports(JS::VM&, StringView property, StringView value);
  16. WebIDL::ExceptionOr<bool> supports(JS::VM&, StringView condition_text);
  17. }