[csswg-drafts] [css-text] Define "content order" for innerText

zcorpan has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-text] Define "content order" for innerText ==
>From https://github.com/whatwg/html/issues/1679

>  Is "content order" for CSS boxes defined? (Step 2.5.)

https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute

> If node is a Text node, then for each CSS text box produced by node,
 in content order, compute the text of the box after application of 
the CSS 'white-space' processing rules and 'text-transform' rules, let
 the result of these substeps be a list of the resulting strings, and 
abort these substeps. The CSS 'white-space' processing rules are 
slightly modified: collapsible spaces at the end of lines are always 
collapsed, but they are only removed if the line is the last line of 
the block, or it ends with a br element. Soft hyphens should be 
preserved. [CSSTEXT]

Is there anything that defines such an order?

Some tests in 
https://github.com/w3c/web-platform-tests/blob/master/innerText/getter-tests.js
 -- not sure if they are stressing this issue so much in particular 
though. I suppose the interesting cases are when a single `Text` node 
produces multiple CSS boxes and the order is weird? Bidi? Regions? 
Multicol?

cc @rocallahan

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/421 using your GitHub 
account

Received on Tuesday, 23 August 2016 13:44:18 UTC