Skip to content

Commit 632e210

Browse files
committed
Merge pull request #96 from mattiacci/unicode-bidi
Update support and tests for unicode-bidi
2 parents f9f34c1 + 337ac56 commit 632e210

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ var Properties = {
491491
"transition-timing-function" : 1,
492492

493493
//U
494-
"unicode-bidi" : "normal | embed | bidi-override | inherit",
494+
"unicode-bidi" : "normal | embed | isolate | bidi-override | isolate-override | plaintext | inherit",
495495
"user-modify" : "read-only | read-write | write-only | inherit",
496496
"user-select" : "none | text | toggle | element | elements | all | inherit",
497497

tests/css/Validation.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,24 @@
755755
}
756756
}));
757757

758+
suite.add(new ValidationTestCase({
759+
property: "unicode-bidi",
760+
761+
valid: [
762+
"normal",
763+
"embed",
764+
"isolate",
765+
"bidi-override",
766+
"isolate-override",
767+
"plaintext",
768+
"inherit"
769+
],
770+
771+
invalid: {
772+
"foo" : "Expected (normal | embed | isolate | bidi-override | isolate-override | plaintext | inherit) but found 'foo'."
773+
}
774+
}));
775+
758776
YUITest.TestRunner.add(suite);
759777

760778
})();

0 commit comments

Comments
 (0)