{"action":"created","issue":{"url":"https://api.github.com/repos/rtfeldman/elm-css/issues/59","labels_url":"https://api.github.com/repos/rtfeldman/elm-css/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/rtfeldman/elm-css/issues/59/comments","events_url":"https://api.github.com/repos/rtfeldman/elm-css/issues/59/events","html_url":"https://github.com/rtfeldman/elm-css/issues/59","id":125261323,"number":59,"title":"Opacity or other integer only properties cannot use initial, inherit or unset","user":{"login":"NicholasGW","id":6642497,"avatar_url":"https://avatars.githubusercontent.com/u/6642497?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasGW","html_url":"https://github.com/NicholasGW","followers_url":"https://api.github.com/users/NicholasGW/followers","following_url":"https://api.github.com/users/NicholasGW/following{/other_user}","gists_url":"https://api.github.com/users/NicholasGW/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasGW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasGW/subscriptions","organizations_url":"https://api.github.com/users/NicholasGW/orgs","repos_url":"https://api.github.com/users/NicholasGW/repos","events_url":"https://api.github.com/users/NicholasGW/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasGW/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T20:55:15Z","updated_at":"2016-01-07T13:52:32Z","closed_at":"2016-01-07T13:52:21Z","body":"This is basically because all the other property functions work in such a way that they will be given a function to return a compatible record:\r\n\r\n    ~ display inline\r\n\r\nThis means you can just add any new props to the definition of BasicProperty and they will function. With opacity though, presumably you want to do something like this:\r\n    ~ opacity 0.2\r\n\r\nWhich means opacity currently assume it's getting a number:\r\n    opacity num =\r\n        prop1 \"opacity\" { value = stringToNumber num }\r\n\r\nWhich works, but, can't operate on what initial, inherit, or unset return.\r\n\r\nI suppose we write up \"simpleNum\" or something so you could do\r\n    ~ opacity (simpleNum 0.2)\r\n\r\nBut that seems odd. I'm too new at elm to know the right path, but wanted to post that I got this error when I tried adding opacity to the tests with initial, inherit, unset.\r\n\r\nCheers\r\n\r\nNick"},"comment":{"url":"https://api.github.com/repos/rtfeldman/elm-css/issues/comments/169669354","html_url":"https://github.com/rtfeldman/elm-css/issues/59#issuecomment-169669354","issue_url":"https://api.github.com/repos/rtfeldman/elm-css/issues/59","id":169669354,"user":{"login":"NicholasGW","id":6642497,"avatar_url":"https://avatars.githubusercontent.com/u/6642497?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasGW","html_url":"https://github.com/NicholasGW","followers_url":"https://api.github.com/users/NicholasGW/followers","following_url":"https://api.github.com/users/NicholasGW/following{/other_user}","gists_url":"https://api.github.com/users/NicholasGW/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasGW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasGW/subscriptions","organizations_url":"https://api.github.com/users/NicholasGW/orgs","repos_url":"https://api.github.com/users/NicholasGW/repos","events_url":"https://api.github.com/users/NicholasGW/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasGW/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T13:52:32Z","updated_at":"2016-01-07T13:52:32Z","body":"This is what n is for :)"}}