[Webkit-unassigned] [Bug 265619] Extend 'Presentational Hints' from 'LI' (list-item) to 'OL'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 30 18:04:56 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=265619

--- Comment #5 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Tim Nguyen (:ntim) from comment #4)
> I think this test is actually incorrect and not conformant to the spec. It
> tests that ol supports the `none` / `disc` / `circle` / `square` list style
> types, but the spec says otherwise (those types are restricted to `ul` and
> `li` in the spec).

Yep:

In test: https://github.com/web-platform-tests/wpt/blob/0caf8c7c02/html/rendering/non-replaced-elements/lists/lists-styles.html#L38

We have:

ol[class=type-a], li[class=type-a] { list-style-type: lower-alpha; }
ol[class=type-A], li[class=type-A] { list-style-type: upper-alpha; }
ol[class=type-i], li[class=type-i] { list-style-type: lower-roman; }
ol[class=type-I], li[class=type-I] { list-style-type: upper-roman; }
ol[type=none i], li[type=none i] { list-style-type: none; }
ol[type=disc i], li[type=disc i] { list-style-type: disc; }
ol[type=circle i], li[type=circle i] { list-style-type: circle; }
ol[type=square i], li[type=square i] { list-style-type: square; }

but web-spec is:

ol[type="1"], li[type="1"] { list-style-type: decimal; }
ol[type=a s], li[type=a s] { list-style-type: lower-alpha; }
ol[type=A s], li[type=A s] { list-style-type: upper-alpha; }
ol[type=i s], li[type=i s] { list-style-type: lower-roman; }
ol[type=I s], li[type=I s] { list-style-type: upper-roman; }
ul[type=none i], li[type=none i] { list-style-type: none; }
ul[type=disc i], li[type=disc i] { list-style-type: disc; }
ul[type=circle i], li[type=circle i] { list-style-type: circle; }
ul[type=square i], li[type=square i] { list-style-type: square; }

__

NOTE: Firefox / Gecko do support 'presentational' hints on 'OL' but WebKit / Safari don't.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231201/d721d56a/attachment.htm>


More information about the webkit-unassigned mailing list