Skip to content

merge_pr_47081

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jul 03:54

The

element should act as the list owner of a list element

According to the spec, <menu> element should act as the list owner.
https://html.spec.whatwg.org/#the-li-element

If its parent element is an ol, ul, or menu element, then
the element is an item of the parent element's list.
Any element whose computed value of 'display' is 'list-item'
has a list owner, which is determined as follows:
If the element has an ol, ul, or menu ancestor, set
ancestor to the closest such ancestor element.

This patch also modify the <ol> element in ref.html to <menu>
element. The visual effects of <ol> and <menu> are inconsistent.

Bug: 40781706
Change-Id: I2776ae7bec16a8b7a9005f19c92444d7be657ecb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5667497
Reviewed-by: Ian Kilpatrick ikilpatrick@chromium.org
Reviewed-by: Joey Arhar jarhar@chromium.org
Commit-Queue: Peng Zhou zhoupeng.1996@bytedance.com
Cr-Commit-Position: refs/heads/main@{#1325899}