mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00:00
LibWeb: Implement HTMLImageElement.fetchPriority
This commit is contained in:
parent
956106c6d8
commit
8315ad6759
Notes:
sideshowbarker
2024-07-17 00:37:23 +09:00
Author: https://github.com/jamierocks
Commit: 8315ad6759
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 26 additions and 2 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue