forked from chromium/chromium
-
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.
Import wpt@c1069562f6d8ddc756d49cef659d20b7a4aca805
Using wpt-import in Chromium 57759fa. With Chromium commits locally applied on WPT: 7a0d5e1 "[Mojo Blob URLs] Handle more navigation cases." Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/18572 Note to sheriffs: This CL imports external tests and adds expectations for those tests; if this CL is large and causes a few new failures, please fix the failures by adding new lines to TestExpectations rather than reverting. See: https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md TBR=kereliuk No-Export: true Change-Id: I1766c08f6187cd0092515c6ab685af8cfae97eaf Reviewed-on: https://chromium-review.googlesource.com/1073921 Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> Reviewed-by: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> Cr-Commit-Position: refs/heads/master@{#562076}
- Loading branch information
1 parent
f7acd09
commit 3e96176
Showing
5 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
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
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
4 changes: 4 additions & 0 deletions
4
...rnal/wpt/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-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,4 @@ | ||
<!doctype html> | ||
<title>Test reference</title> | ||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> | ||
<iframe width="500" height="500" srcdoc='<!doctype html><img alt="FAIL" srcset="/images/green-256x256.png 100w" style="max-width: 100%" sizes="10px">'></iframe> |
20 changes: 20 additions & 0 deletions
20
...external/wpt/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.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,20 @@ | ||
<!doctype html> | ||
<html class="reftest-wait"> | ||
<title>Image intrinsic size specified via sizes attribute reacts properly to media changes</title> | ||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> | ||
<link rel="match" href="sizes-dynamic-001-ref.html"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#sizes-attributes"> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1149357"> | ||
<script> | ||
function frameLoaded(frame) { | ||
frame.width = "500"; | ||
let img = frame.contentDocument.querySelector('img'); | ||
|
||
// Trigger the viewport resize, which will trigger the image load task. | ||
img.offsetWidth; | ||
|
||
// Wait for the image load task to run. | ||
setTimeout(() => document.documentElement.removeAttribute("class"), 0); | ||
} | ||
</script> | ||
<iframe onload="frameLoaded(this)" width="200" height="500" srcdoc='<!doctype html><img srcset="/images/green-256x256.png 100w" style="max-width: 100%" sizes="(min-width: 400px) 10px, 20px">'></iframe> |
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