From 9dfc9ca38ffefdcfe910afc47eaa864f7e25cd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=9D?= Date: Thu, 15 Sep 2022 12:24:37 +0800 Subject: [PATCH 1/2] feat: add `@keyframes` name parsing I and @CGQAQ are working on implementing interoperability of `` across browsers The Chromium patch[1] requires this test [1]: https://chromium-review.googlesource.com/c/chromium/src/+/3865188 --- .../parsing/keyframes-name-invalid.html | 71 ++++++++++++++ .../parsing/keyframes-name-valid.html | 92 +++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 css/css-animations/parsing/keyframes-name-invalid.html create mode 100644 css/css-animations/parsing/keyframes-name-valid.html diff --git a/css/css-animations/parsing/keyframes-name-invalid.html b/css/css-animations/parsing/keyframes-name-invalid.html new file mode 100644 index 00000000000000..83e06cfdf0b028 --- /dev/null +++ b/css/css-animations/parsing/keyframes-name-invalid.html @@ -0,0 +1,71 @@ + + + + + CSS Animations: parsing @keyframes name with invalid values + + + + + + + + +
+
+
+ + + \ No newline at end of file diff --git a/css/css-animations/parsing/keyframes-name-valid.html b/css/css-animations/parsing/keyframes-name-valid.html new file mode 100644 index 00000000000000..8b791a82e10774 --- /dev/null +++ b/css/css-animations/parsing/keyframes-name-valid.html @@ -0,0 +1,92 @@ + + + + + CSS Animations: parsing @keyframes name with valid values + + + + + + + + +
+
+
+ + + \ No newline at end of file From 16dba8f89245f1e4311a7ba477823986cd7f22ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=9D?= Date: Thu, 15 Sep 2022 23:40:26 +0800 Subject: [PATCH 2/2] The test_keyframes_name function is extracted into the common file --- .../parsing/keyframes-name-invalid.html | 33 +++-------------- .../parsing/keyframes-name-valid.html | 36 ++++--------------- css/support/parsing-testcommon.js | 23 ++++++++++++ 3 files changed, 34 insertions(+), 58 deletions(-) diff --git a/css/css-animations/parsing/keyframes-name-invalid.html b/css/css-animations/parsing/keyframes-name-invalid.html index 83e06cfdf0b028..f14dff3e2c0db5 100644 --- a/css/css-animations/parsing/keyframes-name-invalid.html +++ b/css/css-animations/parsing/keyframes-name-invalid.html @@ -15,34 +15,6 @@