mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Implement the HTMLLinkElement.sheet attribute
This returns the link element's associated style sheet.
This commit is contained in:
committed by
Alexander Kalenik
parent
db597843d6
commit
1821896ecf
Notes:
github-actions[bot]
2025-03-17 13:48:19 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1821896ecf7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3969
15
Tests/LibWeb/Text/input/css/HTMLLinkElement-sheet.html
Normal file
15
Tests/LibWeb/Text/input/css/HTMLLinkElement-sheet.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
const link = document.createElement("link");
|
||||
link.rel = "stylesheet";
|
||||
document.head.appendChild(link);
|
||||
println(`sheet property initial value: ${link.sheet}`);
|
||||
link.href = "../valid.css";
|
||||
link.onload = () => {
|
||||
println(`Sheet property after stylesheet loaded: ${link.sheet}`);
|
||||
done();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user