Re: [csswg-drafts] [css-text] text-align: match-parent on the root element with direction: rtl doesn't match browsers (#6542)

@frivoal propagation to the icb is done _after_ style resolution, though, so it can't really be used to deal with this. We could use the root element's writing-mode itself, but that wouldn't match the spec either because the principal writing mode is propagated from the _body_ (and we don't have the body style when computing the root style for obvious reasons, you need the root style for the `<body>` to inherit from).

I tracked that bit of code down through blame. Reasoning for our behavior is here:

 * https://bugzilla.mozilla.org/show_bug.cgi?id=645642#c22

Maybe the spec didn't say anything about the ICB back then? I think making it compute to start is the most reasonable thing FWIW.

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


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

Received on Wednesday, 25 May 2022 17:22:57 UTC