Re: [csswg-drafts] [css-inline-3] Naming text-box-trim et al. (#10675)

> Setting only <text-edges> defaults text-box-trim to both (not initial value).


I have concerns about this default behavior. It's an uncommon pattern that might cause issues when defining content with mixed languages.

Consider a scenario where we want to define text-edges for headlines or sections with different writing systems, allowing for trim based on another class:

```html
<h1 class="ideographic">こんにちは</h1>
<h1 class="alphabetic">Hello</h1>
```

With the proposed default trimming, we would need to explicitly set `text-box-trim: none`:

```css
.ideographic {
  text-box-edge: ideographic;
  text-box-trim: none;
}
```

The benefit of this default seems very small  especially given that trimming can be set directly with the `text-box` shorthand:

```css
.shorthand {
  text-box: trim ideographic;
}
```

I personally would prefer a simple solution where authors wouldn't have to think about such a side effect.

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


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

Received on Monday, 5 August 2024 09:15:14 UTC