diff options
Diffstat (limited to 'testing/web-platform/tests/html/rendering/bidi-rendering/slot-no-isolate-001.html')
-rw-r--r-- | testing/web-platform/tests/html/rendering/bidi-rendering/slot-no-isolate-001.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/rendering/bidi-rendering/slot-no-isolate-001.html b/testing/web-platform/tests/html/rendering/bidi-rendering/slot-no-isolate-001.html new file mode 100644 index 0000000000..bb2e927c08 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/bidi-rendering/slot-no-isolate-001.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<title>HTML Rendering: slot element has unicode-bidi: isolate</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/"> +<link rel="author" title="Google" href="http://www.google.com/"> +<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#bidi-rendering"> +<link rel="help" href="https://github.com/whatwg/html/pull/9880"> +<link rel="match" href="slot-no-isolate-001-ref.html"> + +<div>א-<span id="e">ב</span></div> + +<div id="v"></div> + +<script> + +let e = document.getElementById("e"); +let root = e.attachShadow({mode: "open"}); +// use display:inline to override default display:contents +root.innerHTML = "<slot style='display:inline'>\u05D2</slot>"; +let val = getComputedStyle(root.querySelector("slot")).unicodeBidi; +document.getElementById("v").innerText = val; + +</script> |