Re: [csswg-drafts] [css-text] Make first-letter work with inline text (#11047)

Let's say I only want to capitalize the first letter in the span:

```html
<span style="text-transform: capitalize-first">
  foo <b>bar</b> baz
</span>
```

Problem: `<b>` inherits `text-transform: capitalize-first`, so I will need to remember to reset it:

```html
<span style="text-transform: capitalize-first">
  foo <b style="text-transform: none">bar</b> baz
</span>
```

Problem: `baz` inherits `text-transform: capitalize-first` too, and it's not an element so I can't reset it.

I don't think it would match author expectations.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 18 October 2024 17:16:36 UTC