W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] Images with layout information (#4116)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 Jul 2019 01:33:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-511253132-1563154436-sysbot+gh@w3.org>
I do like the idea of exposing baselines as metadata on an SVG, and then using that for the default inline alignment when the SVG is a replaced object in CSS (e.g., an <img>, or included via CSS `content` or `list-style-image`).  For inline SVG text, I often make the SVG layout box only extend down to the baseline, and then use `overflow: visible` to get the descenders. But that's not an option for replaced content.

One concern is that this could be a new bit of information exposed from inside the file to the outside layout, and therefore we'd need to consider whether crossorigin restrictions should apply.

I'm not sure I understand how you're proposing this would interact with background position.

Do you know of any other image formats which have alignment metadata baked in? Is the Apple "symbol image" format standardized in any way that allows it to be used by other applications? (I notice they recommend importing from SVG for any customizations.)

As far as having access to system icons from CSS, I think that is an interesting idea that should be discussed in a separate issue.  We'd need to look at whether there is a common set of icons available to apps in different platforms, and consider how it integrates into fallbacks (e.g., the `image()` function).



-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4116#issuecomment-511253132 using your GitHub account
Received on Monday, 15 July 2019 01:33:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC