Bug 2040796 [wpt PR 59983] - Escaped idents when serializing CSS counter names, a=testonly

Automatic update from web-platform-tests
Escaped idents when serializing CSS counter names

There was missing escaping for idents when serializing counter names in:

- The counter-set/reset/increment property values
- The content property value

Bug: 514429130
Change-Id: Ia21161017622af951fb6895bb995af396489f04e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7859556
Reviewed-by: Daniil Sakhapov <sakhapov@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1632982}

--

wpt-commits: cc6b06b2b383081ed75d6100d3bf379eac66aae7
wpt-pr: 59983
This commit is contained in:
Rune Lillesveen
2026-05-22 14:16:27 +00:00
committed by wptsync@mozilla.com
parent 84bd1cc4aa
commit 8f8a5e2925
4 changed files with 6 additions and 0 deletions
@@ -47,6 +47,9 @@ test_valid_value_combinations("content", `counters(counter-name, ".") "potato"`)
test_valid_value_combinations("content", `"(" counters(counter-name, ".", counter-style) ")"`);
test_valid_value_combinations("content", `open-quote "hello" "world" close-quote`);
test_valid_value_combinations("content", `url("picture.svg") "hello"`);
test_valid_value_combinations("content", "counter(\\})");
test_valid_value_combinations("content", `counters(\\}, ".")`);
</script>
</body>
</html>
@@ -20,6 +20,7 @@ test_valid_value('counter-increment', 'section calc(-2.5)');
test_valid_value('counter-increment', 'section calc(10 + (5 * sign(2cqw - 10px)))');
test_valid_value('counter-increment', 'a 1 b 2 c 3 d 4 e 5');
test_valid_value('counter-increment', 'a 1 b 2 c 3 a 4 b 5');
test_valid_value('counter-increment', 'a\\ 8 9');
</script>
</body>
</html>
@@ -26,6 +26,7 @@ test_valid_value('counter-reset', 'section calc(-2.5)');
test_valid_value('counter-reset', 'section calc(10 + (5 * sign(2cqw - 10px)))');
test_valid_value('counter-reset', 'a 1 b 2 c 3 d 4 e 5');
test_valid_value('counter-reset', 'a 1 b 2 c 3 a 4 b 5');
test_valid_value('counter-reset', 'a\\ 8 9');
</script>
</body>
</html>
@@ -20,6 +20,7 @@ test_valid_value('counter-set', 'section calc(-2.5)');
test_valid_value('counter-set', 'section calc(10 + (5 * sign(2cqw - 10px)))');
test_valid_value('counter-set', 'a 1 b 2 c 3 d 4 e 5');
test_valid_value('counter-set', 'a 1 b 2 c 3 a 4 b 5');
test_valid_value('counter-set', 'a\\ 8 9');
</script>
</body>
</html>