B.getStyleValue simplified and generalized
comment and organisation