mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Implement HTMLImageElement.fetchPriority
This commit is contained in:
committed by
Tim Ledbetter
parent
956106c6d8
commit
8315ad6759
Notes:
sideshowbarker
2024-07-17 00:37:23 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/8315ad6759 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24 Reviewed-by: https://github.com/tcl3 ✅
18
Tests/LibWeb/Text/input/HTML/img-element-fetch-priority.html
Normal file
18
Tests/LibWeb/Text/input/HTML/img-element-fetch-priority.html
Normal 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>
|
||||
Reference in New Issue
Block a user