[EMAIL PROTECTED] wrote:
> On Apr 30, 1:02 pm, fantasai <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> OK, let's render the SVG element in a viewport established by the
>>> background clip area.
>> I don't think that'll do anything useful. What are you expecting it
>> to do?
> 
> <svg viewBox="0 0 1000 1000" id="b">
>   <rect x="0" y="0" width="500" height="500" fill="magenta"/>
>   <rect x="500" y="500" width="500" height="500" fill="cyan"/>
> </svg>
> <p style="background: url(#b)">Hello Kitty</p>
> 
> Since the default value of preserveAspectRatio is "xMidYMid", this
> should draw two small-ish squares in the centre of the <p>. Right?

Ok, the effect of that is very well defined in CSS if we take
the <svg> element as the root of the SVG image. It makes sense
to behave the same way if we reference the <svg> element with a
fragment identifier, I agree.

The question I had was, what if id="b" is on the <rect> element
instead?

~fantasai
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to