Re: [whatwg/dom] Proposal: New method to reorder child nodes (#891)

@barneycarroll that’s a great find + demo.

In CSS Lists 3, the “tree” whose tree order is used to [determine counter inheritance](https://w3c.github.io/csswg-drafts/css-lists-3/#inheriting-counters) and (if I understand right) in turn take their numeric values and (in the typical case) increment them. It talks about parents and siblings, but a note clarifies that the tree in question is the flattened tree, which I think means the Firefox behavior is consistent with what’s specified.

> An element [inherits](https://w3c.github.io/csswg-drafts/css-lists-3/#inherit-counters) its initial set of counters from its parent and preceding sibling. It then takes the values for those counters from the values of the matching counters on its preceding element in [tree order](https://dom.spec.whatwg.org/#concept-tree-order) (which might be its parent, its preceding sibling, or a descendant of its previous sibling).
> [...]
> Note: Counter [inheritance](https://w3c.github.io/csswg-drafts/css-cascade-5/#inheritance), like regular CSS inheritance, operates on the “flattened element tree” in the context of the [[DOM]](https://w3c.github.io/csswg-drafts/css-lists-3/#biblio-dom).

I’m not good at reading CSS specs, though and may be looking in the wrong place or misinterpreting. @tabatkins would you know whether Blink or Gecko (or neither) is rendering @barneycarroll’s demo correctly?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/891#issuecomment-1292383066

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/891/1292383066@github.com>

Received on Wednesday, 26 October 2022 17:36:04 UTC