From 06a3ca734e0dea262c420d43994e9990830f2321 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 4 Apr 2024 13:21:50 -0400 Subject: [PATCH] LibWeb: Handle changes to an input element's "multiple" attribute Update the shadow tree so that the attribute is reflected on the page. --- Tests/LibWeb/Layout/expected/input-file.txt | 26 +++++++++++++++++++ Tests/LibWeb/Layout/input/input-file.html | 7 +++++ .../LibWeb/HTML/HTMLInputElement.cpp | 2 ++ 3 files changed, 35 insertions(+) diff --git a/Tests/LibWeb/Layout/expected/input-file.txt b/Tests/LibWeb/Layout/expected/input-file.txt index 97611b25eaa..5b8a2a4c181 100644 --- a/Tests/LibWeb/Layout/expected/input-file.txt +++ b/Tests/LibWeb/Layout/expected/input-file.txt @@ -5,6 +5,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline frag 1 from TextNode start: 0, length: 1, rect: [245,8 8x17] baseline: 13.296875 " " frag 2 from BlockContainer start: 0, length: 0, rect: [253,8 255.34375x21] baseline: 13.296875 + frag 3 from TextNode start: 0, length: 1, rect: [508,8 8x17] baseline: 13.296875 + " " + frag 4 from BlockContainer start: 0, length: 0, rect: [516,8 255.34375x21] baseline: 13.296875 BlockContainer at (8,8) content-size 236.65625x21 inline-block [BFC] children: inline frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 94.375x17] baseline: 13.296875 frag 1 from Label start: 0, length: 0, rect: [116,8 128.28125x17] baseline: 13.296875 @@ -33,6 +36,21 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline "No files selected." TextNode <#text> TextNode <#text> + BlockContainer at (516,8) content-size 255.34375x21 inline-block [BFC] children: inline + frag 0 from BlockContainer start: 0, length: 0, rect: [521,10 103.71875x17] baseline: 13.296875 + frag 1 from Label start: 0, length: 0, rect: [634,8 137.625x17] baseline: 13.296875 + BlockContainer