/src/serenity/Userland/Libraries/LibWeb/CSS/PropertyName.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2024, Sam Atkins <sam@ladybird.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #include <AK/StringView.h> |
10 | | #include <LibWeb/CSS/PropertyID.h> |
11 | | |
12 | | namespace Web::CSS { |
13 | | |
14 | | // https://drafts.css-houdini.org/css-typed-om-1/#custom-property-name-string |
15 | | static bool is_a_custom_property_name_string(StringView string) |
16 | 0 | { |
17 | | // A string is a custom property name string if it starts with two dashes (U+002D HYPHEN-MINUS), like --foo. |
18 | 0 | return string.starts_with("--"sv); |
19 | 0 | } Unexecuted instantiation: Parser.cpp:Web::CSS::is_a_custom_property_name_string(AK::StringView) Unexecuted instantiation: CSS.cpp:Web::CSS::is_a_custom_property_name_string(AK::StringView) |
20 | | |
21 | | } |