{"action":"opened","number":136,"pull_request":{"url":"https://api.github.com/repos/w3c/css-validator/pulls/136","id":160645431,"html_url":"https://github.com/w3c/css-validator/pull/136","diff_url":"https://github.com/w3c/css-validator/pull/136.diff","patch_url":"https://github.com/w3c/css-validator/pull/136.patch","issue_url":"https://api.github.com/repos/w3c/css-validator/issues/136","number":136,"state":"open","locked":false,"title":"Fix message bugs for selector after pseudo-element","user":{"login":"sideshowbarker","id":194984,"avatar_url":"https://avatars2.githubusercontent.com/u/194984?v=4","gravatar_id":"","url":"https://api.github.com/users/sideshowbarker","html_url":"https://github.com/sideshowbarker","followers_url":"https://api.github.com/users/sideshowbarker/followers","following_url":"https://api.github.com/users/sideshowbarker/following{/other_user}","gists_url":"https://api.github.com/users/sideshowbarker/gists{/gist_id}","starred_url":"https://api.github.com/users/sideshowbarker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sideshowbarker/subscriptions","organizations_url":"https://api.github.com/users/sideshowbarker/orgs","repos_url":"https://api.github.com/users/sideshowbarker/repos","events_url":"https://api.github.com/users/sideshowbarker/events{/privacy}","received_events_url":"https://api.github.com/users/sideshowbarker/received_events","type":"User","site_admin":false},"body":"This change fixes a couple bugs in the error message that’s reported for the\ncase of a selector that appears after a pseudo-element selector, and adds a\nmethod to check for user-action pseudo classes\n\nThe first bug fixed by this change is, given a case like `p::first-line.foo`,\nthe CSS checker previously would report the following message:\n\n> The pseudo-element .foo can't appear here in the context CSS level <level>\n\nThat message was wrong for that case because `.foo` isn’t a pseudo-element.\n\nSo this change causes the checker to instead report the following message:\n\n> The selector .foo can't appear after the pseudo-element selector ::first-line\n\nThe second bug fixed by the change is, given a case like `p::first-line:hover`,\nthe checker would emit the following message:\n\n> The pseudo-element :hover can't appear here in the context CSS level <level>\n\nThat message is wrong for two reasons: the first reason it’s wrong is the same\nreason as above: `:hover` isn’t a pseudo-element — it's a pseudo-class; and the\nsecond reason it’s wrong is that the current CSS Selectors spec allows it:\n\n> A pseudo-element may be immediately followed by any combination of the user\naction pseudo-classes\n\nhttps://www.w3.org/TR/2013/WD-selectors4-20130502/#pseudo-elements\n\nSo, for handling such cases, this change adds a method for checking whether or\nnot particular pseudo-class is a user-action pseudo-class.\n\nThat method enables a check to determine that no error should be reported for\n`p::first-line:hover` (because `hover` is a user-action pseudo-class), while\nstill correctly reporting an error for `p::first-line:visited` (because\n`visited`) isn’t a user-action pseudo-class).","created_at":"2018-01-01T11:38:11Z","updated_at":"2018-01-01T11:38:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/css-validator/pulls/136/commits","review_comments_url":"https://api.github.com/repos/w3c/css-validator/pulls/136/comments","review_comment_url":"https://api.github.com/repos/w3c/css-validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/css-validator/issues/136/comments","statuses_url":"https://api.github.com/repos/w3c/css-validator/statuses/ad7fdea90ffb74f3f04d6a7bdff5e29578178bd7","head":{"label":"w3c:sideshowbarker/pseudo-element-not-last-fixes","ref":"sideshowbarker/pseudo-element-not-last-fixes","sha":"ad7fdea90ffb74f3f04d6a7bdff5e29578178bd7","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":40552697,"name":"css-validator","full_name":"w3c/css-validator","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/css-validator","description":"W3C CSS Validation Service","fork":false,"url":"https://api.github.com/repos/w3c/css-validator","forks_url":"https://api.github.com/repos/w3c/css-validator/forks","keys_url":"https://api.github.com/repos/w3c/css-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/css-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/css-validator/teams","hooks_url":"https://api.github.com/repos/w3c/css-validator/hooks","issue_events_url":"https://api.github.com/repos/w3c/css-validator/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/css-validator/events","assignees_url":"https://api.github.com/repos/w3c/css-validator/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/css-validator/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/css-validator/tags","blobs_url":"https://api.github.com/repos/w3c/css-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/css-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/css-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/css-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/css-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/css-validator/languages","stargazers_url":"https://api.github.com/repos/w3c/css-validator/stargazers","contributors_url":"https://api.github.com/repos/w3c/css-validator/contributors","subscribers_url":"https://api.github.com/repos/w3c/css-validator/subscribers","subscription_url":"https://api.github.com/repos/w3c/css-validator/subscription","commits_url":"https://api.github.com/repos/w3c/css-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/css-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/css-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/css-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/css-validator/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/css-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/css-validator/merges","archive_url":"https://api.github.com/repos/w3c/css-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/css-validator/downloads","issues_url":"https://api.github.com/repos/w3c/css-validator/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/css-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/css-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/css-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/css-validator/labels{/name}","releases_url":"https://api.github.com/repos/w3c/css-validator/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/css-validator/deployments","created_at":"2015-08-11T16:28:14Z","updated_at":"2017-12-28T01:04:33Z","pushed_at":"2018-01-01T11:37:52Z","git_url":"git://github.com/w3c/css-validator.git","ssh_url":"git@github.com:w3c/css-validator.git","clone_url":"https://github.com/w3c/css-validator.git","svn_url":"https://github.com/w3c/css-validator","homepage":"https://jigsaw.w3.org/css-validator/","size":63011,"stargazers_count":69,"watchers_count":69,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":40,"license":null,"forks":35,"open_issues":40,"watchers":69,"default_branch":"master"}},"base":{"label":"w3c:master","ref":"master","sha":"9cb3b44ee6aa1549d6104f26e6550b7bcb079609","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":40552697,"name":"css-validator","full_name":"w3c/css-validator","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/css-validator","description":"W3C CSS Validation Service","fork":false,"url":"https://api.github.com/repos/w3c/css-validator","forks_url":"https://api.github.com/repos/w3c/css-validator/forks","keys_url":"https://api.github.com/repos/w3c/css-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/css-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/css-validator/teams","hooks_url":"https://api.github.com/repos/w3c/css-validator/hooks","issue_events_url":"https://api.github.com/repos/w3c/css-validator/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/css-validator/events","assignees_url":"https://api.github.com/repos/w3c/css-validator/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/css-validator/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/css-validator/tags","blobs_url":"https://api.github.com/repos/w3c/css-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/css-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/css-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/css-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/css-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/css-validator/languages","stargazers_url":"https://api.github.com/repos/w3c/css-validator/stargazers","contributors_url":"https://api.github.com/repos/w3c/css-validator/contributors","subscribers_url":"https://api.github.com/repos/w3c/css-validator/subscribers","subscription_url":"https://api.github.com/repos/w3c/css-validator/subscription","commits_url":"https://api.github.com/repos/w3c/css-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/css-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/css-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/css-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/css-validator/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/css-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/css-validator/merges","archive_url":"https://api.github.com/repos/w3c/css-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/css-validator/downloads","issues_url":"https://api.github.com/repos/w3c/css-validator/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/css-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/css-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/css-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/css-validator/labels{/name}","releases_url":"https://api.github.com/repos/w3c/css-validator/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/css-validator/deployments","created_at":"2015-08-11T16:28:14Z","updated_at":"2017-12-28T01:04:33Z","pushed_at":"2018-01-01T11:37:52Z","git_url":"git://github.com/w3c/css-validator.git","ssh_url":"git@github.com:w3c/css-validator.git","clone_url":"https://github.com/w3c/css-validator.git","svn_url":"https://github.com/w3c/css-validator","homepage":"https://jigsaw.w3.org/css-validator/","size":63011,"stargazers_count":69,"watchers_count":69,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":40,"license":null,"forks":35,"open_issues":40,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/css-validator/pulls/136"},"html":{"href":"https://github.com/w3c/css-validator/pull/136"},"issue":{"href":"https://api.github.com/repos/w3c/css-validator/issues/136"},"comments":{"href":"https://api.github.com/repos/w3c/css-validator/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/css-validator/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/css-validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/css-validator/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/css-validator/statuses/ad7fdea90ffb74f3f04d6a7bdff5e29578178bd7"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":17,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"sideshowbarker"}}