2023-05-08 06:57:55 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
|
2023-05-08 06:57:55 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-05 16:19:16 +13:00
|
|
|
#include <AK/FlyString.h>
|
2023-05-08 07:51:03 +02:00
|
|
|
#include <LibWeb/CSS/PropertyID.h>
|
|
|
|
|
2023-05-08 06:57:55 +02:00
|
|
|
namespace Web::CSS {
|
|
|
|
|
2025-05-19 12:51:01 +01:00
|
|
|
enum class Important : u8 {
|
2023-05-08 06:57:55 +02:00
|
|
|
No,
|
|
|
|
Yes,
|
|
|
|
};
|
|
|
|
|
2025-09-26 14:30:43 +01:00
|
|
|
struct WEB_API StyleProperty {
|
2023-05-08 07:51:03 +02:00
|
|
|
~StyleProperty();
|
|
|
|
|
2023-05-08 06:57:55 +02:00
|
|
|
Important important { Important::No };
|
2025-09-26 14:30:43 +01:00
|
|
|
PropertyID property_id;
|
2025-08-08 10:11:51 +01:00
|
|
|
NonnullRefPtr<StyleValue const> value;
|
2023-11-05 16:19:16 +13:00
|
|
|
FlyString custom_name {};
|
2025-07-27 19:41:21 +02:00
|
|
|
|
|
|
|
bool operator==(StyleProperty const& other) const;
|
2023-05-08 06:57:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|