mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb/CSS: Add support for unicode-bidi
property
This commit is contained in:
parent
16f2f6aa42
commit
77761e123d
Notes:
github-actions[bot]
2024-10-07 13:58:14 +00:00
Author: https://github.com/khaledev
Commit: 77761e123d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1618
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 75 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue