Skip to content

[css-lists] UA styles for ::marker are duplicated and out of sync #5346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Loirooriol opened this issue Jul 21, 2020 · 1 comment
Closed

Comments

@Loirooriol
Copy link
Contributor

From https://drafts.csswg.org/css-lists/#marker-properties

UAs must add the following rule to their default style sheet:

::marker, ::before::marker, ::after::marker {
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

From https://drafts.csswg.org/css-lists/#ua-stylesheet

li::marker {
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

They got out of sync. It would probably be better to avoid the duplicity and define the UA styles for markers in a single place.

@Loirooriol Loirooriol added the css-lists-3 Current Work label Jul 21, 2020
@twilco
Copy link
Contributor

twilco commented Aug 28, 2020

Is that single place here: https://html.spec.whatwg.org/multipage/rendering.html#lists?

From https://drafts.csswg.org/css-lists/#ua-stylesheet:

This section is informative, not normative. The [HTML] Rendering chapter defines the normative default properties that apply to HTML lists;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants