W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

[csswg-drafts] [css-lists] 'marker-side' values have confusing names (#5308)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Jul 2020 14:24:39 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-654102807-1594304677-sysbot+gh@w3.org>
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-lists] 'marker-side' values have confusing names ==
https://drafts.csswg.org/css-lists/#marker-side defines `marker-side: match-self` and `marker-side: match-parent`.

However, `marker-side` in an inherited property, so one could set it in the list element like

```css
ol {
  marker-side: match-self;
}
```

expecting that `match-self` will use the directionality of the `ol`. But `marker-side` applies to the list item, so the author should actually use


```css
ol {
  marker-side: match-parent;
}
```

even if it may seem to mean that it will use the directionality of `ol`'s parent.

It can also be confusing because `direction` applies to ::marker. So somebody could think that `marker-side: match-self` refers to the ::marker and `marker-side: match-parent` refers to the ::marker's parent (i.e. the list item).

I think something like `marker-side: match-list-item` and `marker-side: match-list` would be much clearer.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5308 using your GitHub account
Received on Thursday, 9 July 2020 14:24:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC