Skip to content

Commit 52e3ad3

Browse files
committed
Add support for 'vertical-align: inherit'
1 parent b6a2cbb commit 52e3ad3

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ var Properties = {
523523
"user-select" : "none | text | toggle | element | elements | all | inherit",
524524

525525
//V
526-
"vertical-align" : "auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",
526+
"vertical-align" : "auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length> | inherit",
527527
"visibility" : "visible | hidden | collapse | inherit",
528528
"voice-balance" : 1,
529529
"voice-duration" : 1,

tests/css/Validation.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,28 @@
954954
}
955955
}));
956956

957+
suite.add(new ValidationTestCase({
958+
property: "vertical-align",
959+
960+
valid: [
961+
"baseline",
962+
"sub",
963+
"super",
964+
"top",
965+
"text-top",
966+
"middle",
967+
"bottom",
968+
"text-bottom",
969+
"25%",
970+
"-1px",
971+
"inherit"
972+
],
973+
974+
invalid: {
975+
"foo" : "Expected (auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length> | inherit) but found 'foo'."
976+
}
977+
}));
978+
957979
suite.add(new ValidationTestCase({
958980
property: "z-index",
959981

0 commit comments

Comments
 (0)