W3C home > Mailing lists > Public > www-style@w3.org > February 2015

[css-scoping] Shadow Cascading

From: Rune Lillesveen <rune@opera.com>
Date: Tue, 3 Feb 2015 14:51:17 +0100
Message-ID: <CANz6XvTn17f1rjBP0_SWF1yiqGgKkKUyjX7FmtM3=En3SBdqWA@mail.gmail.com>
To: www-style list <www-style@w3.org>
In [1] you have:

"When comparing two declarations, if one of them is in a shadow tree
and the other is in a document that contains that shadow tree, then
for normal rules the declaration from the outer document wins, and for
important rules the declaration from the shadow tree wins."

What about nested shadow trees? Could "document" be "shadow tree" as well?


"When calculating Order of Appearance, the tree of trees, defined by
the Shadow DOM specification, is used to calculate ordering."

Assuming the first point holds for nested shadow trees as well, order
of appearance only applies within the same scope, right?

If so, using "tree of trees" might mislead to think otherwise.

[1] http://dev.w3.org/csswg/css-scoping/#shadow-cascading

Rune Lillesveen
Received on Tuesday, 3 February 2015 13:51:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC