Skip to content

Commit 846f20d

Browse files
committed
Merge pull request #130 from renatoi/text-align-values
Add support for new text-align values
2 parents c612cee + c4b9843 commit 846f20d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ var Properties = {
469469
"target-name" : 1,
470470
"target-new" : 1,
471471
"target-position" : 1,
472-
"text-align" : "left | right | center | justify | inherit" ,
472+
"text-align" : "left | right | center | justify | match-parent | start | end | inherit" ,
473473
"text-align-last" : 1,
474474
"text-decoration" : 1,
475475
"text-emphasis" : 1,

tests/css/Validation.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,25 @@
791791
}));
792792
});
793793

794+
suite.add(new ValidationTestCase({
795+
property: "text-align",
796+
797+
valid: [
798+
"left",
799+
"right",
800+
"center",
801+
"justify",
802+
"match-parent",
803+
"start",
804+
"end",
805+
"inherit"
806+
],
807+
808+
invalid: {
809+
"foo" : "Expected (left | right | center | justify | match-parent | start | end | inherit) but found 'foo'."
810+
}
811+
}));
812+
794813
suite.add(new ValidationTestCase({
795814
property: "text-rendering",
796815

0 commit comments

Comments
 (0)