[svgwg] Define how object-fit and object-position interact with preserveAspectRatio

AmeliaBR has just created a new issue for 
https://github.com/w3c/svgwg:

== Define how object-fit and object-position interact with 
preserveAspectRatio ==
SVG 2 has an annotation (at the end of [the `image` 
section](https://svgwg.org/svg2-draft/embedded.html#ImageElement)) 
stating:

> SVG 2 Requirement:    Support the ‘object-fit’ and ‘object-position’
 properties from css3-images.

It references a general [resolution from 
2011](https://www.w3.org/2011/07/29-svg-minutes.html#item08) that 
"SVG2 will depend on CSS3 Image Values"; these specific properties 
were not discussed at that meeting, however.

As I clean up the section on sizing and positioning the HTML embedded 
elements (e.g., `video`), I will be making it clear that `object-fit` 
and `object-position` apply.  However, for `image` it gets a little 
more complicated, since we already have `preserveAspectRatio`.

My long-term plan was to re-define `preserveAspectRatio` as a 
deprecated presentation hint for `object-fit` and `object-position`, 
as part of a larger goal to CSS-ify `viewBox` (see w3c/fxtf-drafts#7).
  But that's not happening in SVG 2.  All the  `preserveAspectRatio` 
values can be mapped to a combination of `object-fit` and 
`object-position` values, but the CSS properties are much more 
flexible.

For now, I'm adding a warning to the `image` section of SVG 2, that a 
future spec may define how `preserveAspectRatio` and `object-fit` and 
`object-position` interact.

But I'm posting this issue so we don't forget, and as a record of a 
deferred SVG 2 feature request.


Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/239 using your GitHub account

Received on Friday, 19 August 2016 20:29:19 UTC