A giphy token now resolves without media_metadata to look it up in — Reddit ships plenty of comments carrying one and no metadata at all, including the zUW23b6FmzB5e in this issue, and with nothing to look it up in the token itself was what the comment showed. Giphy is the one of the three token kinds whose id means something off Reddit, so that one falls back to i.giphy.com/media/<id>/giphy.gif. Emote and upload ids still resolve only through the metadata.
The video sizing was two things. The renderer put only aspect-ratio on the <video>, and a video with no data has a natural size of 300x150 that WebKit sizes from in preference to the ratio — so a portrait video kept a squat landscape box until playback supplied real dimensions. Chromium stretch-fits and gets it right, which is why it only showed on Safari. A video's size before its data arrives is its poster's, so one with no poster now gets an empty SVG of the right shape as a stand-in.
And Reddit's videos with sound had no poster to be sized by at all: fromRedditVideo attached the still from preview.images to the MP4 branch only, so every post with sound showed an empty box where a silent one showed a frame. It goes on both forms now.
Fixed on `giphy-tokens-and-video-posters`.
A giphy token now resolves without `media_metadata` to look it up in — Reddit ships plenty of comments carrying one and no metadata at all, including the `zUW23b6FmzB5e` in this issue, and with nothing to look it up in the token itself was what the comment showed. Giphy is the one of the three token kinds whose id means something off Reddit, so that one falls back to `i.giphy.com/media/<id>/giphy.gif`. Emote and upload ids still resolve only through the metadata.
The video sizing was two things. The renderer put only `aspect-ratio` on the `<video>`, and a video with no data has a natural size of 300x150 that WebKit sizes from in preference to the ratio — so a portrait video kept a squat landscape box until playback supplied real dimensions. Chromium stretch-fits and gets it right, which is why it only showed on Safari. A video's size before its data arrives is its poster's, so one with no poster now gets an empty SVG of the right shape as a stand-in.
And Reddit's videos with sound had no poster to be sized by at all: `fromRedditVideo` attached the still from `preview.images` to the MP4 branch only, so every post with sound showed an empty box where a silent one showed a frame. It goes on both forms now.
Checked against https://www.reddit.com/r/LoveTrash/comments/1vxkehp/growing_your_account — 31 comment gifs, none broken, and the video's own still in place and correctly sized in WebKit.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reddit comments that include a giphy gif embed as a markdown link, but not a proper href.
Fixed on
giphy-tokens-and-video-posters.A giphy token now resolves without
media_metadatato look it up in — Reddit ships plenty of comments carrying one and no metadata at all, including thezUW23b6FmzB5ein this issue, and with nothing to look it up in the token itself was what the comment showed. Giphy is the one of the three token kinds whose id means something off Reddit, so that one falls back toi.giphy.com/media/<id>/giphy.gif. Emote and upload ids still resolve only through the metadata.The video sizing was two things. The renderer put only
aspect-ratioon the<video>, and a video with no data has a natural size of 300x150 that WebKit sizes from in preference to the ratio — so a portrait video kept a squat landscape box until playback supplied real dimensions. Chromium stretch-fits and gets it right, which is why it only showed on Safari. A video's size before its data arrives is its poster's, so one with no poster now gets an empty SVG of the right shape as a stand-in.And Reddit's videos with sound had no poster to be sized by at all:
fromRedditVideoattached the still frompreview.imagesto the MP4 branch only, so every post with sound showed an empty box where a silent one showed a frame. It goes on both forms now.Checked against https://www.reddit.com/r/LoveTrash/comments/1vxkehp/growing_your_account — 31 comment gifs, none broken, and the video's own still in place and correctly sized in WebKit.