Re: [csswg-drafts] [css-writing-mode][css-display] Should writing-mode from display:contents element be applied to text?

> Spec-wise, properties are only applied to elements

Not really. From https://www.w3.org/TR/css-cascade-4/#placement,

> For the purpose of this specification, text nodes are treated as element children of their associated element, and possess the full set of properties

>From https://drafts.csswg.org/css-display-3/#intro,

> each contiguous sequence of sibling text nodes generates a text run containing their text contents, which is assigned the same styles as the generating text nodes

See #1118 and #1249. Gecko does it right.



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

Received on Thursday, 27 September 2018 12:38:44 UTC