Newer
Older
minerva / Userland / Libraries / LibWeb / CSS / StyleProperty.h
@minerva minerva on 13 Jul 458 bytes Initial commit
/*
 * Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/FlyString.h>
#include <LibWeb/CSS/PropertyID.h>

namespace Web::CSS {

enum class Important {
    No,
    Yes,
};

struct StyleProperty {
    ~StyleProperty();

    Important important { Important::No };
    CSS::PropertyID property_id;
    NonnullRefPtr<CSSStyleValue const> value;
    FlyString custom_name {};
};

}