CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 14:42:40 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"78d803e7da9bbf5b5b60917dcf0531ed"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=2XDU2h%2BG5A0KeF4ScWTIuVslMeBGMmSaBiFZDm6x4BxLCcssrS145J4PjTi7Jt1AuFKx6tgtHtXwjJ6NJuLmmmccsWX65Bw156ljVOgZZetnqB6xDV53yUm8SBv5I0LT6YnjyEUjaPlY9dbvnX401%2FL%2FYQB%2BMk%2BhGfCSU8enuoOZ5YDyFSnW7tHXm54mhLzOD2rZNtj5%2FKTceI%2F712v4PtMye8AXlL4nFGzZCR8RC9aW%2FAPXZek99LUKGGxB%2B6UZcaNklVsFaxFeZhiog0mglg%3D%3D--UrA8%2Bhbbuu5dwK1O--6nBdnwANI%2BEdc8El2zK%2Flg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2122156067.1752936160; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 14:42:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 14:42:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 97E2:305A02:18535C:1E4AEB:687BAEE0
CSS supported selectors · dperini/nwsapi Wiki · GitHub
NOTE: the :is() pseudo-class is still named :matches() in most browsers implementation.
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 39
CSS supported selectors
Diego Perini edited this page Apr 30, 2019
·
12 revisions
What follows is a list of CSS selectors currently supported in latest NWSAPI version.
The list has been built upon current W3C Selectors Level 4 though it is still a work in progress.
Text and/or character selectors (content) have no meanings for applications, they don’t work on element nodes but on text nodes, which do not provide an event interface needed for selections.
* (asterisk) | any Element |
E | an Element of type E |
E#fooId | an E element with ID equal to “fooId” |
E.fooClass | an E element with CLASS equal to “fooClass” |
E:is(s1, s2, …) | an E element matching selectors s1 and/or s2 (Matches-Any) |
E:not(s1, s2, …) | an E element not matching selectors s1 or s2 (Matches-None) |
E F | an F element descendant child of an E element |
E > F | an F element direct child of an E element |
E + F | an F element immediately preceded by an E element |
E ~ F | an F element preceded by an E element |
E[foo] | an E element with a “foo” attribute |
E[foo=“bar”] | an E element whose “foo” attribute value is exactly equal to bar |
E[foo=“bar” i] | an E element whose “foo” attribute value is case insensitive match of bar |
E[foo=“bar” s] | an E element whose “foo” attribute value is case sensitive match of bar |
E[foo^=“bar”] | an E element whose “foo” attribute value begins exactly with the string bar |
E[foo$=“bar”] | an E element whose “foo” attribute value ends exactly with the string bar |
E[foo*=“bar”] | an E element whose “foo” attribute value contains the substring bar |
E[foo|=“en”] | an E element whose “foo” attribute value is a hyphen-separated list beginning with en |
E[foo~=“bar”] | an E element whose “foo” attribute value is a whitespace-separated list containing bar |
E:root | an E element, root of the document |
E:empty | an E element that has no children (including text nodes) |
E:nth-child(n) | an E element, the n-th child of its parent |
E:nth-of-type(n) | an E element, the n-th sibling of its type |
E:nth-last-child(n) | an E element, the n-th child of its parent, counting from the last one |
E:nth-last-of-type(n) | an E element, the n-th sibling of its type, counting from the last one |
E:first-child | an E element, first child of its parent |
E:last-child | an E element, last child of its parent |
E:only-child | an E element, only child of its parent |
E:first-of-type | an E element, first sibling of its type |
E:last-of-type | an E element, last sibling of its type |
E:only-of-type | an E element, only sibling of its type |
E:link | an E element being the source anchor of an hyper-link never visited |
E:visited | an E element being the source anchor of an hyper-link already visited |
E:target | an E element being the target of the referring URI |
E:scope | an E element being a designated reference element |
E:dir(ltr) | an element of type E with left-to-right directionality |
E:lang(it) | an element of type E tagged as being written in Italian |
E:active | an E element during certain user actions |
E:hover | an E element during a mouse over action |
E:focus | an E element being the focus of the document |
E:focus-within | an E element that has user input focus or contains an element that has input focus |
E:focus-visible | an E element that has user input focus, and the UA has determined that a focus ring or other indicator should be drawn for that element |
E:enabled | a user interface element E that is enabled |
E:disabled | a user interface element E that is disabled |
E:indeterminate | a user interface element E that is in an indeterminate state |
E:default | a user interface element E that is the default item in a group |
E:checked | a user interface element E that is checked or selected (radio or checkbox) |
E:optional | a user-input element E that does not require input |
E:required | a user-input element E that requires input |
E:invalid | a user-input element E that does not meets its data validity semantics |
E:valid | a user-input element E that meets its data validity semantics |
E:in-range | a user-input element E whose value is in-range |
E:out-of-range | a user-input element E whose value is out-of-range |
E:read-only | a user interface element E that is not user alterable |
E:read-write | a user interface element E that is user alterable |
E::after | generated content after an E element |
E::before | generated content before an E element |
E::selection | portion of a document highlighted by the user |
E::first-line | the first formatted line of an E element |
E::first-letter | the first formatted letter of an E element |
Clone this wiki locally
You can’t perform that action at this time.