[ALOY-1203] TSS Platform Evaluation fails when there are spaces between the object and platform
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-12-16T14:38:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Styling |
Labels | Platform, Space, TSS |
Reporter | Scott Davenport |
Assignee | Tim Poulsen |
Created | 2014-12-15T16:50:19.000+0000 |
Updated | 2018-03-07T22:28:27.000+0000 |
Description
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
[~sliang] What does the CSS spec say?
Seems CSS spec only says space is used to combine different tags in different levels, like "td .a {}" for
It does not mention something like our condition.
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)
en, ye make sense. should move to doc team.
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}
Closing as invalid. If this is incorrect, please reopen.