Re: [svgwg] Review implementation support - Embedded Content chapter

Updated changes list for the complete Embedded content chapter (I'll delete this comment and update the main post instead, but I wanted it to be sent as an email update):

- [Embedded Content chapter, SVG 2 ED](https://svgwg.org/svg2-draft/embedded.html)
- Content from this chapter builds on parts of the SVG 1.1 [Document Structure](https://www.w3.org/TR/SVG11/struct.html#ImageElement) and [Extensibility](https://www.w3.org/TR/SVG11/extend.html) chapters
- [WPT Tests](https://github.com/web-platform-tests/wpt/tree/master/svg/extensibility)

## Changes

[Changes (old extensibility chapter):](https://svgwg.org/svg2-draft/changes.html#extend)

- [x] Made ‘foreignObject’ a graphics element.
[Tests](https://wpt.fyi/svg/extensibility/interfaces) pass in Chrome, Firefox, Safari

- [ ] Made ‘width’ and ‘height’ presentation attributes on the ‘foreignObject’ element.
[Tests](https://wpt.fyi/svg/extensibility/foreignObject/properties.svg) show that Chrome and Safari allow width and height to be read using getComputedStyle when they were written by setting attributes.

    There are some test failures, these need investigation.

[Changes (embedded content chapter):](https://svgwg.org/svg2-draft/changes.html#embedded)

- [ ] Add video/audio/iframe/canvas/source/track, as HTML namespaced elements that can be directly included in SVG.

     No tests, but also no support or intention. Probably needs to be deferred.

- [ ] Removed the requirement to ignore clip and overflow on an SVG document when referenced by an ‘image’ element.

     Needs tests, but I _think_ this was added to match implementations.

- [ ] Allow image height and width to be "auto", determined from intrinsic dimensions or aspect ratio of the image file.

     Needs tests. Chrome, at least, supports this.

- [ ] Clarify image and foreignObject sizing to be consistent with CSS and with geometry properties; allow embedded HTML elements to be positioned using x, y, width, and height geometric properties.

     Needs tests.

- [ ] Clarify that object-fit and object-position properties apply to embedded HTML elements; <del>add warning note that they are not defined for ‘image’.</del>
      Define unified layout model for all embedded elements, including behavior of 'object-fit' and 'object-position' properties 'image'.

     Needs tests for foreignObject and image. Probably not worth making tests for the HTML elements until there is any support for them at all.

- [ ] The 'image' and 'script' elements have gained a crossorigin attribute, for use with the CORS-enabled fetch algorithm. (from the "whole document" changes list)

     Needs tests.

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

Received on Monday, 9 July 2018 22:19:45 UTC