Skip to content

Commit e2c66a0

Browse files
committed
Merge pull request #81 from nschonni/49-rebase
Add css3 values for writing-mode fixes #49
2 parents 8b26c99 + b33650a commit e2c66a0

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/css/Properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ var Properties = {
474474
"word-break" : "normal | keep-all | break-all",
475475
"word-spacing" : "<length> | normal | inherit",
476476
"word-wrap" : 1,
477+
"writing-mode" : "horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb | inherit",
477478

478479
//Z
479480
"z-index" : "<integer> | auto | inherit",

tests/css/Validation.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,31 @@
699699
}
700700
}));
701701

702+
suite.add(new ValidationTestCase({
703+
property: "writing-mode",
704+
705+
valid: [
706+
"horizontal-tb",
707+
"vertical-rl",
708+
"vertical-lr",
709+
"lr-tb",
710+
"rl-tb",
711+
"tb-rl",
712+
"bt-rl",
713+
"tb-lr",
714+
"bt-lr",
715+
"lr-bt",
716+
"rl-bt",
717+
"lr",
718+
"rl",
719+
"tb",
720+
"inherit"
721+
],
702722

723+
invalid: {
724+
"foo" : "Expected (horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb | inherit) but found 'foo'."
725+
}
726+
}));
703727

704728
YUITest.TestRunner.add(suite);
705729

0 commit comments

Comments
 (0)