[ALOY-361] Device Query formFactor overwrite
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-12-06T20:46:46.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Alloy 0.3.4, 2012 Sprint 25 |
Components | XML |
Labels | n/a |
Reporter | David Welch |
Assignee | Unknown |
Created | 2012-11-02T17:21:58.000+0000 |
Updated | 2018-03-07T22:26:08.000+0000 |
Description
I'm running the sample device_query app in the repo and when I run it on an iPad the texts says "iPhone". The ordering in the style sheet is such:
"#osLabel[platform=ios formFactor=tablet]": {
text: "iPad"
},
"#osLabel[platform=ios formFactor=handheld]": {
text: "iPhone"
},
If I reverse it, it works:
"#osLabel[platform=ios formFactor=handheld]": {
text: "iPhone"
},
"#osLabel[platform=ios formFactor=tablet]": {
text: "iPad"
},
Resolved a bug with style prioritization as it relates to formFactor. This test case, and the relevant test apps in the github repository, all sort and apply styles properly now.