Re: [csswg-drafts] [css-text] Add new CSS text-transform values for math (#3745)

> `math-auto`

`math-auto` is proposed here because there is no CSS selector for the text content of an element. However, there are other areas in MathML and elsewhere where we need similar behavior. For example, deciding how much space to render before/after a math operator `<mo>` also depends on the text inside the element. It would be better to create some new minimal CSS selector that would allow us to match on the text content, and then implement the `auto` behavior in pure CSS using that selector. So, I think it would be good to conditionally accept the proposal as is, but also open an issue about replacing the `math-auto` value with a more general mechanism.

Ideally browsers' "Find in Page" feature would allow searching for the text pre-transform and post-transform. That way, for example, I could search for the variable 𝒙 on the page by searching for either "x" or "𝒙". Firefox's MathML implementation does this, for example.

-- 
GitHub Notification of comment by briansmith
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3745#issuecomment-487165977 using your GitHub account

Received on Friday, 26 April 2019 19:01:11 UTC