Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The <menu> 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 <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Commit-Queue: Peng Zhou <[email protected]> Cr-Commit-Position: refs/heads/main@{#1325899}
- Loading branch information