From 402f96fb18a385f5a7496f7b88f63c17236ae779 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 8 Feb 2017 09:46:43 -0500 Subject: [PATCH] Remove never-reached list item ordinal value condition It is in fact impossible for a list item to not have a list owner, as there is always at least one ancestor that produces a CSS box. This was discovered in https://github.com/w3c/web-platform-tests/pull/4754. The original algorithm was introduced in 5fe3dbb016f40f0b7af0538dae9adc134be29c3f. --- source | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source b/source index 5f62cac2a9b..506aacb67a5 100644 --- a/source +++ b/source @@ -17552,9 +17552,12 @@ interface HTMLLIElement : HTMLElement {
  • If the element has an ol, ul, or menu ancestor, set ancestor to the closest such ancestor element.

  • -
  • Return the closest inclusive ancestor of ancestor that produces a CSS box, if - any. If no such inclusive ancestor exists, then return null; the element has no list - owner.

  • +
  • +

    Return the closest inclusive ancestor of ancestor that produces a CSS box.

    + +

    Such an element must always exist, as at the very least the document + element must always produce a CSS box.

    +
  • To determine the ordinal value of each element owned by a given list @@ -17599,12 +17602,6 @@ interface HTMLLIElement : HTMLElement {

  • Go to the step labeled loop.

    -

    The ordinal value of any element with a list owner of null is 0.

    - -

    This can only impact the rendered counter when all of the element's ancestors do - not produce CSS boxes, such as if they are all styled with display: - contents.

    -

    The value IDL attribute must reflect @@ -119501,7 +119498,7 @@ INSERT INTERFACES HERE Elizabeth Castro, Elliott Sprehn, Elliotte Harold, - Emilio Cobos, + Emilio Cobos Álvarez, Emily Stark, Eric Carlson, Eric Casler,