<ol type=disc> should have no effect per spec (and interop with Chrome/Safari)
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: zcorpan, Assigned: emilio)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
See https://github.com/whatwg/html/issues/9967
Spec https://html.spec.whatwg.org/#lists
Tests https://wpt.fyi/results/html/rendering/non-replaced-elements/lists/lists-styles.html?label=master&label=experimental&aligned&q=firefox%3Afail
We fail these tests:
<ul type="1"> - list-style-type
<ul type="a" class="type-a"> - list-style-type
<ul type="A" class="type-A"> - list-style-type
<ul type="i" class="type-i"> - list-style-type
<ul type="I" class="type-I"> - list-style-type
<ol type="none"> - list-style-type
<li type="none"> - list-style-type
<ol type="NONE"> - list-style-type
<li type="NONE"> - list-style-type
<ol type="disc"> - list-style-type
<ol type="DISC"> - list-style-type
<ol type="circle"> - list-style-type
<ol type="CIRCLE"> - list-style-type
<ol type="square"> - list-style-type
<ol type="SQUARE"> - list-style-type
At first I thought this was implemented in html.css but I didn't find relevant rules there. I guess it's in https://searchfox.org/mozilla-central/source/dom/html/HTMLSharedListElement.cpp
| Reporter | ||
Comment 1•2 years ago
|
||
Not in the wpt tests yet but we also support <ol type="lower-roman"> which isn't per spec. https://software.hixie.ch/utilities/js/live-dom-viewer/saved/12192
| Assignee | ||
Comment 2•2 years ago
|
||
Yeah presumably we need to split this codepath into one for <ol> and one for <ul>:
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Other browsers seem to follow the spec to the letter, so do the same.
The list-styles.html test is marked as failing, but that's because it
hasn't been synced yet.
Updated•2 years ago
|
| Reporter | ||
Comment 5•2 years ago
|
||
For dev-doc-needed:
<ol type=none/disc/circle/square>no longer work (these are only valid forul).<ul type=1/a/A/i/I>no longer work (these are only valid forol).- The non-standard values
decimal,lower-roman,upper-roman,lower-alpha,upper-alphafor thetypeattribute onol,ul,lielements no longer work.
This change makes us conform to the HTML standard and should match WebKit and Chromium.
Comment 6•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Description
•