Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-audio-element/video-loading-attr-lazy.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!-- Note: this is a reflection test that will ultimately be removed in favor of using the
html/dom/elements-embedded.js file instead, once not tentative. -->
<link rel="author" title="Squarespace" href="https://www.squarespace.com/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<video id="target" loading="lazy"></video>
<script>
const video = document.getElementById("target");
test(() => {
assert_equals(
video.loading,
"lazy",
"Video loading attribute should be 'lazy' when set to 'lazy'"
);
}, "Video loading attribute should reflect the loading content attribute");
</script>