Skip to content

Commit

Permalink
Bug 1866970 [wpt PR 43385] - Add auto sizes wpt rendering tests, a=te…
Browse files Browse the repository at this point in the history
…stonly

Automatic update from web-platform-tests
Add auto sizes wpt rendering tests

Also update tests in size-auto to match spec update:
whatwg/html#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 <tcaptanchromium.org>
Reviewed-by: Philip Rogers <pdrchromium.org>
Cr-Commit-Position: refs/heads/main{#1231380}

--

wpt-commits: 5904d197e1d4318c4fefb12bf406c921fbd123f3
wpt-pr: 43385

UltraBlame original commit: 4b7ff7848d33231d5746355ea34056b07ac6ed1d
  • Loading branch information
marco-c committed Dec 16, 2023
1 parent 322a3d5 commit 19dcd5b
Show file tree
Hide file tree
Showing 6 changed files with 1,141 additions and 29 deletions.
@@ -0,0 +1,71 @@
<
!
doctype
html
>
<
title
>
Auto
sizes
rendering
<
/
title
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
html
.
spec
.
whatwg
.
org
/
multipage
/
images
.
html
#
sizes
-
attributes
"
>
<
img
src
=
"
/
images
/
green
.
png
"
width
=
"
33
"
height
=
"
13
"
>
@@ -0,0 +1,202 @@
<
!
doctype
html
>
<
html
class
=
"
reftest
-
wait
"
>
<
title
>
Auto
sizes
rendering
<
/
title
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
html
.
spec
.
whatwg
.
org
/
multipage
/
images
.
html
#
sizes
-
attributes
"
>
<
link
rel
=
"
match
"
href
=
"
reference
/
sizes
-
auto
-
rendering
-
ref
.
html
"
>
<
script
src
=
"
/
common
/
rendering
-
utils
.
js
"
>
<
/
script
>
<
script
src
=
"
/
common
/
reftest
-
wait
.
js
"
>
<
/
script
>
<
img
id
=
"
testImg
"
loading
=
"
lazy
"
sizes
=
"
auto
"
width
=
"
33
"
height
=
"
13
"
>
<
script
>
function
imageLoaded
(
)
{
waitForAtLeastOneFrame
(
)
.
then
(
takeScreenshot
)
;
}
testImg
.
addEventListener
(
'
load
'
imageLoaded
)
;
testImg
.
setAttribute
(
'
srcset
'
/
images
/
red
.
png
10w
/
images
/
green
.
png
100w
)
;
<
/
script
>

0 comments on commit 19dcd5b

Please sign in to comment.