diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 6be4b78483a..df96fa56528 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -1221,6 +1221,14 @@ nsComboboxControlFrame::CreateAnonymousContent(nsTArray& aElements) mButtonContent->SetAttr(kNameSpaceID_None, nsGkAtoms::tabindex, NS_LITERAL_STRING("-1"), false); + WritingMode wm = GetWritingMode(); + if (wm.IsVertical()) { + mButtonContent->SetAttr(kNameSpaceID_None, nsGkAtoms::orientation, + wm.IsVerticalRL() ? NS_LITERAL_STRING("left") + : NS_LITERAL_STRING("right"), + false); + } + if (!aElements.AppendElement(mButtonContent)) return NS_ERROR_OUT_OF_MEMORY;