Skip to content

Commit

Permalink
Bug 1644733 [wpt PR 24087] - [@Property] Serialize property name as a…
Browse files Browse the repository at this point in the history
…n identifier, a=testonly

Automatic update from web-platform-tests
[@Property] Serialize property name as an identifier

The serialization must follow the "serialize an identifier" algorithm,
otherwise characters like U+0009 CHARACTER TABULATION will not be
escaped correctly.

Bug: 973830
Change-Id: I2dc943a74900adaf147e1615070c152a78cb5767
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238117
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777302}

--

wpt-commits: f995ed6cb0a58ad94b7169e379966040fca3c18f
wpt-pr: 24087
  • Loading branch information
andruud authored and moz-wptsync-bot committed Jun 17, 2020
1 parent a4e6cd4 commit 3c9a7c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
@property --initial-value-only {
initial-value: red;
}
/* U+0009 CHARACTER TABULATION */
@property --tab\9 tab { }
</style>
<script>

Expand Down Expand Up @@ -119,6 +121,7 @@
test_css_text('--syntax-only', '@property --syntax-only { syntax: "<color> | none"; }');
test_css_text('--inherits-only', '@property --inherits-only { inherits: true; }');
test_css_text('--initial-value-only', '@property --initial-value-only { initial-value: red; }');
test_css_text('--tab\ttab', '@property --tab\\9 tab { }');

// CSSRule.type

Expand Down

0 comments on commit 3c9a7c5

Please sign in to comment.