::marker shouldn't inherit text-align-last
Categories
(Core :: Layout: Generated Content, Lists, and Counters, defect, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
Attachments
(2 files)
In UA origin you are already setting
::marker {
text-align: end;
}
However, against the spec, text-align is not a shorthand of text-align-last. So I think you should also reset text-align-last in UA origin, like I did in Chromium.
See this testcase:
<!DOCTYPE html>
<ol style="list-style: '[foo\a ]'; width: max-content">
<li style="text-align-last: start">text</li>
<li style="text-align-last: end">text</li>
</ol>
The text-align-last should only affect the text inside the list item, not the ::marker.
But the ] in the 2nd line of the marker has a different position in each list item.
Updated•4 years ago
|
Comment 1•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
| Assignee | ||
Comment 2•2 months ago
|
||
text-align was already set to end, but text-align-last isn't
implemented as a longhand, so it needs the same treatment.
In practice this prevents the ::marker from inheriting the value from
its originating element, since text-align-last shouldn't apply
according to https://drafts.csswg.org/css-lists/#marker-properties
Updated•2 months ago
|
Comment 4•2 months ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•