You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick test shows that implementations for text-wrap actually allow flex and block containers as well as tables, generally speaking all non-inline blocks.
nt1m
changed the title
[css-text-4] Let tex-wrap-style apply to more than just block containers
[css-text-4] Let text-wrap-style apply to more than just block containers
Oct 25, 2023
The 3 cases have an anonymous block container. It just works because it's an inherited property.
Applying to a flex container would imply affecting how flex items are distributed among flex lines, that's not what's happening here. (That would be reasonable, and I recall some existing issue about this, but probably shouldn't be named text-)
No, because text-wrap-mode needs to apply to inlines/text, rather than block containers.
Not sure about just changing a single longhand
I don't think that's an issue. shorthand / longhand relationships are about parsing / cascading, while the "applies to" part describes the effects. Property having a value but no effect is common, and I'm pretty sure there's precedent for shorthands having longhands with different "applies to".
A quick test shows that implementations for
text-wrap
actually allow flex and block containers as well as tables, generally speaking all non-inline blocks.Though the spec. currently restricts
text-wrap-style
to block containers.Therefore, I suggest to change that to say that it applies to all containers but inline-level boxes.
Sebastian
The text was updated successfully, but these errors were encountered: