Re: [csswg-drafts] [css-text] text-align-last: match-parent; is not well defined (#7331)

> Isn't this defined in https://drafts.csswg.org/css-text/#valdef-text-align-match-parent ?
> 
> > This value behaves the same as [`inherit`](https://drafts.csswg.org/css-cascade-5/#valdef-all-inherit) (computes to its parent’s computed value) except that an [inherited value](https://drafts.csswg.org/css-cascade-5/#inherited-value) of [`start`](https://drafts.csswg.org/css-text/#valdef-text-align-start) or [`end`](https://drafts.csswg.org/css-text/#valdef-text-align-end) is interpreted against the parent’s (or the [initial containing block](https://drafts.csswg.org/css-display-3/#initial-containing-block)’s, if there is no parent) [`direction`](https://drafts.csswg.org/css-writing-modes-3/#propdef-direction) value and results in a computed value of either [`left`](https://drafts.csswg.org/css-text/#valdef-text-align-left) or [`right`](https://drafts.csswg.org/css-text/#valdef-text-align-right).
> 
> The behavior would be like for `text-align-all`, but for the last line.

That's for `text-align`. What is the parent of the last-line?  Also it doesn't explain why the computed value of `match-parent` is as specified for `text-align-last`, but not `text-align` (where `match-parent` computes to `left`/`right`).


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


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

Received on Thursday, 2 June 2022 20:21:01 UTC