{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/svgwg/issues/243","repository_url":"https://api.github.com/repos/w3c/svgwg","labels_url":"https://api.github.com/repos/w3c/svgwg/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/w3c/svgwg/issues/243/comments","events_url":"https://api.github.com/repos/w3c/svgwg/issues/243/events","html_url":"https://github.com/w3c/svgwg/issues/243","id":172829451,"number":243,"title":"Should bounding box of svg, image, foreignObject, etc include overflow content?","user":{"login":"AmeliaBR","id":9876129,"avatar_url":"https://avatars.githubusercontent.com/u/9876129?v=3","gravatar_id":"","url":"https://api.github.com/users/AmeliaBR","html_url":"https://github.com/AmeliaBR","followers_url":"https://api.github.com/users/AmeliaBR/followers","following_url":"https://api.github.com/users/AmeliaBR/following{/other_user}","gists_url":"https://api.github.com/users/AmeliaBR/gists{/gist_id}","starred_url":"https://api.github.com/users/AmeliaBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmeliaBR/subscriptions","organizations_url":"https://api.github.com/users/AmeliaBR/orgs","repos_url":"https://api.github.com/users/AmeliaBR/repos","events_url":"https://api.github.com/users/AmeliaBR/events{/privacy}","received_events_url":"https://api.github.com/users/AmeliaBR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/svgwg/labels/Co-ordinates%20chapter","name":"Co-ordinates chapter","color":"80b1d3"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/Needs%20WG%20input","name":"Needs WG input","color":"fb8072"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/SVG%20Core","name":"SVG Core","color":"b3de69"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/w3c/svgwg/milestones/2","html_url":"https://github.com/w3c/svgwg/milestones/SVG%20Core%20clean-up","labels_url":"https://api.github.com/repos/w3c/svgwg/milestones/2/labels","id":1837893,"number":2,"title":"SVG Core clean-up","description":"Non-normative editorial fixes to the main SVG spec.","creator":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":3,"state":"open","created_at":"2016-06-20T11:36:58Z","updated_at":"2016-08-23T23:15:19Z","due_on":"2016-09-22T06:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-23T23:15:19Z","updated_at":"2016-08-23T23:35:49Z","closed_at":null,"body":"Currently, the [Bounding Box algorithm](https://svgwg.org/svg2-draft/coords.html#BoundingBoxes) states:\r\n\r\n> ‘canvas’, ‘foreignObject’, ‘iframe’, ‘image’, ‘video’\r\n> 1. Return the tightest rectangle in coordinate space space that contains the rectangle defined by the ‘x’, ‘y’, ‘width’ and ‘height’ attributes of the element.\r\n>The fill, stroke and markers input arguments to this algorithm do not affect the bounding box returned for these elements.\r\n\r\nTwo problems with that:\r\n\r\n1. Any of these elements can take clipping paths, the bounding box needs to reflect that if the <var>clipped</var> option is set. That's easy to fix.\r\n2. Any of these elements can overflow their rectangle.  Or conversely, they can fail to fill up their rectangle.\r\n\r\nIn contrast, `svg` elements are supposed to calculate their bounding box from their child content, without any mention of whether overflow is hidden or not.\r\n\r\nI can see arguments for using the positioning rectangle, but I can also see arguments for actually using the painted content.  It would be nice to have a switch, but I'm not sure how the existing fill/stroke/decorated options would map to specified size vs concrete size.  \r\n\r\nWe also have existing text in the section on embedded HTML and fallback content, that says \"The HTML subtree, defined by the root HTML element and its children, contributes to SVG container bounding box computations.\"\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/svgwg/issues/comments/241913929","html_url":"https://github.com/w3c/svgwg/issues/243#issuecomment-241913929","issue_url":"https://api.github.com/repos/w3c/svgwg/issues/243","id":241913929,"user":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T23:35:49Z","updated_at":"2016-08-23T23:35:49Z","body":"Ideally, it should be the same as text - return a box covering the actual painted area rather than the rectangle defined by the user."}}
{"actor":{"display_login":"nikosandronikos"}}