It is impossible to set either dropdownCss or containerCss via Settings

Both of these properties are described as "either an object containing css property/value key pairs or a function that returns such an object" but nevertheless both are rendered in javascript as escaped javascript strings, because .writeObject is used instead of .writeFunction in Settings.toJson()