Things I Learned Reading Webkit’s UA Stylesheet
blog.jim-nielsen.com
blog.jim-nielsen.com
> Many of these are so custom to the webkit codebase, you won’t even find any results for them in Google
It's on Google, you just searched incorrectly
"-webkit-match-parent"
I suspect it trips up people that don't know this more than it's actually used.
Google should at least show a user friendly help message at the top of the page, that actually teaches users about the filtering feature, and lets you turn it off, like:
Results containing "webkit-match-parent" omitted because of "-" prefix. (Click to include.)
But that would reduce the ad surface area by a tiny amount, so oh well...I would say fortunately common. The sooner the C preprocessor (and C itself for that matter) can die, the better for everybody.
Don’t remove it, improve it!
I'll be honest, I miss the consistency and regularity of XHTML. And being able to hook into the XML ecosystem is really attractive. But, at this point, it seems likely to remain in the dustbin of technology history...
Oh and how picky the <head> tag had to be specified.
It didn't help that this was all done back in the days when HTML pages were still often hand written.
Now days with HTML being largely framework generated, XHTML would be awesome!
XHTML is basically the opposite.
As a former coder, I support that tradeoff. As a user... well, there's many reasons XHTML failed, and that's definitely one of 'em!
> The :is selector is pretty damn cool. Given the combinatorial nature of these groupings, writing something like this in CSS before :is would’ve been insane:
> /* keep going _forever_ */
In this case, there would have been 4^5 = 1024 selectors. Large enough to be annoying to a human, but small enough to be parsed and stored in memory.
Of course if you search for -something, the result will be... nothing.
The mentioned property appears 5k times on Google Search: https://www.google.com/search?hl=en&q=%22%2Dwebkit%2Dmatch%2...
That's the last place I'd expect legacy hacks. The UA stylesheet runs in the exact browser and version it was designed for, why does it need legacy support?
Or am I misunderstanding the paragraph and it's really about emulating legacy browser behavior?
Still feels to me like that would be the last place to require apple-specific properties or variables, since if it emulates old browsers it should not ever change, right?