W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

[shadow-dom] Counters and list item counting

From: Elliott Sprehn <esprehn@gmail.com>
Date: Tue, 19 Feb 2013 11:20:44 -0800
Message-ID: <CAPJYB1hWUKkuea9ozm1DxZSq+jzyvbUivaBpdcuBCfkobp6h8Q@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>, Andrei Bucur <abucur@adobe.com>
Currently in Webkit list item counting is done on the render tree, but we
are looking at making it use the DOM instead so that ordered lists work
properly in regions. This raises an interesting question about if they
should use the composed shadow tree, or the original tree.

ex.

<x-widget>
<ol>
  <li>
  <li>
</ol>
</x-widget>

inside x-widget:

<div>
  <content select="li:last-child">
</div>

What's the count on that projected list item?

This also raises questions of how counters interact with shadows. Should
counters work on the project DOM or the original DOM?

We're leaning towards the original DOM since otherwise counters become
difficult to work with when they're reprojected deeper and deeper down a
component hierarchy.

- E
Received on Tuesday, 19 February 2013 19:21:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT