-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1866970 [wpt PR 43385] - Add auto sizes wpt rendering tests, a=te…
…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
Showing
6 changed files
with
1,141 additions
and
29 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
.../semantics/embedded-content/the-img-element/sizes/reference/sizes-auto-rendering-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
" | ||
> |
202 changes: 202 additions & 0 deletions
202
...m/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-auto-rendering-2.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
> |
Oops, something went wrong.