summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSRule.h
blob: 921e00c389ef62d0018a5800c4a45e41e2c98846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/RefCounted.h>
#include <AK/String.h>
#include <LibWeb/CSS/CSSStyleDeclaration.h>
#include <LibWeb/CSS/Selector.h>

namespace Web::CSS {

class CSSRule : public RefCounted<CSSRule> {
public:
    virtual ~CSSRule();

    enum class Type : u32 {
        Style,
        Import,
        Media,
        __Count,
    };

    virtual StringView class_name() const = 0;
    virtual Type type() const = 0;

    template<typename T>
    bool fast_is() const = delete;

private:
};

}