From 50de129c1b8e2abadc9acf77f0db3579410f45bd Mon Sep 17 00:00:00 2001 From: Eugene Zemtsov Date: Tue, 6 Oct 2026 22:30:16 -0700 Subject: [PATCH] Throw TypeError if computed display dimension is zero (#926) --- index.src.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.src.html b/index.src.html index 893d83c1..38ed48ad 100644 --- a/index.src.html +++ b/index.src.html @@ -4175,12 +4175,14 @@ 4. Let |displayHeight| be `|frame|'s {{VideoFrame/[[visible height]]}} * |heightScale|`, rounded to the nearest integer. - 5. If |rotation| is equal to `0` or `180`: + 5. If |displayWidth| is equal to `0` or |displayHeight| is equal to `0`, + throw a {{TypeError}}. + 6. If |rotation| is equal to `0` or `180`: 1. Assign |displayWidth| to |frame|'s {{VideoFrame/[[display width]]}}. 2. Assign |displayHeight| to |frame|'s {{VideoFrame/[[display height]]}}. - 6. Otherwise: + 7. Otherwise: 1. Assign |displayHeight| to |frame|'s {{VideoFrame/[[display width]]}}. 2. Assign |displayWidth| to |frame|'s