Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1203] TSS Platform Evaluation fails when there are spaces between the object and platform

GitHub Issuen/a
Resolution Date2014-12-16T14:38:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
LabelsPlatform, Space, TSS
ReporterScott Davenport
AssigneeTim Poulsen


When I am in a style sheet and specifying a platform if I have a space between the object and platform specification the style sheet is not applied. I've seen it with a space in several examples so thought I should report it. https://gist.github.com/skdavenportAppC/7198caaed4593048a5b9


  1. Ingo Muschenetz 2014-12-16

    [~sliang] What does the CSS spec say?
  2. Shuo Liang 2014-12-16

    Seems CSS spec only says space is used to combine different tags in different levels, like "td .a {}" for
            <ul class='a'>
    It does not mention something like our condition.
  3. Ingo Muschenetz 2014-12-16

    http://www.w3.org/TR/CSS2/selector.html#attribute-selectors http://stackoverflow.com/questions/5930898/what-are-the-rules-around-whitespace-in-attribute-selectors So, not a bug. Expected behavior we should document and fix our examples (unless our examples intend to have the space)
  4. Shuo Liang 2014-12-16

    en, ye make sense. should move to doc team.
  5. Tim Poulsen 2014-12-16

    This is documented behavior: http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Styles_and_Themes-section-35621526_AlloyStylesandThemes-Platform-SpecificStyles {quote} Place a set of square brackets ([]) directly after the name of the markup element, class name or id name in the TSS file. Do NOT place a space in between the name and brackets. The condition statements will be ignored. {quote}
  6. Eric Merriman 2018-03-07

    Closing as invalid. If this is incorrect, please reopen.

JSON Source