W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Aug 2016 13:44:11 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-172702993-1471959849-sysbot+gh@w3.org>
zcorpan has just created a new issue for 

== [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.)


> 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 
 -- 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? 

cc @rocallahan

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/421 using your GitHub 
Received on Tuesday, 23 August 2016 13:44:18 UTC

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