- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Jun 2022 21:00:35 +0000
- To: public-css-archive@w3.org
> That's for `text-align`. But in the spec `text-align` is a shorthand, so `text-align: match-parent` just sets `text-align-all: match-parent` and `text-align-last: match-parent`. Defining values in shorthands seems confusing to me, but it also happens e.g. in https://drafts.csswg.org/css-overflow/#propdef-overflow > What is the parent of the last-line? It's not the parent of the last line. If the block container is element-generated, then it's the parent element of the element that generates that block container. If it's anonymous, it's the parent box of the block container (see https://drafts.csswg.org/css-display-3/#anonymous). The root element has no parent. So the inherited value is the initial value, `start`, which is then resolved using the `direction` of the initial containing block, which per https://drafts.csswg.org/css-display-3/#containing-block is the `direction` of the root element itself. Not sure if this is the computed or the used value, which may be different due to https://drafts.csswg.org/css-writing-modes-4/#principal-flow. Whatever happens, it should be analogous for `text-align-all` and `text-align-last`. > Also it doesn't explain why the computed value of `match-parent` is as specified for `text-align-last`, but not `text-align` Yeah, I guess `text-align-last` should also say "Computed value: keyword as specified, except for match-parent which computes as defined above". -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7331#issuecomment-1145337029 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 21:00:37 UTC