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

On thinking it through more carefully, I realized its actually easier 
than I though.  Here's the note I'm now adding to the image section:

<blockquote>
  The <a>'preserveAspectRatio'</a> calculations
  are applied <em>after</em> determining the <a>concrete object 
size</a>.
  If a value of <a>'object-fit'</a> is used that
  ensures that the concrete object size matches 
  the <a>intrinsic aspect ratio</a> of the embedded image
  (i.e., any value other than the default <span 
class="prop-value">fill</span>), 
  then the <a>'preserveAspectRatio'</a> value will have no effect.
</blockquote>

So, it's actually a very nice progressive enhancement.  If the new 
properties are supported, they'll be used to scale and position the 
image, and then there will be nothing left for pAR to do.  If they 
aren't, the pAR values apply. 

Once `object-fit` and `object-position` are well supported, we'll be 
able to deprecate `preserveAspectRatio` and encourage authors to use 
the CSS properties instead.

I'll close this issue when I push these commits.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/239#issuecomment-241905396 using 
your GitHub account

Received on Tuesday, 23 August 2016 22:52:02 UTC