WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
589 stars 42 forks source link

[Alternative Content Types proposal] Allow `:has()` pseudo class #183

Closed tomayac closed 2 years ago

tomayac commented 2 years ago

We found has:() to be very useful to select nested structures like <video><source src="foo" /></video> based on the src attribute.

https://github.com/tomayac/link-to-media/blob/62eb5f0aec182382e9a7b37682f8da5cdbda0815/polyfill/create-link.js#L50-L57

tomayac commented 2 years ago

FYI: @samdutton @rreverser