Skip to content

Truly independent web browser

697 B
Raw Blame
/*
 * Copyright (c) 2018-2020, Andreas Kling <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/HTML/HTMLElement.h>

namespace Web::HTML {

class HTMLFontElement final : public HTMLElement {
    WEB_WRAPPABLE(HTMLFontElement, HTMLElement);
    GC_DECLARE_ALLOCATOR(HTMLFontElement);

public:
    virtual ~HTMLFontElement() override;

    virtual bool is_presentational_hint(Utf16FlyString const&) const override;
    virtual void apply_presentational_hints(Vector<CSS::StyleProperty>&) const override;

    static Optional<CSS::Keyword> parse_legacy_font_size(Utf16View);

private:
    HTMLFontElement(DOM::Document&, DOM::QualifiedName);
};

}