Re: [css-content]: video

I think both <img src="cutekittens.mp4"> and url(cutekittens-v-bulldozer.mp4) should be supported. We've done some internal prototypes and it's very nice.

I'm not sure about media controls on the <img> case. I think we should start with something that is the same behaviour as a GIF is today.

Dean


> On Jun 12, 2016, at 4:57 PM, Brian Kardell <bkardell@gmail.com> wrote:
> 
> Ana Tudor tweeted today [1]
> 
> """
> CSS wish: to be able to do this:
> 
> div:before {
>   content: url(video.mp4);
> }
> 
> It works for images, so why not for video too?
> """
> 
> My initial thought was that such a video would be inaccessible and probably a lot worse than an image because videos have to be interactive.  However,  the third example in the intro of CSS Generated Content Module Level 3[2] seems to imply that content can be a .mov which is a video format and some folks on twitter showed me things like 'using a video as a background' (but that seems like a different case than content to me and a whole other ball of wax).  
> 
> So, I guess... It does seem plausible that somehow 'decorative' video which was not interactive at all would show there and I think that is what the example is showing...  I suppose what I am wondering at this point:  Am I reading the example correctly and are we expecting that might work - and be inherently non-interactive/inert as it is decorative?
> 
> 1 - https://twitter.com/anatudor/status/742052107289808896 <https://twitter.com/anatudor/status/742052107289808896>
> 2 - https://www.w3.org/TR/css-content-3/#intro <https://www.w3.org/TR/css-content-3/#intro>
> 
> 
> -- 
> Brian Kardell :: @briankardell 

Received on Monday, 13 June 2016 22:58:35 UTC