The $element->getCssClass() call in the backend form/renderer/fieldset/element.phtml template looks like a bug because an element's CSS class should be accessed by $element->getClass() (and my fix)

The the code:

https://github.com/magento/magento2/blob/2.0.0/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml#L17-L17

The $element->getCssClass() call looks like a bug because the \Magento\Framework\Data\Form\Element\AbstractElement class stores its custom css classes in the class property, not css_class:

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/Data/Form/Element/AbstractElement.php#L249-L260

My fix

Change the line https://github.com/magento/magento2/blob/2.0.0/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml#L17-L17

to the new one:

$fieldClass = "admin__field field field-{$element->getId()} {$element->getClass()}";

https://github.com/magento/magento2/issues/2512