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-video-element/video-loading-attr-default.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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"></video>
<script>
const video = document.getElementById("target");
test(() => {
assert_equals(
video.loading,
"eager",
"Video loading property should be 'eager' when attribute is not set"
);
}, "Video loading attribute default should be eager when not set");
</script>