mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1205787
- Map the writing-mode values from SVG1.1 to their CSS equivalents. r=heycam
This commit is contained in:
parent
15e1767e1c
commit
e80578d2d0
@ -345,6 +345,8 @@ CSS_KEY(local, local)
|
||||
CSS_KEY(logical, logical)
|
||||
CSS_KEY(looped, looped)
|
||||
CSS_KEY(lowercase, lowercase)
|
||||
CSS_KEY(lr, lr)
|
||||
CSS_KEY(lr-tb, lr_tb)
|
||||
CSS_KEY(ltr, ltr)
|
||||
CSS_KEY(luminance, luminance)
|
||||
CSS_KEY(luminosity, luminosity)
|
||||
@ -437,6 +439,8 @@ CSS_KEY(repeat-y, repeat_y)
|
||||
CSS_KEY(reverse, reverse)
|
||||
CSS_KEY(ridge, ridge)
|
||||
CSS_KEY(right, right)
|
||||
CSS_KEY(rl, rl)
|
||||
CSS_KEY(rl-tb, rl_tb)
|
||||
CSS_KEY(rotate, rotate)
|
||||
CSS_KEY(rotate3d, rotate3d)
|
||||
CSS_KEY(rotatex, rotatex)
|
||||
@ -536,6 +540,8 @@ CSS_KEY(table-row, table_row)
|
||||
CSS_KEY(table-row-group, table_row_group)
|
||||
CSS_KEY(tabular-nums, tabular_nums)
|
||||
CSS_KEY(tailed, tailed)
|
||||
CSS_KEY(tb, tb)
|
||||
CSS_KEY(tb-rl, tb_rl)
|
||||
CSS_KEY(text, text)
|
||||
CSS_KEY(text-bottom, text_bottom)
|
||||
CSS_KEY(text-top, text_top)
|
||||
|
@ -1909,6 +1909,12 @@ const KTableValue nsCSSProps::kWritingModeKTable[] = {
|
||||
eCSSKeyword_horizontal_tb, NS_STYLE_WRITING_MODE_HORIZONTAL_TB,
|
||||
eCSSKeyword_vertical_lr, NS_STYLE_WRITING_MODE_VERTICAL_LR,
|
||||
eCSSKeyword_vertical_rl, NS_STYLE_WRITING_MODE_VERTICAL_RL,
|
||||
eCSSKeyword_lr, NS_STYLE_WRITING_MODE_HORIZONTAL_TB,
|
||||
eCSSKeyword_lr_tb, NS_STYLE_WRITING_MODE_HORIZONTAL_TB,
|
||||
eCSSKeyword_rl, NS_STYLE_WRITING_MODE_HORIZONTAL_TB,
|
||||
eCSSKeyword_rl_tb, NS_STYLE_WRITING_MODE_HORIZONTAL_TB,
|
||||
eCSSKeyword_tb, NS_STYLE_WRITING_MODE_VERTICAL_RL,
|
||||
eCSSKeyword_tb_rl, NS_STYLE_WRITING_MODE_VERTICAL_RL,
|
||||
eCSSKeyword_UNKNOWN, -1
|
||||
};
|
||||
|
||||
|
@ -4727,8 +4727,8 @@ if (SpecialPowers.getBoolPref("layout.css.vertical-text.enabled")) {
|
||||
domProp: "writingMode",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "horizontal-tb" ],
|
||||
other_values: [ "vertical-lr", "vertical-rl" ],
|
||||
initial_values: [ "horizontal-tb", "lr", "lr-tb", "rl", "rl-tb" ],
|
||||
other_values: [ "vertical-lr", "vertical-rl", "tb", "tb-rl" ],
|
||||
invalid_values: [ "10px", "30%", "justify", "auto", "1em" ]
|
||||
},
|
||||
"text-orientation": {
|
||||
|
Loading…
Reference in New Issue
Block a user