Skip to content

Commit 79a84b7

Browse files
dbaronchromium-wpt-export-bot
authored andcommitted
Escape characters when serializing CSS ::highlight() pseudo-element's argument.
Bug: 495819158 Change-Id: Ia027a070e60dda02132cf0d7baea1253f6d76b12
1 parent 0132c62 commit 79a84b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

css/css-highlight-api/highlight-pseudo-parsing.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
test_valid_selector(`div ${pseudo}`);
1313
test_valid_selector(`::part(my-part)${pseudo}`);
1414

15+
test_valid_selector("::highlight(multi\\ word)");
16+
test_valid_selector("::highlight(\\31\\32\\33)", "::highlight(\\31 23)");
17+
1518
test_invalid_selector("::highlight");
1619
test_invalid_selector(`::before${pseudo}`);
1720
test_invalid_selector(`${pseudo}.a`);

0 commit comments

Comments
 (0)