{"action":"created","issue":{"url":"https://api.github.com/repos/momdo/momdo.github.io/issues/35","labels_url":"https://api.github.com/repos/momdo/momdo.github.io/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/momdo/momdo.github.io/issues/35/comments","events_url":"https://api.github.com/repos/momdo/momdo.github.io/issues/35/events","html_url":"https://github.com/momdo/momdo.github.io/pull/35","id":118190908,"number":35,"title":"[css-2015] Fix section 4.2.","user":{"login":"shinespark","id":12206768,"avatar_url":"https://avatars.githubusercontent.com/u/12206768?v=3","gravatar_id":"","url":"https://api.github.com/users/shinespark","html_url":"https://github.com/shinespark","followers_url":"https://api.github.com/users/shinespark/followers","following_url":"https://api.github.com/users/shinespark/following{/other_user}","gists_url":"https://api.github.com/users/shinespark/gists{/gist_id}","starred_url":"https://api.github.com/users/shinespark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinespark/subscriptions","organizations_url":"https://api.github.com/users/shinespark/orgs","repos_url":"https://api.github.com/users/shinespark/repos","events_url":"https://api.github.com/users/shinespark/events{/privacy}","received_events_url":"https://api.github.com/users/shinespark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"momdo","id":8347177,"avatar_url":"https://avatars.githubusercontent.com/u/8347177?v=3","gravatar_id":"","url":"https://api.github.com/users/momdo","html_url":"https://github.com/momdo","followers_url":"https://api.github.com/users/momdo/followers","following_url":"https://api.github.com/users/momdo/following{/other_user}","gists_url":"https://api.github.com/users/momdo/gists{/gist_id}","starred_url":"https://api.github.com/users/momdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momdo/subscriptions","organizations_url":"https://api.github.com/users/momdo/orgs","repos_url":"https://api.github.com/users/momdo/repos","events_url":"https://api.github.com/users/momdo/events{/privacy}","received_events_url":"https://api.github.com/users/momdo/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-21T11:39:45Z","updated_at":"2015-11-26T05:34:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/momdo/momdo.github.io/pulls/35","html_url":"https://github.com/momdo/momdo.github.io/pull/35","diff_url":"https://github.com/momdo/momdo.github.io/pull/35.diff","patch_url":"https://github.com/momdo/momdo.github.io/pull/35.patch"},"body":"### 概要\r\n\r\n構造擬似クラス `E:*-child` および、`E:*-of-type`の意味が異なるようなのでプルリクエストを送ります。\r\n\r\n### 詳細\r\n\r\n> E:first-child\t親がE要素で、その要素の最初の子\r\n\r\nとあります。\r\nこれは一見、`h2:first-child` とすると `親がh2要素の、最初の子要素`を示しそうだと読みとれます。\r\n\r\nしかし、http://momdo.github.io/css-2015/index.html にてChromeの開発者ツール > Elements (Firefoxは Inspector) > Ctrl + F の要素検索にて、`h2:first-child` を検索すると、h2要素の、最初の子要素であるspanでなく、\r\n\r\n`<h2 class=\"heading settled\" data-level=\"1\" id=\"intro\">`\r\n\r\nがマッチします。\r\n実際には`最初の子である、h2要素`を示しているようです。\r\n\r\n他の構造擬似クラスにも同様のことが言えましたので、`E`要素は親要素を示すのではなく、あくまでもマッチする対象の子要素または兄弟要素であることを明示する文言に変更しました。"},"comment":{"url":"https://api.github.com/repos/momdo/momdo.github.io/issues/comments/159809931","html_url":"https://github.com/momdo/momdo.github.io/pull/35#issuecomment-159809931","issue_url":"https://api.github.com/repos/momdo/momdo.github.io/issues/35","id":159809931,"user":{"login":"shinespark","id":12206768,"avatar_url":"https://avatars.githubusercontent.com/u/12206768?v=3","gravatar_id":"","url":"https://api.github.com/users/shinespark","html_url":"https://github.com/shinespark","followers_url":"https://api.github.com/users/shinespark/followers","following_url":"https://api.github.com/users/shinespark/following{/other_user}","gists_url":"https://api.github.com/users/shinespark/gists{/gist_id}","starred_url":"https://api.github.com/users/shinespark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinespark/subscriptions","organizations_url":"https://api.github.com/users/shinespark/orgs","repos_url":"https://api.github.com/users/shinespark/repos","events_url":"https://api.github.com/users/shinespark/events{/privacy}","received_events_url":"https://api.github.com/users/shinespark/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T05:34:37Z","updated_at":"2015-11-26T05:34:37Z","body":"仰る通り訳としては検討の予知がありそうです。\r\n\r\n愚直な訳文だと以下のようになりそうです。これでも一応意味は成立しそうな気がしますが、翻訳経験少ない為意見伺いたいです。\r\n\r\n> E:nth-child(n)\r\n> an E element, the n-th child of its parent\r\n\r\nその親のn番目の子である、E要素\r\n\r\n> E:nth-of-type(n)\r\n> an E element, the n-th sibling of its type\r\n\r\nその型のn番目の兄弟である、E要素\r\n\r\n> E:first-child\r\n> an E element, first child of its parent\r\n\r\nその親の最初の子である、E要素\r\n\r\n> E:first-of-type\r\n> an E element, first sibling of its type\r\n\r\nその型の最初の兄弟である、E要素"}}