mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb: Add HTMLPreElement width property
This commit is contained in:
parent
2e8ff1855c
commit
089a98607c
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/bplaat
Commit: 089a98607c
Pull-request: https://github.com/SerenityOS/serenity/pull/23261
Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 54 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue