2020-08-01 05:07:00 +03:00
|
|
|
/*
|
2021-04-28 23:46:44 +03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-08-01 05:07:00 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 05:07:00 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-29 02:58:13 +03:00
|
|
|
#include <LibWeb/DOM/ARIARoleNames.h>
|
2020-08-01 05:07:00 +03:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
class HTMLTableCaptionElement final : public HTMLElement {
|
2022-08-28 14:42:07 +03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLTableCaptionElement, HTMLElement);
|
|
|
|
|
2020-08-01 05:07:00 +03:00
|
|
|
public:
|
2022-08-28 14:42:07 +03:00
|
|
|
virtual ~HTMLTableCaptionElement() override;
|
2020-08-01 05:07:00 +03:00
|
|
|
|
2022-12-21 13:05:03 +03:00
|
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
|
|
|
|
2022-11-29 02:58:13 +03:00
|
|
|
// https://www.w3.org/TR/html-aria/#el-caption
|
2023-01-09 03:23:00 +03:00
|
|
|
virtual DeprecatedFlyString default_role() const override { return DOM::ARIARoleNames::caption; }
|
2022-11-29 02:58:13 +03:00
|
|
|
|
2022-08-28 14:42:07 +03:00
|
|
|
private:
|
2022-02-18 23:00:52 +03:00
|
|
|
HTMLTableCaptionElement(DOM::Document&, DOM::QualifiedName);
|
2020-08-01 05:07:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|