From 0ffc338406e2fc1eb2d139c1f2f0e60b77480646 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 10 Apr 2024 20:22:22 -0400 Subject: [PATCH] LibWeb: Support dimension attributes on HTMLVideoElement --- Tests/LibWeb/Layout/expected/html-dimensions.txt | 15 +++++++++++++++ Tests/LibWeb/Layout/input/html-dimensions.html | 2 ++ Userland/Libraries/LibWeb/HTML/HTMLVideoElement.h | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/html-dimensions.txt create mode 100644 Tests/LibWeb/Layout/input/html-dimensions.html diff --git a/Tests/LibWeb/Layout/expected/html-dimensions.txt b/Tests/LibWeb/Layout/expected/html-dimensions.txt new file mode 100644 index 00000000000..2b1d8f9893b --- /dev/null +++ b/Tests/LibWeb/Layout/expected/html-dimensions.txt @@ -0,0 +1,15 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x736 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x720 children: inline + frag 0 from VideoBox start: 0, length: 0, rect: [8,8 320x240] baseline: 240 + frag 1 from VideoBox start: 0, length: 0, rect: [8,248 640x480] baseline: 480 + VideoBox