1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09: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
Notes: sideshowbarker 2024-07-16 23:51:07 +09:00
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);
}