1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 08:57:35 +00:00

LibWeb: Add HTMLPreElement width property

This commit is contained in:
Bastiaan van der Plaat 2024-02-20 17:06:36 +01:00 committed by Andrew Kaster
parent 2e8ff1855c
commit 089a98607c
5 changed files with 54 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#include <LibWeb/ARIA/Roles.h>
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::HTML {
@ -21,6 +22,9 @@ public:
// https://www.w3.org/TR/html-aria/#el-pre
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; }
WebIDL::Long width() const;
WebIDL::ExceptionOr<void> set_width(WebIDL::Long);
private:
HTMLPreElement(DOM::Document&, DOM::QualifiedName);