Page MenuHomePhabricator

Sanitized CSS does not recognise @counter-style
Closed, ResolvedPublicFeature

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Try saving the below fragment in a Sanitized CSS page of TemplateStyles
@counter-style thumbs {
  system: cyclic;
  symbols: "\1F44D";
  suffix: " ";
}

ul {
  list-style: thumbs;
}

What happens?:
You get an error

Then you get an error from saving by TemplateStyles/css-sanitizer

  • Unrecognized or unsupported rule at line 1 character 1.
  • Invalid or unsupported value for property list-style at line 8 character 15.

What should have happened instead?:
You should be able to save the CSS. This is part of Level 3 of

Details

Related Changes in Gerrit:

Event Timeline

TheDJ triaged this task as Low priority.Oct 18 2021, 2:19 PM
TheDJ changed the subtype of this task from "Bug Report" to "Feature Request".
TheDJ updated the task description. (Show Details)
TheDJ updated the task description. (Show Details)

Change #1149532 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[css-sanitizer@master] Add Counter Styles 3 and Lists 3

https://gerrit.wikimedia.org/r/1149532