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

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