1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibWeb: Port the CSS namespace to IDL

This commit is contained in:
Timothy Flynn 2023-03-15 10:55:53 -04:00 committed by Tim Flynn
parent 020c2b59c4
commit 2d45e1fca5
8 changed files with 97 additions and 117 deletions

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/String.h>
#include <AK/StringView.h>
#include <LibJS/Forward.h>
#include <LibWeb/WebIDL/ExceptionOr.h>
// https://www.w3.org/TR/cssom-1/#namespacedef-css
namespace Web::CSS {
WebIDL::ExceptionOr<String> escape(JS::VM&, StringView identifier);
bool supports(JS::VM&, StringView property, StringView value);
WebIDL::ExceptionOr<bool> supports(JS::VM&, StringView condition_text);
}