- From: Paul LeBeau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 24 Aug 2017 13:46:16 +0000
- To: public-svg-issues@w3.org
BigBadaboom has just created a new issue for https://github.com/w3c/svgwg:
== Enhance `<pattern>` so that it supports all the features of CSS `background` ==
Some useful features of CSS `background`, cannot be reproduced well, or at all, with SVG patterns.
For example this configuration:
background-image: url(/* URL */);
background-position: 50%;
background-size: auto 100%;
background-repeat: repeat-x;
from [this Stack Overflow question](https://stackoverflow.com/questions/45833366/horizontally-repeating-svg-pattern)
That particular problem could, I think, be solved by changing it so that that unspecified widths and heights should be treated as they are in `<svg>` if there is a `viewBox`.
<pattern id="p1" height="1" viewBox="0 0 1 1"
overflow="visible">
<image xlink:href="https://static.jsbin.com/images/dave.min.svg"
width="1" height="1" />
</pattern>
...along with the overflow change requested in bug #129.
This is just an example, but it would be good to go through the background style attributes (`background-size`, `background-repeat` etc) and find ways that we can enhance patterns to support all those features.
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/342 using your GitHub account
Received on Thursday, 24 August 2017 13:46:16 UTC