[Shadow DOM] Shadown DOM and Regions CSSOM

Hello,

This is a cross-post from the www-style discussion list in case anyone is
interested about this subject:

Currently the CSS Regions spec doesn't mention what happens with regions
that are part of a shadow tree. The NamedFlow interface exposes the
getRegions API that "returns the sequence of regions in the region chain
associated with the named flow". I suppose the CSSOM needs to be adapted
to take into account the shadow boundaries.

One way to do it is to add NamedFlow accessor APIs to the shadow root
object, similar to what's available on the Document. The NamedFlow objects
returned using the new API will provide access to the regions found in the
shadow tree. The NamedFlow objects returned from the host document give
access only to the regions above the shadow boundary.

Thoughts?
Andrei.

Received on Thursday, 21 June 2012 09:24:32 UTC