Re: [csswg-drafts] [css-text-3] Switch line-breaking handling of atomic inlines (#4949)

I started writing a long comment here that I thought was going to be in support of PR #4755, but by the end I found myself thinking that maybe the `wrap-*` properties are the right solution. So I guess I'm leaning towards proposal 2.

Could we define additional values for `wrap-*` that don't directly force or prohibit a break, but instead override the line-breaking class of the inline? So `wrap-before: ideographic` would mean the element behaves as class `ID` for the purpose of determining whether a break is allowed before it, etc.

So the initial values `wrap-before: auto; wrap-after: auto;` would give the web-compatible legacy "always breakable" behavior for an inline image; `wrap-before: ideographic; wrap-after: ideographic;` would give the behavior CSS Text tried to specify as default (without needing any specific `line-break` value); and other values could be defined to correspond to other line-breaking classes if there's any demand for them.

(It'd be nice to have a shorthand that sets both `wrap-before` and `wrap-after` to a single value: `img { wrap: ideographic; }` to opt in to the `ID`-like behavior. But maybe `wrap` is too short and non-specific, given how many assorted line-breaking/wrapping controls we have.)

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

Received on Monday, 20 April 2020 10:15:30 UTC