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

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

From: Philip Rogers via GitHub <sysbot+gh@w3.org>
Date: Mon, 29 Jul 2019 22:21:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-516184471-1564438866-sysbot+gh@w3.org>
I'm trying to work through what this would actually look like if we could specify baseline. I made a simple example:
<span style="background: lightblue; font-family: cursive; color: darkblue;">
  Testing an integral <img src="https://pr.gg/integral.svg" style="height: 1.6em; vertical-align: middle"> symbol.

Does the containing page needs to know more than just the baseline to correctly position an integral symbol? For example, what height should the page specify for the image? (possibly `height: 1lh` for one line-height?) Is just the baseline sufficient for the math usecase or are other font glyph properties needed?

Should the `currentColor` attribute flow through the image too? This seems needed for dark mode (see: [this blog post](https://hiddedevries.nl/en/blog/2018-12-24-making-single-color-svg-icons-work-in-dark-mode)).

GitHub Notification of comment by progers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4116#issuecomment-516184471 using your GitHub account
Received on Monday, 29 July 2019 22:21:09 UTC

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