diff options
Diffstat (limited to 'testing/web-platform/tests/html/rendering/bidi-rendering/unicode-bidi-ua-rules.html')
-rw-r--r-- | testing/web-platform/tests/html/rendering/bidi-rendering/unicode-bidi-ua-rules.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/rendering/bidi-rendering/unicode-bidi-ua-rules.html b/testing/web-platform/tests/html/rendering/bidi-rendering/unicode-bidi-ua-rules.html new file mode 100644 index 0000000000..78bfb80e6f --- /dev/null +++ b/testing/web-platform/tests/html/rendering/bidi-rendering/unicode-bidi-ua-rules.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<title>unicode-bidi UA stylesheet rules</title> +<link rel="author" href="masonf@chromium.org"> +<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#bidi-rendering"> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> + +<body> +<script> + const elements = ['address', 'blockquote', 'center', 'div', 'figure', + 'figcaption', 'footer', 'form', 'header', 'hr', 'legend', 'listing', + 'main', 'p', 'plaintext', 'pre', 'summary', 'xmp', 'article', 'aside', + 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hgroup', 'nav', 'section', 'search', + 'table', 'caption', 'colgroup', 'col', 'thead', 'tbody', 'tfoot', 'tr', + 'td', 'th', 'dir', 'dd', 'dl', 'dt', 'menu', 'ol', 'ul', 'li', 'bdi', + 'output']; + for(let tagname of elements) { + test((t) => { + const element = document.createElement(tagname); + t.add_cleanup(() => element.remove()); + document.body.appendChild(element); + assert_equals(window.getComputedStyle(element, "").unicodeBidi,'isolate'); + },`UA stylesheet rule for unicode-bidi, for <${tagname}>`); + } +</script> |