W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] writing-mode propagation from body to document element is annoying (#4357)

From: Rune Lillesveen via GitHub <sysbot+gh@w3.org>
Date: Thu, 03 Oct 2019 11:14:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-537900856-1570101262-sysbot+gh@w3.org>
Blink is storing the writing-mode on its ComputedStyle. We discussed this in a Taxi in Fukuoka, and I think a feasible solution (avoiding a lot of if-branching in the code) was to add a used writing-mode value to the ComputedStyle object which would have the same value as the computed value in all cases but for the root element in the case where writing-mode for body differs from the root element. After updating styles for body, we would check if the body and root element differ in their computed styles, and if so clone the root ComputedStyle and set the used writing-mode to that of the body.

It doesn't sound all that crazy, but not all that great either.


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4357#issuecomment-537900856 using your GitHub account
Received on Thursday, 3 October 2019 11:14:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC