mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 08:00:45 +00:00
14 lines
469 B
HTML
14 lines
469 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div id="root">
|
|
<span></span>
|
|
</div>
|
|
<script>
|
|
const root = document.getElementById("root");
|
|
test(() => {
|
|
const shadowTree = `<slot dir="auto"></slot>`;
|
|
const shadow = document.querySelector("#root").attachShadow({mode: "open"});
|
|
shadow.innerHTML = shadowTree;
|
|
println(`Slot directionality: ${getComputedStyle(shadow.querySelector("slot")).direction}`);
|
|
});
|
|
</script>
|