Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Class Selector Name Mangling

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43420
    drhees
    Member

    I have been looking into CSS coding methodologies like SMACSS and OOCSS. After doing some homework and inspecting the styles of larger sites (e.g. Google, Facebook) I have noticed very mangled selector names, such as ._50x4 with no little or no stylistic or content semantic meaning.

    I am wondering if these larger sites are using some type of name mangling system for their css selector naming? Or has anyone used such insane naming convention?

    #128372
    Paulie_D
    Member

    Well those are classes, not selectors, but if they are working with HUGE team, and one must assume they are, then internal ‘helper’ classes MIGHT be appropriate.

    Classes are not required to be semantic and as long as they are clearly understood by the the whole team there is probably no harm.

    I wouldn’t **encourage** it…but then I’m not in charge for a development team for multi-billion $ companies

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.