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:
parent
020c2b59c4
commit
2d45e1fca5
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/trflynn89
Commit: 2d45e1fca5
Pull-request: https://github.com/SerenityOS/serenity/pull/17870
Reviewed-by: https://github.com/linusg
8 changed files with 97 additions and 117 deletions
23
Userland/Libraries/LibWeb/CSS/CSS.h
Normal file
23
Userland/Libraries/LibWeb/CSS/CSS.h
Normal 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);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue