From 5904d197e1d4318c4fefb12bf406c921fbd123f3 Mon Sep 17 00:00:00 2001 From: Traian Captan Date: Thu, 30 Nov 2023 09:58:23 -0800 Subject: [PATCH] Add auto sizes wpt rendering tests Also update tests in size-auto to match spec update: https://github.com/whatwg/html/pull/9493 Spec: https://html.spec.whatwg.org/#parsing-a-sizes-attribute https://whatpr.org/html/9493/images.html#parsing-a-sizes-attribute R=pdr Bug: 1359051 Change-Id: I77ecbfef3a5a63101929f67025699550cc7f6413 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5064461 Commit-Queue: Traian Captan Reviewed-by: Philip Rogers Cr-Commit-Position: refs/heads/main@{#1231380} --- .../reference/sizes-auto-rendering-ref.html | 8 ++++ .../sizes/sizes-auto-rendering-2.html | 25 ++++++++++++ .../sizes/sizes-auto-rendering-3.html | 25 ++++++++++++ .../sizes/sizes-auto-rendering-dynamic.html | 38 +++++++++++++++++++ .../sizes/sizes-auto-rendering.html | 26 +++++++++++++ .../the-img-element/sizes/sizes-auto.html | 24 +++++++----- 6 files changed, 137 insertions(+), 9 deletions(-) create mode 100644 html/semantics/embedded-content/the-img-element/sizes/reference/sizes-auto-rendering-ref.html create mode 100644 html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-2.html create mode 100644 html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-3.html create mode 100644 html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-dynamic.html create mode 100644 html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering.html diff --git a/html/semantics/embedded-content/the-img-element/sizes/reference/sizes-auto-rendering-ref.html b/html/semantics/embedded-content/the-img-element/sizes/reference/sizes-auto-rendering-ref.html new file mode 100644 index 00000000000000..221930fddb888e --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/sizes/reference/sizes-auto-rendering-ref.html @@ -0,0 +1,8 @@ + +Auto sizes rendering + + diff --git a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-2.html b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-2.html new file mode 100644 index 00000000000000..75d1884e34bf9f --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-2.html @@ -0,0 +1,25 @@ + + +Auto sizes rendering + + + + + + diff --git a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-3.html b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-3.html new file mode 100644 index 00000000000000..71ed90ebbec9e1 --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-3.html @@ -0,0 +1,25 @@ + + +Auto sizes rendering + + + + + + diff --git a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-dynamic.html b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-dynamic.html new file mode 100644 index 00000000000000..901c6f2e096c2c --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-dynamic.html @@ -0,0 +1,38 @@ + + +Auto sizes dynamic rendering + + + + + + diff --git a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering.html b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering.html new file mode 100644 index 00000000000000..e972f69c20d702 --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering.html @@ -0,0 +1,26 @@ + + +Auto sizes rendering + + + + + + diff --git a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto.html b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto.html index 41385edd33f1e7..6c1a741f2bfd51 100644 --- a/html/semantics/embedded-content/the-img-element/sizes/sizes-auto.html +++ b/html/semantics/embedded-content/the-img-element/sizes/sizes-auto.html @@ -1,5 +1,6 @@ img parse a sizes attribute: sizes=auto +