Re: Inline style: external resources

On Thu, 22 Oct 2015 09:53:30 +0200, Philip Jägenstedt <philipj@opera.com>  
wrote:

> On Wed, Oct 21, 2015 at 4:03 PM, Simon Pieters <simonp@opera.com> wrote:
>> On Wed, 21 Oct 2015 15:00:30 +0200, Philip Jägenstedt  
>> <philipj@opera.com>
>> wrote:
>>
>>> Oh, right, as part of "the properties corresponding to the background
>>> shorthand." If it's the only problematic property, explicitly
>>> excluding it would be fine I think.
>>
>>
>> Yes, but it would disallow data: URLs as background-image as well as  
>> things
>> like CSS gradients, which is too restrictive. Instead I specified that  
>> URLs
>> other than data: URLs just fail to resolve.
>>
>> https://github.com/w3c/webvtt/commit/9fdff0abcbcfc5024f103ccc8c54ff94162cd27d
>
> OK, that seems fine. I had never realized it was possible to have
> background images in WebVTT until now, but I see that it actually
> works. Is there anything useful that could be done with this, given
> that you have no idea what the size of the box the background will
> apply to is?

Well you can also set 'background-size' to set the size relative to the  
box (e.g. contain or cover). I suppose you could make a speech bubble  
maybe?

-- 
Simon Pieters
Opera Software

Received on Thursday, 22 October 2015 21:04:14 UTC