{ "id": "104323", "key": "ALOY-361", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14770", "description": "Alloy 0.3.4", "name": "Alloy 0.3.4", "archived": false, "released": true, "releaseDate": "2012-12-14" }, { "id": "14773", "description": "2012 Sprint 24", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-06T20:46:46.000+0000", "created": "2012-11-02T17:21:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14176", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": false, "released": true, "releaseDate": "2012-12-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:08.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "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:\r\n\r\n\"#osLabel[platform=ios formFactor=tablet]\": {\r\ntext: \"iPad\"\r\n},\r\n\"#osLabel[platform=ios formFactor=handheld]\": {\r\ntext: \"iPhone\"\r\n},\r\n\r\nIf I reverse it, it works:\r\n\"#osLabel[platform=ios formFactor=handheld]\": {\r\ntext: \"iPhone\"\r\n},\r\n\"#osLabel[platform=ios formFactor=tablet]\": {\r\ntext: \"iPad\"\r\n},\r\n\r\n", "attachment": [], "flagged": false, "summary": "Device Query formFactor overwrite ", "creator": { "name": "dwelch", "key": "dwelch", "displayName": "David Welch", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dwelch", "key": "dwelch", "displayName": "David Welch", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "alloy 0.3.0\r\nti-mobile-sdk 2.1.3GA and 3.0", "comment": { "comments": [ { "id": "230277", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T20:46:46.000+0000", "updated": "2012-12-06T20:46:46.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }