LibWeb/CSS: Add support for unicode-bidi property

This commit is contained in:
Khaled Lakehal 2024-10-03 21:09:29 +02:00 committed by Sam Atkins
parent 16f2f6aa42
commit 77761e123d
Notes: github-actions[bot] 2024-10-07 13:58:14 +00:00
10 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const propertyName = "unicode-bidi";
const propertyValues = [
"normal",
"embed",
"isolate",
"bidi-override",
"isolate-override",
"plaintext",
"bad-value",
"bidi-override isolate-override",
"normal bad-value",
"bad-value normal",
];
for (const propertyValue of propertyValues) {
const element = document.createElement("span");
element.style.setProperty(propertyName, propertyValue);
document.body.appendChild(element);
const computedValue = getComputedStyle(element).getPropertyValue(propertyName);
println(computedValue);
element.remove();
}
});
</script>