mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Apply type presentational hint for HTMLLIElement
This commit is contained in:
committed by
Tim Ledbetter
parent
74bf7bc28e
commit
2550b602ab
Notes:
github-actions[bot]
2025-02-21 01:26:25 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2550b602ab6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3614
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/#lists:presentational-hints">
|
||||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#attribute-case">
|
||||
<meta name="assert" content="ul@type + li@type values are ASCII case-insensitive">
|
||||
<script src="../../../../resources/testharness.js"></script>
|
||||
<script src="../../../../resources/testharnessreport.js"></script>
|
||||
<ul type="circle"><li type="disc"></ul>
|
||||
<ul type="circle"><li type="DiSc"></ul>
|
||||
<ul type="circle"><li type="diſc"></ul>
|
||||
<ul type="circle"><li type="square"></ul>
|
||||
<ul type="circle"><li type="SqUaRe"></ul>
|
||||
<ul type="circle"><li type="ſquare"></ul>
|
||||
<script>
|
||||
const li = document.querySelectorAll("li");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(li[0]).getPropertyValue("list-style-type"),
|
||||
"disc", "lowercase valid");
|
||||
assert_equals(getComputedStyle(li[1]).getPropertyValue("list-style-type"),
|
||||
"disc", "mixed case valid");
|
||||
assert_equals(getComputedStyle(li[2]).getPropertyValue("list-style-type"),
|
||||
"circle", "non-ASCII invalid");
|
||||
}, "keyword disc");
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(li[3]).getPropertyValue("list-style-type"),
|
||||
"square", "lowercase valid");
|
||||
assert_equals(getComputedStyle(li[4]).getPropertyValue("list-style-type"),
|
||||
"square", "mixed case valid");
|
||||
assert_equals(getComputedStyle(li[5]).getPropertyValue("list-style-type"),
|
||||
"circle", "non-ASCII invalid");
|
||||
}, "keyword square");
|
||||
</script>
|
||||
Reference in New Issue
Block a user