LibWeb: Implement HTMLImageElement.fetchPriority

This commit is contained in:
Jamie Mansfield 2024-05-27 09:46:36 +01:00 committed by Tim Ledbetter
commit 8315ad6759
Notes: sideshowbarker 2024-07-17 00:37:23 +09:00
4 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,18 @@
<img id="testImg">
<script src="../include.js"></script>
<script>
test(() => {
const img = document.getElementById('testImg');
println(`fetchPriority = ${img.fetchPriority}`);
println('');
img.fetchPriority = 'high';
println(`fetchPriority = ${img.fetchPriority}`);
println('');
img.fetchPriority = 'invalid-value';
println(`fetchPriority = ${img.fetchPriority}`);
});
</script>