stylus icon indicating copy to clipboard operation
stylus copied to clipboard

more CSS-Selector syntax `token` can be Double-clicking selects

Open dnknn opened this issue 5 years ago • 0 comments

If can would be more cool/convenient, of course, this is not a big problem. Let 2011_28192827 support more CSS-Selector syntax token ?

/* For example: Pseudo-classes/element etc. */
:is(a,b) a:hover::after:not(#xxx) {color:blue}
a:after	{/*single colon*/}
p::selection	{background:#da09}
div:nth-of-type(3)  {}
body::-webkit-scrollbar {}
#abc:not(:hover):not(:focus-within)	 {opacity:.4}
  • for Pseudo-classes/element token should be included in the : or :: colon part.   :link :visited :active :any-link :focus :focus-within .... etc.   when Double-clicking :hover / :after / ::selection / :::-webkit-scrollbar/ can select :hover / ::after / :after / ::selection / ::-webkit-scrollbar respectively.

  • css-selector token should be included ( )   When Double-clicking :nth-of-type can select :nth-of-type(3)

  • When Double-clicking :not can select :not(#xxx) / :not(:hover) / :not(:focus-within)

:not(:nth-last-child(2))  double-clicking :nth-last-child can select :nth-last-child(2) , double-clicking :not can select :not(:nth-last-child(2))

  • When Double-clicking :is can select :is(a,b) (Chromium will support is() selector by default soon)

dnknn avatar Nov 28 '20 12:11 dnknn