X:has(Y) = X that contains Y
X:has(> Y) = X that has a child Y
X:has(> :last-child:nth-child(n)) = X that has n children (for n > 0)
X:has(+ Y) = X that has a next sibling Y
X:not(:has(Y)) = X that doesn’t contain Y
X:has(Y):has(Z) = X that contains Y and Z
X:has(Y, Z) = X that contains Y or Z
What other useful (simple) selector patterns with :has() are there?
HTML would be neater if we used more (if more were enabled) SGML minimization features — on what we are to write by hand
I don't write in regular HTML even knowing what SGML minimization is enabled, but instead I write in a WYSIWYG editor, and I believe that's often a more right way to use HTML directly
I think it's good to just have a document type in SGML for one's use case and process it with XSLT (I intend to do so, writing as SGML but transforming after a conversion to XML, because DSSSL has just one common implementation).
Funny how we keep having structural markups reinvented when people realize that subset of stuff they can do through Org Mode or AsciiDoctor/reStructuredText.
When we don't write our own transformations, and when they happen to not be in a language (even a bunch of helper functions form a DSL somewhat) that we know, we keep having to work around and read up on our blackboxes. Small components, tools, the exact ins and outs we can keep in our head only, and we apply them ourselves in our little scripts.
Markdown very much often gets in my way and distracts me from the larger picture of my document/presentation/site through the indirectness.
Sometimes it turns out easier to do "whatever I was doing before to compile things" and then edit the HTML a bit, instead of adjusting the configuration of transformation written in thousands of LoC and L'o'Doc.
The very fact that to change anything in the right place in SSGs we are to dive deep into stuff that we are usually keeping distant from us through just writing Markdown — it's what makes us want to turn back into an integrated experience of the likes of Wordpress.
Recently I've been thinking about maybe writing myself transformations for whatever it is that office suites export to tidy it up. Then it would be possible to use them without resorting to Seamonkey Composer, since they also can open an existing HTML file for editing
In general, I may have misinterpreted "I don't really like markup languages." as regarding Markdown too.
Mount Etna in the background, a huge crater in the foreground. I intentionally overexposed this frame when shooting to bring out the beautiful colors of this scene. Catania, Sicily, Italy 🇮🇹
Gear:
• Fed-5 (Kharkiv FED, ~1977)
• Industar-61L/D 55 mm f/2.8 (Kharkiv FED, 1986)
• Kodak Professional Portra 400/36