Minor typo nit: the ::placeholder bold selector name has been copy-pasted in the sections for ::selection and ::marker.
CSS Selectors: A Visual Guide
51–59 of 59 posts
Re: CSS Selectors: A Visual Guide
#52Very cool. It seems to be missing the begins with and ends with selectors for the attr-val. [title^=“old”] and [title$=“old”]
^ means match input start
$ means match input end
Makes remembering the CSS selector syntax easier once you know that. (Or makes the regex syntax easier to remember?)Re: CSS Selectors: A Visual Guide
#53Nice! Minor typo nit: the ::placeholder bold selector name has been copy-pasted in the sections for ::selection and ::marker.
Re: CSS Selectors: A Visual Guide
#54What makes scrolling on this page so sluggish? (FF mobile)
Re: CSS Selectors: A Visual Guide
#5510 years ago I created an algorithm to generalize CSS selectors based on applying the "sequence alignment" algorithm (from bioinformatics / string matching) to objects (bags of attribute / key values, ie, HTML elements). This let you select two or more examples and produce a selector that captures what you meant. More here: https://github.com/00000o1/selector-generalization There've been multiple attempts at such a t…
Re: CSS Selectors: A Visual Guide
#5610 years ago I created an algorithm to generalize CSS selectors based on applying the "sequence alignment" algorithm (from bioinformatics / string matching) to objects (bags of attribute / key values, ie, HTML elements). This let you select two or more examples and produce a selector that captures what you meant. More here: https://github.com/00000o1/selector-generalization There've been multiple attempts at such a t…
Updated link for the live example: https://dosyago.github.io/selector-generalization/
Re: CSS Selectors: A Visual Guide
#57 @namespace "bogus"; /* unnamed */
@namespace aitchtee "http://www.w3.org/1999/xhtml";
@namespace esvee "http://www.w3.org/2000/svg";
* { /* will not match anything, because "bogus" NS */ }
html { /* also nothing, because "bogus" NS */ }
*|* { /* will match everything */ }
aitchtee|title { /* will not match SVG title element, only the HTML one */ }
aitchtee|*:root { /* will match html */ }
esvee|* { /* all SVG elements */ }