02:26
<Krinkle>
I ran into a similar situation trying to make rel=preload work for high-dpi images
02:26
<Krinkle>
Ended up having to hack it with stuff like <= 1.9999
02:26
<Krinkle>
because each media has to be mutually exclusive
02:26
<Krinkle>
as opposed to where in CSS it cascades naturally
02:28
<Krinkle>
This is what I ended up with for Wikipedia's logo preload:
02:28
<Krinkle>
https://github.com/wikimedia/mediawiki/blob/809d9b684517dee2f1d3cc2082cea662ff65d135/tests/phpunit/includes/resourceloader/ResourceLoaderSkinModuleTest.php#L222-L237
02:28
<Krinkle>
link: </static/images/project-logos/enwiki.png>;rel=preload;as=image;media=not all and (min-resolution: 1.5dppx),</static/images/project-logos/enwiki-1.5x.png>;rel=preload;as=image;media=(min-resolution: 1.5dppx) and (max-resolution: 1.999999dppx),</static/images/project-logos/enwiki-2x.png>;rel=preload;as=image;media=(min-resolution: 2dppx)
02:29
<Krinkle>
It's certainly code I'd love to get rid of somehow
02:29
<Krinkle>
https://github.com/wikimedia/mediawiki/blob/5d0b5a402e384897288ad569da8d534fa2e432cb/includes/resourceloader/ResourceLoaderSkinModule.php#L131-L156
02:30
<Krinkle>
(see also https://github.com/w3c/preload/issues/31 )
12:13
<hsivonen>
The canonical copy of DOM Parsing and Serialization is the W3C one, right?
12:25
<Ms2ger>
Afraid so
12:58
<annevk>
It’s also written toward Edge I think without much cross-browser input
13:07
<hsivonen>
Ms2ger, annevk: thanks
14:24
<Domenic>
I think it's written toward most browsers, but it has some bugs
14:24
<Domenic>
Sebmaster discovered them when implementing https://github.com/jsdom/w3c-xmlserializer
14:24
<Domenic>
I've been trying to get him to spec-edit
14:26
<Domenic>
Like I think https://github.com/jsdom/w3c-xmlserializer/commit/313aeb3583ff67cf731866381b979d2e9462498b was a fix to the spec
22:28
<Mek>
anybody know how to setup things to get bikeshed to auto-run on commits to a github repository? The bikeshed docs mostly just seem to link to whatwg docs, but neither of those seem to have actual instructions on how to set it up; instead they just have a bunch of files you're supposed to somehow use to make it happen...