From 3ec45a6858a24c56ee1fe143410f3763b2b5e4b4 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 1 Mar 2022 18:26:17 +0300 Subject: [PATCH] feat(css/ast): Union `Value` and `ComponentValue` (#3804) --- crates/swc_css_ast/src/base.rs | 38 +- crates/swc_css_ast/src/value.rs | 61 +- crates/swc_css_codegen/src/lib.rs | 92 +- crates/swc_css_codegen/tests/fixture.rs | 10 +- .../src/compress/alpha_value.rs | 10 +- crates/swc_css_minifier/src/compress/angle.rs | 10 +- .../src/compress/declaration.rs | 56 +- .../src/compress/easing_function.rs | 48 +- .../swc_css_minifier/src/compress/length.rs | 10 +- .../src/compress/transform_function.rs | 92 +- crates/swc_css_parser/src/parser/at_rule.rs | 59 +- crates/swc_css_parser/src/parser/base.rs | 222 +- crates/swc_css_parser/src/parser/mod.rs | 8 +- crates/swc_css_parser/src/parser/value/mod.rs | 145 +- .../rome/invalid/min-or-max/output.stderr | 6 + crates/swc_css_parser/tests/fixture.rs | 4 +- .../at-rule/color-profile/span.rust-debug | 16 +- .../at-rule/counter-style/span.rust-debug | 32 +- .../fixture/at-rule/document/span.rust-debug | 77 +- .../fixture/at-rule/font-face/span.rust-debug | 29 +- .../fixture/at-rule/import/span.rust-debug | 72 +- .../fixture/at-rule/keyframe/span.rust-debug | 217 +- .../fixture/at-rule/layer/span.rust-debug | 208 +- .../fixture/at-rule/nest/span.rust-debug | 115 +- .../fixture/at-rule/page/span.rust-debug | 202 +- .../fixture/at-rule/property/span.rust-debug | 24 +- .../fixture/at-rule/supports/span.rust-debug | 690 +++++- .../fixture/at-rule/unknown/span.rust-debug | 1879 ++++++++++++++++- .../tests/fixture/bom/span.rust-debug | 8 +- .../tests/fixture/comment/span.rust-debug | 32 +- .../fixture/dashed-ident/span.rust-debug | 46 +- .../fixture/declaration-list/span.rust-debug | 16 +- .../tests/fixture/declaration/span.rust-debug | 282 ++- .../fixture/delim/backslash/span.rust-debug | 14 +- .../fixture/dimension/basic/span.rust-debug | 56 +- .../-4j83DwgJa0nPQIjlb0RIA/span.rust-debug | 8 +- .../-GZJfOA9TK6La2KGGNgCkg/span.rust-debug | 8 +- .../-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug | 8 +- .../-edvtxlXMemv5jnGeyueBA/span.rust-debug | 8 +- .../-gboAEi1zyjFW5mtEM24Rg/span.rust-debug | 26 +- .../07tvJxvZrgDeTmptOclErA/span.rust-debug | 14 +- .../0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug | 8 +- .../12EwJCu6DsfOEJubQW9jLg/span.rust-debug | 24 +- .../1naykwaIKZc6zuHRNIccLQ/span.rust-debug | 8 +- .../2nNBhRWO2cNcBJf09zDxjw/span.rust-debug | 8 +- .../36qnNuIUvbIrMnJKDxwE5A/span.rust-debug | 8 +- .../375WZQg3bngUbuoHsqEIcA/span.rust-debug | 20 +- .../39pbt1sIeFh8WWhCalZS4g/span.rust-debug | 8 +- .../3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug | 8 +- .../3JGye8AhworwNFoUL1gKbg/span.rust-debug | 8 +- .../3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug | 8 +- .../3a1KXFwtncypOUCwQI7IAw/span.rust-debug | 14 +- .../485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug | 8 +- .../486QvEO8dmLFsXYp6xgKVw/span.rust-debug | 8 +- .../4Tjjgepnha63E4UiXXDNEA/span.rust-debug | 8 +- .../4WSp4-HbKB-f1GLF00sf6A/span.rust-debug | 14 +- .../4_H2sj_CNmUQHGctk7geQQ/span.rust-debug | 6 + .../53OltIbJ-YBXtSKedVvYwA/span.rust-debug | 8 +- .../5al65IRQbw_x4yG3ke74fQ/span.rust-debug | 8 +- .../5cnGKjYPm1XBeqTmw3oCag/span.rust-debug | 8 +- .../5yer6GUWydidDHrfgacUkA/span.rust-debug | 8 +- .../6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug | 8 +- .../6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug | 8 +- .../6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug | 8 +- .../7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug | 8 +- .../7YGXOizztR38f8fGB1DRaQ/span.rust-debug | 8 +- .../866Law8W0FQas7QMxFjUbw/span.rust-debug | 8 +- .../8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug | 8 +- .../9IIa-42s3YQFw8ilk39GdQ/span.rust-debug | 8 +- .../A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug | 8 +- .../ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug | 8 +- .../AMheAL_TeyLZpn77YdNTZA/span.rust-debug | 6 + .../ATZbhYBr7fOFJoZ4E2dwkA/span.rust-debug | 28 +- .../AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug | 8 +- .../Afm91-TMNbzd52HsPrCCNA/span.rust-debug | 8 +- .../AigZ338AGwCqF4M9a3Quqw/span.rust-debug | 8 +- .../AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug | 8 +- .../AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug | 8 +- .../BGEkoLaLFY8_QtKKVFDVhQ/span.rust-debug | 6 + .../BKyQWW5j9vRP-kr41nqcjg/span.rust-debug | 8 +- .../BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug | 8 +- .../C4I0cdQcSbpaGOS-V8fwew/span.rust-debug | 8 +- .../C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug | 8 +- .../CQiowK9DjojqKtlpQifemA/span.rust-debug | 8 +- .../CqrYlHva8qUNgSPb8EwWjg/span.rust-debug | 8 +- .../Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug | Bin 2205 -> 2352 bytes .../D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug | 8 +- .../DrlXteRB-ppLVxi4_N4dhA/span.rust-debug | 8 +- .../EJPa4WhTn_fRRrDiA2bczg/span.rust-debug | 8 +- .../EYFn-trzBus37dDEvK1jUQ/span.rust-debug | 8 +- .../ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug | 14 +- .../F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug | 8 +- .../FTOGKsI_y1QxMNEu_Fgq7Q/span.rust-debug | 14 +- .../FlqjDLebWxQvNIxKppBllw/span.rust-debug | 8 +- .../Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug | 8 +- .../GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug | 8 +- .../GI1rffTXev-78n9ei_53wQ/span.rust-debug | 8 +- .../GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug | 8 +- .../Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug | 16 +- .../HDNE73X9waUrBkTAzz-20g/span.rust-debug | 8 +- .../HWU09nmB9oZX7WY8zUbrnA/span.rust-debug | 8 +- .../JRVJhNKhBZ5OsLVFkRfqxw/span.rust-debug | 6 + .../Jmhb8p_Oc2-nzkcDSk0dww/span.rust-debug | 14 +- .../L0mEf41IMkWcP7NotllkAg/span.rust-debug | 84 + .../LoeMqdekBkn3XKYHQFHOZA/span.rust-debug | 8 +- .../MK5PGiCFMf7RHDp05gnDCw/span.rust-debug | 8 +- .../MMBANlJKeKQw886fHOYiHA/span.rust-debug | 8 +- .../MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug | 8 +- .../Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug | 8 +- .../MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug | 8 +- .../MxxFvoxSpp02tFmpbNdA8g/span.rust-debug | 8 +- .../NGFFzFWLONNmgWPM_FpiZg/span.rust-debug | 8 +- .../O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug | 10 +- .../OFqVy3cBzYnrIy6uze5Nuw/span.rust-debug | 20 +- .../OHdIPr6lNfq9lBs5RMtbrQ/span.rust-debug | 6 + .../Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug | 8 +- .../OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug | 8 +- .../PSncmPJMuHC-CjpwiYtkDw/span.rust-debug | 10 +- .../Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug | 8 +- .../R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug | 8 +- .../RmGccmub1dooAN8WPKTwhQ/span.rust-debug | 8 +- .../Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug | 18 +- .../S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug | 14 +- .../SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug | 8 +- .../SnMCumHJazvlgOXgmxJ9Jg/span.rust-debug | 12 + .../Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug | 8 +- .../T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug | 8 +- .../TB0HbwEy-7bhtK7ck9tHKQ/span.rust-debug | 28 +- .../TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug | 8 +- .../U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug | 8 +- .../Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug | 8 +- .../VOQJsreB5pi_yJysozWgcA/span.rust-debug | 232 +- .../Vx6S11kYP0h0sx1VehL-tw/span.rust-debug | 6 + .../W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug | 8 +- .../Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug | 22 +- .../Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug | 8 +- .../X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug | 8 +- .../X0UTnZK8bQhMRs3DGoqFAw/span.rust-debug | 20 +- .../YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug | 8 +- .../Yc70giIIGDIddrjD858dDw/span.rust-debug | 8 +- .../Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug | 8 +- .../Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug | 14 +- .../_APxY5Pe47Bb71-CwD1nhw/span.rust-debug | 8 +- .../_U4zAUbS93Xo7_tJOolGuA/span.rust-debug | 8 +- .../a0Yurt7E7InOYieD7nMCXg/span.rust-debug | 8 +- .../a7KElWOMF9ilrSsoliHkcg/span.rust-debug | 8 +- .../aDkLP2LEPmyD_ImzrGw8SQ/span.rust-debug | 20 +- .../aVoVLZHijXjMsJvx4rbJGQ/span.rust-debug | 8 +- .../avMO0PRST3qaooxANKWiIw/span.rust-debug | 16 +- .../axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug | 8 +- .../b102IE1MrM3aGTKCRrSU6Q/span.rust-debug | 8 +- .../b2m1STf0F5CKity6Nd4vmQ/span.rust-debug | 8 +- .../b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug | 8 +- .../bMhJJBpJJs8SIl3cQ4UjFw/span.rust-debug | 14 +- .../bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug | 8 +- .../bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug | 8 +- .../biImEvafuG5pEuEW8LgCCw/span.rust-debug | 8 +- .../cFk0V1dktTRk2wWOux0Y9A/span.rust-debug | 8 +- .../cGdUJvMcb_06jPxvv8lGkg/span.rust-debug | 8 +- .../ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug | 8 +- .../cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug | 24 +- .../cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug | 8 +- .../d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug | 8 +- .../dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug | 8 +- .../dVUzkh7NtbXySLzWGW0t9g/span.rust-debug | 24 +- .../eHdhrm6W2iHKQegxH7uEgw/span.rust-debug | 8 +- .../eVSpM_pYsIvyyewUkjTa2A/span.rust-debug | 8 +- .../eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug | 8 +- .../egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug | 8 +- .../eivsIn6ub-xYiqErLqd8oA/span.rust-debug | 8 +- .../fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug | 8 +- .../fmt94qCRfRXbpej5kzLZUw/span.rust-debug | 8 +- .../ftc5-zf_sliOrFRRBGGS-g/span.rust-debug | 8 +- .../gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug | 8 +- .../gVzUgfEllenh46I3Psx-uQ/span.rust-debug | 14 +- .../gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug | 8 +- .../inMW5rttJFPDfH0aKVFg_Q/span.rust-debug | 8 +- .../isfWm5W8qb6_aJSz_bdwDw/span.rust-debug | 8 +- .../j9dr5-Ih68VDH1exMwsmZA/span.rust-debug | 8 +- .../jD_IvFQVk8LtCrictrWpxw/span.rust-debug | 8 +- .../jbIIxHeXTPO0PtiubVziHQ/span.rust-debug | 28 +- .../kVdd5WJZqKSou4cGvcL40g/span.rust-debug | 8 +- .../kdJ9F7n35563o0T6W1TEXw/span.rust-debug | 6 + .../lS8DPMFU-dQY4SnMMBW4Aw/span.rust-debug | 12 + .../mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug | 8 +- .../mx296i8q4HfA0IzZ055Xpw/span.rust-debug | 8 +- .../nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug | 8 +- .../niufyVEBI4s-ZqSXdfhptA/span.rust-debug | 8 +- .../nlYSjWzJfpf38YhsJNbwmA/span.rust-debug | 8 +- .../oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug | 8 +- .../ottVCVON2IlQB3WCD-lu_A/span.rust-debug | Bin 2228 -> 2377 bytes .../pO8ANIJaeZDUsUBCBMKErg/span.rust-debug | 8 +- .../pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug | 8 +- .../pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug | 8 +- .../ptR_ezJzwIRsP3geOEZI5A/span.rust-debug | 8 +- .../qgkE_nOj4HtPukMzEjCY5w/span.rust-debug | 8 +- .../qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug | 8 +- .../rAzJtA56igpCO-gN3gRrYw/span.rust-debug | 8 +- .../rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug | 8 +- .../rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug | 8 +- .../sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug | 8 +- .../tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug | 8 +- .../uWMeE1AAowARdci8tkE-cg/span.rust-debug | 28 +- .../ugX8SLCLRvWN-wDCK7ouyA/span.rust-debug | 8 +- .../uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug | 8 +- .../vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug | 8 +- .../vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug | 8 +- .../vIco-E1oKlSzuggLOcviNg/span.rust-debug | 8 +- .../vN7xRB9YekSqanW68eIoNA/span.rust-debug | 8 +- .../wEB80kxMinK4EZaPb3My1A/span.rust-debug | 8 +- .../wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug | 8 +- .../xc1mD3YfHByTKL-N-FL49A/span.rust-debug | 8 +- .../xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug | 8 +- .../yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug | 8 +- .../yVqdwpiB7OK23Te5mXKdFw/span.rust-debug | 8 +- .../yboE7Tr5zjKHy9-m10AZTg/span.rust-debug | 8 +- .../zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug | 8 +- .../zz_B6vK87VUHpkOMFR_R1g/span.rust-debug | 8 +- .../value/mixed-separator-01/span.rust-debug | 16 +- .../fixture/function/calc/span.rust-debug | 1069 +++++++--- .../fixture/function/mix/span.rust-debug | 40 +- .../fixture/function/unknown/span.rust-debug | 30 +- .../fixture/function/url/span.rust-debug | 232 +- .../tests/fixture/hacks/span.rust-debug | 32 +- .../tests/fixture/hex-colors/span.rust-debug | 120 +- .../fixture/important/basic/span.rust-debug | 142 +- .../tests/fixture/number/span.rust-debug | 460 +++- .../fixture/property/escaped/span.rust-debug | 8 +- .../page-margin-properties/span.rust-debug | 17 +- .../span.rust-debug | 8 +- .../at-page/page-properties/span.rust-debug | 8 +- .../fixture/rome/at-page/span.rust-debug | 88 +- .../tests/fixture/rome/calc/span.rust-debug | 80 +- .../fixture/rome/comment/span.rust-debug | 24 +- .../rome/custom-properties/span.rust-debug | 208 +- .../fixture/rome/fit-content/span.rust-debug | 16 +- .../tests/fixture/rome/font/span.rust-debug | 8 +- .../fixture/rome/functions/span.rust-debug | 52 +- .../fixture/rome/grid/minmax/span.rust-debug | 30 +- .../grid/repeat/fit-content/span.rust-debug | 16 +- .../rome/grid/repeat/flex/span.rust-debug | 14 +- .../grid/repeat/line-name/span.rust-debug | 16 +- .../rome/grid/repeat/minmax/span.rust-debug | 20 +- .../grid/repeat/multi-values/span.rust-debug | 28 +- .../fixture/rome/keyframe/span.rust-debug | 67 +- .../rome/media/condition/span.rust-debug | 36 + .../fixture/rome/min-and-max/span.rust-debug | 148 +- .../fixture/rome/selectors/span.rust-debug | 32 +- .../tests/fixture/rome/smoke/span.rust-debug | 18 +- .../fixture/rome/supports/span.rust-debug | 50 +- .../tests/fixture/rome/values/span.rust-debug | 64 +- .../fixture/selector/nesting/span.rust-debug | 298 ++- .../selector/pseudo-class/any/span.rust-debug | 16 +- .../fixture/selector/type/span.rust-debug | 8 +- .../tests/fixture/style-block/span.rust-debug | 280 ++- .../styled-jsx/selector/1/span.rust-debug | 8 +- .../styled-jsx/selector/2/span.rust-debug | 8 +- .../fixture/stylis/comma/01/span.rust-debug | 16 +- .../tests/fixture/value/angle/span.rust-debug | 40 +- .../tests/fixture/value/color/span.rust-debug | 760 ++++--- .../value/custom-property/span.rust-debug | 605 ++++-- .../fixture/value/dimension/span.rust-debug | 16 +- .../fixture/value/escaped/span.rust-debug | 8 +- .../fixture/value/frequency/span.rust-debug | 16 +- .../fixture/value/integer/span.rust-debug | 48 +- .../fixture/value/length/span.rust-debug | 40 +- .../fixture/value/percentage/span.rust-debug | 104 +- .../fixture/value/quotes/span.rust-debug | 200 +- .../fixture/value/resolution/span.rust-debug | 40 +- .../value/square-brackets/span.rust-debug | 74 +- .../tests/fixture/value/time/span.rust-debug | 76 +- .../fixture/value/urange/span.rust-debug | 154 +- .../tests/fixture/value/url/span.rust-debug | 210 +- .../tests/fixture/vercel/001/span.rust-debug | 8 +- .../tests/fixture/vercel/002/span.rust-debug | 18 +- .../recovery/vercel/002/output.swc-stderr | 6 + crates/swc_css_visit/src/lib.rs | 41 +- crates/swc_stylis/src/prefixer.rs | 34 +- 278 files changed, 10896 insertions(+), 2359 deletions(-) diff --git a/crates/swc_css_ast/src/base.rs b/crates/swc_css_ast/src/base.rs index 9add7c12cba..ee7e301857e 100644 --- a/crates/swc_css_ast/src/base.rs +++ b/crates/swc_css_ast/src/base.rs @@ -2,7 +2,9 @@ use is_macro::Is; use swc_common::{ast_node, Span}; use crate::{ - AtRule, DashedIdent, Function, Ident, KeyframeBlock, SelectorList, TokenAndSpan, Tokens, Value, + AtRule, CalcSum, Color, ComplexSelector, DashedIdent, Delimiter, Dimension, Function, Ident, + Integer, KeyframeBlock, Number, Percentage, Ratio, SelectorList, Str, TokenAndSpan, Tokens, + UnicodeRange, Url, }; #[ast_node("Stylesheet")] @@ -73,8 +75,36 @@ pub enum ComponentValue { KeyframeBlock(KeyframeBlock), // Arbitrary Contents grammar - #[tag("Value")] - Value(Value), + #[tag("Ident")] + Ident(Ident), + #[tag("DashedIdent")] + DashedIdent(DashedIdent), + #[tag("String")] + Str(Str), + #[tag("Url")] + Url(Url), + #[tag("Integer")] + Integer(Integer), + #[tag("Number")] + Number(Number), + #[tag("Percentage")] + Percentage(Percentage), + #[tag("Dimension")] + Dimension(Dimension), + #[tag("Ratio")] + Ratio(Ratio), + #[tag("UnicodeRange")] + UnicodeRange(UnicodeRange), + #[tag("Color")] + Color(Color), + #[tag("Delimiter")] + Delimiter(Delimiter), + + // Special function Contents grammar + #[tag("CalcSum")] + CalcSum(CalcSum), + #[tag("ComplexSelector")] + ComplexSelector(ComplexSelector), } #[ast_node] @@ -91,7 +121,7 @@ pub enum DeclarationOrAtRule { pub struct Declaration { pub span: Span, pub name: DeclarationName, - pub value: Vec, + pub value: Vec, /// The span includes `!` pub important: Option, } diff --git a/crates/swc_css_ast/src/value.rs b/crates/swc_css_ast/src/value.rs index d09851eba6b..2f7dfaa4be3 100644 --- a/crates/swc_css_ast/src/value.rs +++ b/crates/swc_css_ast/src/value.rs @@ -2,64 +2,7 @@ use string_enum::StringEnum; use swc_atoms::JsWord; use swc_common::{ast_node, EqIgnoreSpan, Span}; -use crate::{ComplexSelector, ComponentValue, SimpleBlock, TokenAndSpan}; - -#[ast_node] -pub enum Value { - #[tag("ComponentValue")] - ComponentValue(Box), - - #[tag("SimpleBlock")] - SimpleBlock(SimpleBlock), - - #[tag("Dimension")] - Dimension(Dimension), - - #[tag("Number")] - Number(Number), - - #[tag("Integer")] - Integer(Integer), - - #[tag("Percentage")] - Percentage(Percentage), - - #[tag("Ratio")] - Ratio(Ratio), - - #[tag("Color")] - Color(Color), - - #[tag("Ident")] - Ident(Ident), - - #[tag("DashedIdent")] - DashedIdent(DashedIdent), - - #[tag("String")] - Str(Str), - - #[tag("Function")] - Function(Function), - - #[tag("CalcSum")] - CalcSum(CalcSum), - - #[tag("Delimiter")] - Delimiter(Delimiter), - - #[tag("Url")] - Url(Url), - - #[tag("UnicodeRange")] - UnicodeRange(UnicodeRange), - - #[tag("ComplexSelector")] - ComplexSelector(ComplexSelector), - - #[tag("PreservedToken")] - PreservedToken(TokenAndSpan), -} +use crate::ComponentValue; #[ast_node("Ident")] pub struct Ident { @@ -111,7 +54,7 @@ pub struct Function { /// Span starting from the `lo` of identifier and to the end of `)`. pub span: Span, pub name: Ident, - pub value: Vec, + pub value: Vec, } #[ast_node] diff --git a/crates/swc_css_codegen/src/lib.rs b/crates/swc_css_codegen/src/lib.rs index c60649ad19f..59668b246a6 100644 --- a/crates/swc_css_codegen/src/lib.rs +++ b/crates/swc_css_codegen/src/lib.rs @@ -692,7 +692,11 @@ where } } - fn emit_list_values(&mut self, nodes: &[Value], format: ListFormat) -> Result { + fn emit_list_of_component_values( + &mut self, + nodes: &[ComponentValue], + format: ListFormat, + ) -> Result { let iter = nodes.iter(); let len = nodes.len(); @@ -701,25 +705,25 @@ where if idx != len - 1 { let need_delim = match node { - Value::SimpleBlock(_) - | Value::Function(_) - | Value::Color(Color::Function(_)) - | Value::Delimiter(_) - | Value::Str(_) - | Value::Url(_) - | Value::Percentage(_) => match nodes.get(idx + 1) { - Some(Value::Delimiter(Delimiter { + ComponentValue::SimpleBlock(_) + | ComponentValue::Function(_) + | ComponentValue::Color(Color::Function(_)) + | ComponentValue::Delimiter(_) + | ComponentValue::Str(_) + | ComponentValue::Url(_) + | ComponentValue::Percentage(_) => match nodes.get(idx + 1) { + Some(ComponentValue::Delimiter(Delimiter { value: DelimiterValue::Comma, .. })) => false, _ => !self.config.minify, }, - Value::Ident(_) => match nodes.get(idx + 1) { - Some(Value::SimpleBlock(_)) - | Some(Value::Color(Color::HexColor(_))) - | Some(Value::Str(_)) => !self.config.minify, - Some(Value::Delimiter(_)) => false, - Some(Value::Number(n)) => { + ComponentValue::Ident(_) => match nodes.get(idx + 1) { + Some(ComponentValue::SimpleBlock(_)) + | Some(ComponentValue::Color(Color::HexColor(_))) + | Some(ComponentValue::Str(_)) => !self.config.minify, + Some(ComponentValue::Delimiter(_)) => false, + Some(ComponentValue::Number(n)) => { if self.config.minify { let minified = minify_numeric(n.value); @@ -728,7 +732,7 @@ where true } } - Some(Value::Dimension(dimension)) => { + Some(ComponentValue::Dimension(dimension)) => { if self.config.minify { let value = match dimension { Dimension::Length(i) => i.value.value, @@ -750,10 +754,9 @@ where _ => true, }, _ => match nodes.get(idx + 1) { - Some(Value::SimpleBlock(_)) | Some(Value::Color(Color::HexColor(_))) => { - !self.config.minify - } - Some(Value::Delimiter(_)) => false, + Some(ComponentValue::SimpleBlock(_)) + | Some(ComponentValue::Color(Color::HexColor(_))) => !self.config.minify, + Some(ComponentValue::Delimiter(_)) => false, _ => true, }, }; @@ -771,37 +774,13 @@ where fn emit_function(&mut self, n: &Function) -> Result { emit!(self, n.name); punct!(self, "("); - self.emit_list_values( + self.emit_list_of_component_values( &n.value, ListFormat::SpaceDelimited | ListFormat::SingleLine, )?; punct!(self, ")"); } - #[emitter] - fn emit_value(&mut self, n: &Value) -> Result { - match n { - Value::ComponentValue(n) => emit!(self, n), - Value::Function(n) => emit!(self, n), - Value::SimpleBlock(n) => emit!(self, n), - Value::Dimension(n) => emit!(self, n), - Value::Integer(n) => emit!(self, n), - Value::Number(n) => emit!(self, n), - Value::Percentage(n) => emit!(self, n), - Value::Ratio(n) => emit!(self, n), - Value::Color(n) => emit!(self, n), - Value::Ident(n) => emit!(self, n), - Value::DashedIdent(n) => emit!(self, n), - Value::Str(n) => emit!(self, n), - Value::CalcSum(n) => emit!(self, n), - Value::Url(n) => emit!(self, n), - Value::Delimiter(n) => emit!(self, n), - Value::UnicodeRange(n) => emit!(self, n), - Value::ComplexSelector(n) => emit!(self, n), - Value::PreservedToken(n) => emit!(self, n), - } - } - #[emitter] fn emit_at_rule_name(&mut self, n: &AtRuleName) -> Result { match n { @@ -941,12 +920,11 @@ where } DeclarationOrAtRule::Invalid(_) => {} }, - ComponentValue::Value(_) => { + _ => { if ending == ']' && idx != len - 1 { space!(self); } } - _ => {} } } @@ -959,11 +937,27 @@ where ComponentValue::PreservedToken(n) => emit!(self, n), ComponentValue::Function(n) => emit!(self, n), ComponentValue::SimpleBlock(n) => emit!(self, n), + ComponentValue::StyleBlock(n) => emit!(self, n), ComponentValue::DeclarationOrAtRule(n) => emit!(self, n), ComponentValue::Rule(n) => emit!(self, n), - ComponentValue::Value(n) => emit!(self, n), ComponentValue::KeyframeBlock(n) => emit!(self, n), + + ComponentValue::Ident(n) => emit!(self, n), + ComponentValue::DashedIdent(n) => emit!(self, n), + ComponentValue::Str(n) => emit!(self, n), + ComponentValue::Url(n) => emit!(self, n), + ComponentValue::Integer(n) => emit!(self, n), + ComponentValue::Number(n) => emit!(self, n), + ComponentValue::Percentage(n) => emit!(self, n), + ComponentValue::Dimension(n) => emit!(self, n), + ComponentValue::Ratio(n) => emit!(self, n), + ComponentValue::UnicodeRange(n) => emit!(self, n), + ComponentValue::Color(n) => emit!(self, n), + ComponentValue::Delimiter(n) => emit!(self, n), + + ComponentValue::CalcSum(n) => emit!(self, n), + ComponentValue::ComplexSelector(n) => emit!(self, n), } } @@ -1015,7 +1009,7 @@ where if is_custom_property { self.emit_list(&n.value, ListFormat::NotDelimited)?; } else { - self.emit_list_values( + self.emit_list_of_component_values( &n.value, ListFormat::SpaceDelimited | ListFormat::SingleLine, )?; diff --git a/crates/swc_css_codegen/tests/fixture.rs b/crates/swc_css_codegen/tests/fixture.rs index 0a6dfc67b81..1cd92783d88 100644 --- a/crates/swc_css_codegen/tests/fixture.rs +++ b/crates/swc_css_codegen/tests/fixture.rs @@ -5,8 +5,8 @@ use std::{ use swc_common::{FileName, Span}; use swc_css_ast::{ - AnPlusBNotation, HexColor, ImportantFlag, Integer, Number, Str, Stylesheet, Token, - TokenAndSpan, UrlValueRaw, Value, + AnPlusBNotation, ComponentValue, HexColor, ImportantFlag, Integer, Number, Str, Stylesheet, + Token, TokenAndSpan, UrlValueRaw, }; use swc_css_codegen::{ writer::basic::{BasicCssWriter, BasicCssWriterConfig}, @@ -115,12 +115,12 @@ impl VisitMut for NormalizeTest { // TODO - we should parse only some properties as ``, but it requires // more work, let's postpone it to avoid breaking code - fn visit_mut_value(&mut self, n: &mut Value) { + fn visit_mut_component_value(&mut self, n: &mut ComponentValue) { n.visit_mut_children_with(self); match n { - Value::Number(Number { value, .. }) if value.fract() == 0.0 => { - *n = Value::Integer(Integer { + ComponentValue::Number(Number { value, .. }) if value.fract() == 0.0 => { + *n = ComponentValue::Integer(Integer { span: Default::default(), value: value.round() as i64, raw: "".into(), diff --git a/crates/swc_css_minifier/src/compress/alpha_value.rs b/crates/swc_css_minifier/src/compress/alpha_value.rs index e9e91519161..0824fc70ab7 100644 --- a/crates/swc_css_minifier/src/compress/alpha_value.rs +++ b/crates/swc_css_minifier/src/compress/alpha_value.rs @@ -31,21 +31,21 @@ impl VisitMut for CompressAlphaValue { } } - fn visit_mut_value(&mut self, value: &mut Value) { - value.visit_mut_children_with(self); + fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) { + component_value.visit_mut_children_with(self); if self.preserve { return; } - match value { - Value::Percentage(Percentage { + match component_value { + ComponentValue::Percentage(Percentage { span, value: number, }) if number.value % 10.0 == 0.0 => { let new_value = number.value / 100.0; - *value = Value::Number(Number { + *component_value = ComponentValue::Number(Number { span: *span, value: new_value, raw: new_value.to_string().into(), diff --git a/crates/swc_css_minifier/src/compress/angle.rs b/crates/swc_css_minifier/src/compress/angle.rs index 955e9060c33..7ebcc192452 100644 --- a/crates/swc_css_minifier/src/compress/angle.rs +++ b/crates/swc_css_minifier/src/compress/angle.rs @@ -55,12 +55,12 @@ impl VisitMut for CompressAngle { } } - fn visit_mut_value(&mut self, value: &mut Value) { - value.visit_mut_children_with(self); + fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) { + component_value.visit_mut_children_with(self); if self.in_transform_function { - match &value { - Value::Dimension(Dimension::Angle(Angle { + match &component_value { + ComponentValue::Dimension(Dimension::Angle(Angle { value: Number { value: number_value, @@ -69,7 +69,7 @@ impl VisitMut for CompressAngle { span, .. })) if *number_value == 0.0 => { - *value = Value::Number(Number { + *component_value = ComponentValue::Number(Number { span: *span, value: 0.0, raw: "0".into(), diff --git a/crates/swc_css_minifier/src/compress/declaration.rs b/crates/swc_css_minifier/src/compress/declaration.rs index 0ed3e97728d..5d357377472 100644 --- a/crates/swc_css_minifier/src/compress/declaration.rs +++ b/crates/swc_css_minifier/src/compress/declaration.rs @@ -10,16 +10,16 @@ struct CompressDeclaration {} impl CompressDeclaration { fn is_same_dimension_length_nodes( &self, - node_1: Option<&Value>, - node_2: Option<&Value>, + node_1: Option<&ComponentValue>, + node_2: Option<&ComponentValue>, ) -> bool { - if let Some(Value::Dimension(Dimension::Length(Length { + if let Some(ComponentValue::Dimension(Dimension::Length(Length { value: value_1, unit: unit_1, .. }))) = node_1 { - if let Some(Value::Dimension(Dimension::Length(Length { + if let Some(ComponentValue::Dimension(Dimension::Length(Length { value: value_2, unit: unit_2, .. @@ -50,7 +50,7 @@ impl VisitMut for CompressDeclaration { for value in declaration.value.iter() { match value { - outside_node @ Value::Ident(Ident { value, .. }) + outside_node @ ComponentValue::Ident(Ident { value, .. }) if matches!( &*value.to_lowercase(), "block" | "inline" | "run-in" @@ -58,7 +58,7 @@ impl VisitMut for CompressDeclaration { { outside = Some(outside_node); } - inside_node @ Value::Ident(Ident { value, .. }) + inside_node @ ComponentValue::Ident(Ident { value, .. }) if matches!( &*value.to_lowercase(), "flow" | "flow-root" | "table" | "flex" | "grid" | "ruby" @@ -66,10 +66,10 @@ impl VisitMut for CompressDeclaration { { inside = Some(inside_node); } - list_item_node @ Value::Ident(Ident { value, .. }) + list_item_node @ ComponentValue::Ident(Ident { value, .. }) if &*value.to_lowercase() == "list-item" => { - if let Some(Value::Ident(Ident { value, .. })) = inside { + if let Some(ComponentValue::Ident(Ident { value, .. })) = inside { if !matches!(&*value.to_lowercase(), "flow" | "flow-root") { continue; } @@ -87,7 +87,7 @@ impl VisitMut for CompressDeclaration { // `run-in flow` -> `run-in` ( Some(outside), - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: inside_value, .. })), @@ -97,12 +97,12 @@ impl VisitMut for CompressDeclaration { } // `block flow-root` -> `flow-root` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, .. })), Some( - inside @ Value::Ident(Ident { + inside @ ComponentValue::Ident(Ident { value: inside_value, .. }), @@ -115,12 +115,12 @@ impl VisitMut for CompressDeclaration { } // `inline flow-root` -> `inline-block` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, span, .. })), - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: inside_value, .. })), @@ -128,7 +128,7 @@ impl VisitMut for CompressDeclaration { ) if &*outside_value.to_lowercase() == "inline" && &*inside_value.to_lowercase() == "flow-root" => { - declaration.value = vec![Value::Ident(Ident { + declaration.value = vec![ComponentValue::Ident(Ident { span: *span, value: "inline-block".into(), raw: "inline-block".into(), @@ -136,11 +136,11 @@ impl VisitMut for CompressDeclaration { } // `block flow list-item` -> `list-item` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, .. })), - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: inside_value, .. })), @@ -152,7 +152,7 @@ impl VisitMut for CompressDeclaration { } // `block list-item` -> `list-item` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, .. })), @@ -164,7 +164,7 @@ impl VisitMut for CompressDeclaration { // `flow list-item` -> `list-item` ( None, - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: inside_value, .. })), @@ -175,12 +175,12 @@ impl VisitMut for CompressDeclaration { // `inline flow list-item` -> `inline list-item` ( Some( - outside @ Value::Ident(Ident { + outside @ ComponentValue::Ident(Ident { value: outside_value, .. }), ), - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: inside_value, .. })), @@ -194,12 +194,12 @@ impl VisitMut for CompressDeclaration { // `block grid` -> `grid` // `block table` -> `table` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, .. })), Some( - inside @ Value::Ident(Ident { + inside @ ComponentValue::Ident(Ident { value: inside_value, .. }), @@ -215,12 +215,12 @@ impl VisitMut for CompressDeclaration { } // `inline ruby` -> `ruby` ( - Some(Value::Ident(Ident { + Some(ComponentValue::Ident(Ident { value: outside_value, .. })), Some( - inside @ Value::Ident(Ident { + inside @ ComponentValue::Ident(Ident { value: inside_value, .. }), @@ -275,19 +275,19 @@ impl VisitMut for CompressDeclaration { .take() .into_iter() .map(|node| match node { - Value::Ident(Ident { value, span, .. }) + ComponentValue::Ident(Ident { value, span, .. }) if value.to_lowercase() == "normal" => { - Value::Number(Number { + ComponentValue::Number(Number { span, value: 400.0, raw: "400".into(), }) } - Value::Ident(Ident { value, span, .. }) + ComponentValue::Ident(Ident { value, span, .. }) if value.to_lowercase() == "bold" => { - Value::Number(Number { + ComponentValue::Number(Number { span, value: 700.0, raw: "700".into(), diff --git a/crates/swc_css_minifier/src/compress/easing_function.rs b/crates/swc_css_minifier/src/compress/easing_function.rs index fc2e1957762..014a2a42c36 100644 --- a/crates/swc_css_minifier/src/compress/easing_function.rs +++ b/crates/swc_css_minifier/src/compress/easing_function.rs @@ -10,20 +10,20 @@ struct CompressEasingFunction {} impl CompressEasingFunction {} impl VisitMut for CompressEasingFunction { - fn visit_mut_value(&mut self, value: &mut Value) { - value.visit_mut_children_with(self); + fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) { + component_value.visit_mut_children_with(self); - match value { - Value::Function(Function { + match component_value { + ComponentValue::Function(Function { name, value: function_value, span, }) if &*name.value.to_lowercase() == "cubic-bezier" && function_value.len() == 7 => { if let ( - Value::Number(Number { value: first, .. }), - Value::Number(Number { value: second, .. }), - Value::Number(Number { value: third, .. }), - Value::Number(Number { value: fourth, .. }), + ComponentValue::Number(Number { value: first, .. }), + ComponentValue::Number(Number { value: second, .. }), + ComponentValue::Number(Number { value: third, .. }), + ComponentValue::Number(Number { value: fourth, .. }), ) = ( &function_value[0], &function_value[2], @@ -31,31 +31,31 @@ impl VisitMut for CompressEasingFunction { &function_value[6], ) { if *first == 0.0 && *second == 0.0 && *third == 1.0 && *fourth == 1.0 { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "linear".into(), raw: "linear".into(), }) } else if *first == 0.25 && *second == 0.1 && *third == 0.25 && *fourth == 1.0 { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "easy".into(), raw: "easy".into(), }) } else if *first == 0.42 && *second == 0.0 && *third == 1.0 && *fourth == 1.0 { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "ease-in".into(), raw: "ease-in".into(), }) } else if *first == 0.0 && *second == 0.0 && *third == 0.58 && *fourth == 1.0 { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "ease-out".into(), raw: "ease-out".into(), }) } else if *first == 0.42 && *second == 0.0 && *third == 0.58 && *fourth == 1.0 { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "ease-in-out".into(), raw: "ease-in-out".into(), @@ -63,30 +63,30 @@ impl VisitMut for CompressEasingFunction { } } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, span, }) if &*name.value.to_lowercase() == "steps" && function_value.len() == 3 => { match (&function_value[0], &function_value[2]) { ( - Value::Number(Number { + ComponentValue::Number(Number { value: number_value, .. }), - Value::Ident(Ident { + ComponentValue::Ident(Ident { value: ident_value, .. }), ) if *number_value == 1.0 => match &*ident_value.to_lowercase() { "start" | "jump-start" => { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "step-start".into(), raw: "step-start".into(), }) } "end" | "jump-end" => { - *value = Value::Ident(Ident { + *component_value = ComponentValue::Ident(Ident { span: *span, value: "step-end".into(), raw: "step-end".into(), @@ -95,25 +95,25 @@ impl VisitMut for CompressEasingFunction { _ => {} }, ( - Value::Number(Number { .. }), - Value::Ident(Ident { + ComponentValue::Number(Number { .. }), + ComponentValue::Ident(Ident { value: ident_value, .. }), ) if ident_value.to_lowercase() == "jump-start" => { - function_value[2] = Value::Ident(Ident { + function_value[2] = ComponentValue::Ident(Ident { span: *span, value: "start".into(), raw: "start".into(), }) } ( - Value::Number(number), - Value::Ident(Ident { + ComponentValue::Number(number), + ComponentValue::Ident(Ident { value: ident_value, .. }), ) => match &*ident_value.to_lowercase() { "end" | "jump-end" => { - *function_value = vec![Value::Number(number.clone())]; + *function_value = vec![ComponentValue::Number(number.clone())]; } _ => {} }, diff --git a/crates/swc_css_minifier/src/compress/length.rs b/crates/swc_css_minifier/src/compress/length.rs index ea439d63423..42e0801fa8e 100644 --- a/crates/swc_css_minifier/src/compress/length.rs +++ b/crates/swc_css_minifier/src/compress/length.rs @@ -116,15 +116,15 @@ impl VisitMut for CompressLength { self.in_math_function = old_in_math_function; } - fn visit_mut_value(&mut self, value: &mut Value) { - value.visit_mut_children_with(self); + fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) { + component_value.visit_mut_children_with(self); if self.in_math_function { return; } - match &value { - Value::Dimension(Dimension::Length(Length { + match &component_value { + ComponentValue::Dimension(Dimension::Length(Length { value: Number { value: number_value, @@ -133,7 +133,7 @@ impl VisitMut for CompressLength { span, .. })) if *number_value == 0.0 => { - *value = Value::Number(Number { + *component_value = ComponentValue::Number(Number { span: *span, value: 0.0, raw: "0".into(), diff --git a/crates/swc_css_minifier/src/compress/transform_function.rs b/crates/swc_css_minifier/src/compress/transform_function.rs index 8c006bd8c44..ede2d7121ef 100644 --- a/crates/swc_css_minifier/src/compress/transform_function.rs +++ b/crates/swc_css_minifier/src/compress/transform_function.rs @@ -10,11 +10,11 @@ struct CompressTransformFunction {} impl CompressTransformFunction {} impl VisitMut for CompressTransformFunction { - fn visit_mut_value(&mut self, value: &mut Value) { - value.visit_mut_children_with(self); + fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) { + component_value.visit_mut_children_with(self); - match value { - Value::Function(Function { + match component_value { + ComponentValue::Function(Function { name, value: function_value, .. @@ -22,7 +22,7 @@ impl VisitMut for CompressTransformFunction { match (function_value.get(0), function_value.get(2)) { ( Some(first), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -30,7 +30,7 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![first.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), @@ -46,7 +46,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -57,11 +57,11 @@ impl VisitMut for CompressTransformFunction { function_value.get(4), ) { ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -77,7 +77,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -85,12 +85,12 @@ impl VisitMut for CompressTransformFunction { match (function_value.get(0), function_value.get(2)) { ( Some( - first @ Value::Number(Number { + first @ ComponentValue::Number(Number { value: first_number, .. }), ), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -99,7 +99,7 @@ impl VisitMut for CompressTransformFunction { } ( Some(first), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -112,7 +112,7 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![first.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), @@ -128,7 +128,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -140,11 +140,11 @@ impl VisitMut for CompressTransformFunction { ) { ( Some(first), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), @@ -157,12 +157,12 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![first.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), Some(second), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), @@ -175,11 +175,11 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![second.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -195,7 +195,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -228,11 +228,11 @@ impl VisitMut for CompressTransformFunction { Some(first_comma), Some(second), Some(second_comma), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: fourth_number, .. })), @@ -240,38 +240,38 @@ impl VisitMut for CompressTransformFunction { Some(fifth_comma), Some(sixth), Some(sixth_comma), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: seventh_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: eighth_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: ninth_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: tenth_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: eleventh_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: twelfth_number, .. })), Some(thirteenth), Some(thirteenth_comma), Some(fourteenth), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: fifteenth_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: sixteenth_number, .. })), @@ -308,7 +308,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -320,15 +320,15 @@ impl VisitMut for CompressTransformFunction { function_value.get(6), ) { ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), @@ -342,15 +342,15 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![fourth_value.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), @@ -364,15 +364,15 @@ impl VisitMut for CompressTransformFunction { *function_value = vec![fourth_value.clone()]; } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: third_number, .. })), @@ -388,7 +388,7 @@ impl VisitMut for CompressTransformFunction { _ => {} } } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -400,7 +400,7 @@ impl VisitMut for CompressTransformFunction { }; } - Value::Function(Function { + ComponentValue::Function(Function { name, value: function_value, .. @@ -408,7 +408,7 @@ impl VisitMut for CompressTransformFunction { match (function_value.get(0), function_value.get(2)) { ( Some(first), - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: second_number, .. })), @@ -422,7 +422,7 @@ impl VisitMut for CompressTransformFunction { } ( - Some(Value::Number(Number { + Some(ComponentValue::Number(Number { value: first_number, .. })), diff --git a/crates/swc_css_parser/src/parser/at_rule.rs b/crates/swc_css_parser/src/parser/at_rule.rs index 773f4f5d7b1..89af781518b 100644 --- a/crates/swc_css_parser/src/parser/at_rule.rs +++ b/crates/swc_css_parser/src/parser/at_rule.rs @@ -4,22 +4,17 @@ use swc_css_ast::*; use super::{input::ParserInput, PResult, Parser}; use crate::{ error::{Error, ErrorKind}, - parser::{Ctx, Grammar}, + parser::{BlockContentsGrammar, Ctx}, Parse, }; -#[derive(Debug, Default)] -pub(super) struct AtRuleContext {} - -impl Parser +impl Parse for Parser where I: ParserInput, { - pub(super) fn parse_at_rule(&mut self, _ctx: AtRuleContext) -> PResult { + fn parse(&mut self) -> PResult { let at_rule_span = self.input.cur_span()?; - assert!(matches!(cur!(self), Token::AtKeyword { .. })); - let name = match bump!(self) { Token::AtKeyword { value, raw } => (value, raw), _ => { @@ -389,7 +384,7 @@ where // Consume a simple block and assign it to the at-rule’s block. Return the at-rule. tok!("{") => { let ctx = Ctx { - grammar: Grammar::NoGrammar, + block_contents_grammar: BlockContentsGrammar::NoGrammar, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -609,7 +604,7 @@ where } let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -663,7 +658,7 @@ where fn parse(&mut self) -> PResult { let span = self.input.cur_span()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -724,7 +719,7 @@ where let span = self.input.cur_span()?; let prelude = self.parse()?; let ctx = Ctx { - grammar: Grammar::StyleBlock, + block_contents_grammar: BlockContentsGrammar::StyleBlock, ..self.ctx }; @@ -747,7 +742,7 @@ where fn parse(&mut self) -> PResult { let span = self.input.cur_span()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -773,13 +768,13 @@ where return Err(Error::new(span, ErrorKind::Expected("'{' delim token"))); } - let ctx = match self.ctx.grammar { - Grammar::StyleBlock => Ctx { - grammar: Grammar::StyleBlock, + let ctx = match self.ctx.block_contents_grammar { + BlockContentsGrammar::StyleBlock => Ctx { + block_contents_grammar: BlockContentsGrammar::StyleBlock, ..self.ctx }, _ => Ctx { - grammar: Grammar::Stylesheet, + block_contents_grammar: BlockContentsGrammar::Stylesheet, ..self.ctx }, }; @@ -998,7 +993,7 @@ where tok!("function") => Ok(GeneralEnclosed::Function(self.parse()?)), tok!("(") => { let ctx = Ctx { - grammar: Grammar::NoGrammar, + block_contents_grammar: BlockContentsGrammar::NoGrammar, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -1038,13 +1033,13 @@ where matching_functions.push(self.parse()?); } - let ctx = match self.ctx.grammar { - Grammar::StyleBlock => Ctx { - grammar: Grammar::StyleBlock, + let ctx = match self.ctx.block_contents_grammar { + BlockContentsGrammar::StyleBlock => Ctx { + block_contents_grammar: BlockContentsGrammar::StyleBlock, ..self.ctx }, _ => Ctx { - grammar: Grammar::Stylesheet, + block_contents_grammar: BlockContentsGrammar::Stylesheet, ..self.ctx }, }; @@ -1107,13 +1102,13 @@ where return Err(Error::new(span, ErrorKind::Expected("'{' delim token"))); } - let ctx = match self.ctx.grammar { - Grammar::StyleBlock => Ctx { - grammar: Grammar::StyleBlock, + let ctx = match self.ctx.block_contents_grammar { + BlockContentsGrammar::StyleBlock => Ctx { + block_contents_grammar: BlockContentsGrammar::StyleBlock, ..self.ctx }, _ => Ctx { - grammar: Grammar::Stylesheet, + block_contents_grammar: BlockContentsGrammar::Stylesheet, ..self.ctx }, }; @@ -1653,7 +1648,7 @@ where let ctx = Ctx { in_page_at_rule: true, - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -1804,7 +1799,7 @@ where fn parse(&mut self) -> PResult { let span = self.input.cur_span()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -1898,7 +1893,7 @@ where // Block None | Some(LayerPrelude::Name(LayerName { .. })) if is!(self, "{") => { let ctx = Ctx { - grammar: Grammar::Stylesheet, + block_contents_grammar: BlockContentsGrammar::Stylesheet, ..self.ctx }; println!("{:?}", self.input.cur()); @@ -1951,7 +1946,7 @@ where self.input.skip_ws()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -1975,7 +1970,7 @@ where self.input.skip_ws()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -1999,7 +1994,7 @@ where self.input.skip_ws()?; let ctx = Ctx { - grammar: Grammar::DeclarationList, + block_contents_grammar: BlockContentsGrammar::DeclarationList, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; diff --git a/crates/swc_css_parser/src/parser/base.rs b/crates/swc_css_parser/src/parser/base.rs index ce5f56d37f0..e9aaf91bfad 100644 --- a/crates/swc_css_parser/src/parser/base.rs +++ b/crates/swc_css_parser/src/parser/base.rs @@ -4,7 +4,7 @@ use swc_css_ast::*; use super::{input::ParserInput, PResult, Parser}; use crate::{ error::{Error, ErrorKind}, - parser::{Ctx, Grammar, RuleContext}, + parser::{BlockContentsGrammar, Ctx, RuleContext}, Parse, }; @@ -66,7 +66,7 @@ where // Reconsume the current input token. Consume an at-rule, and append the returned // value to the list of rules. tok!("@") => { - rules.push(Rule::AtRule(self.parse_at_rule(Default::default())?)); + rules.push(Rule::AtRule(self.parse()?)); } // anything else // Reconsume the current input token. Consume a qualified rule. If anything is @@ -132,7 +132,7 @@ where // qualified rule. tok!("{") => { let ctx = Ctx { - grammar: Grammar::StyleBlock, + block_contents_grammar: BlockContentsGrammar::StyleBlock, ..self.ctx }; let block = self.with_ctx(ctx).parse_as::()?; @@ -185,7 +185,7 @@ where // Reconsume the current input token. Consume an at-rule, and append the result to // rules. tok!("@") => { - rules.push(StyleBlock::AtRule(self.parse_at_rule(Default::default())?)); + rules.push(StyleBlock::AtRule(self.parse()?)); } // // Initialize a temporary list initially filled with the current input token. As @@ -196,8 +196,8 @@ where tok!("ident") => { let state = self.input.state(); let span = self.input.cur_span()?; - let prop = match self.parse().map(StyleBlock::Declaration) { - Ok(v) => v, + let prop = match self.parse() { + Ok(v) => StyleBlock::Declaration(v), Err(err) => { self.errors.push(err); self.input.reset(&state); @@ -286,42 +286,6 @@ where } } -impl Parse for Parser -where - I: ParserInput, -{ - fn parse(&mut self) -> PResult { - // Consume the next input token. - match cur!(self) { - // If the current input token is a <{-token>, <[-token>, or <(-token>, consume a simple - // block and return it. - tok!("[") | tok!("(") | tok!("{") => { - let ctx = Ctx { - grammar: Grammar::NoGrammar, - ..self.ctx - }; - let block = self.with_ctx(ctx).parse_as::()?; - - Ok(ComponentValue::SimpleBlock(block)) - } - // Otherwise, if the current input token is a , consume a function and - // return it. - tok!("function") => Ok(ComponentValue::Function(self.parse()?)), - // Otherwise, return the current input token. - _ => { - let token = self.input.bump()?; - - match token { - Some(t) => Ok(ComponentValue::PreservedToken(t)), - _ => { - unreachable!(); - } - } - } - } - } -} - impl Parse for Parser where I: ParserInput, @@ -357,7 +321,7 @@ where }; // TODO refactor me - if self.ctx.grammar != Grammar::NoGrammar { + if self.ctx.block_contents_grammar != BlockContentsGrammar::NoGrammar { self.input.skip_ws()?; } @@ -394,13 +358,13 @@ where // anything else // Reconsume the current input token. Consume a component value and append it to the // value of the block. - _ => match self.ctx.grammar { - Grammar::NoGrammar => { + _ => match self.ctx.block_contents_grammar { + BlockContentsGrammar::NoGrammar => { let component_value = self.parse()?; simple_block.value.push(component_value); } - Grammar::StyleBlock => { + BlockContentsGrammar::StyleBlock => { let style_blocks: Vec = self.parse()?; let style_blocks: Vec = style_blocks .into_iter() @@ -410,7 +374,7 @@ where simple_block.value.extend(style_blocks); } // TODO improve grammar validation - Grammar::RuleList | Grammar::Stylesheet => { + BlockContentsGrammar::RuleList | BlockContentsGrammar::Stylesheet => { let rule_list = self.parse_rule_list(RuleContext { is_top_level: false, })?; @@ -419,7 +383,7 @@ where simple_block.value.extend(rule_list); } - Grammar::DeclarationList => { + BlockContentsGrammar::DeclarationList => { let declaration_list: Vec = self.parse()?; let declaration_list: Vec = declaration_list .into_iter() @@ -428,20 +392,25 @@ where simple_block.value.extend(declaration_list); } - Grammar::DeclarationValue => { + BlockContentsGrammar::DeclarationValue => { let state = self.input.state(); - let parsed = self.parse_one_value_inner(); + let parsed = self.parse(); let value = match parsed { Ok(value) => { self.input.skip_ws()?; - ComponentValue::Value(value) + value } Err(err) => { self.errors.push(err); self.input.reset(&state); - self.parse()? + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::NoGrammar, + ..self.ctx + }; + + self.with_ctx(ctx).parse_as::()? } }; @@ -457,6 +426,123 @@ where } } +impl Parse for Parser +where + I: ParserInput, +{ + fn parse(&mut self) -> PResult { + match self.ctx.block_contents_grammar { + BlockContentsGrammar::DeclarationValue => { + // TODO refactor me + self.input.skip_ws()?; + + let span = self.input.cur_span()?; + + match cur!(self) { + tok!(",") | tok!("/") | tok!(";") => { + return Ok(ComponentValue::Delimiter(self.parse()?)); + } + + tok!("string") => { + return Ok(ComponentValue::Str(self.parse()?)); + } + + tok!("url") => { + return Ok(ComponentValue::Url(self.parse()?)); + } + + Token::Function { value, .. } => match &*value.to_ascii_lowercase() { + "url" | "src" => { + return Ok(ComponentValue::Url(self.parse()?)); + } + "rgb" | "rgba" | "hsl" | "hsla" | "hwb" | "lab" | "lch" | "oklab" + | "oklch" | "color" => { + return Ok(ComponentValue::Color(self.parse()?)); + } + _ => { + return Ok(ComponentValue::Function(self.parse()?)); + } + }, + + tok!("percentage") => { + return Ok(ComponentValue::Percentage(self.parse()?)); + } + + tok!("dimension") => return Ok(ComponentValue::Dimension(self.parse()?)), + + Token::Number { type_flag, .. } => { + if *type_flag == NumberType::Integer { + return Ok(ComponentValue::Integer(self.parse()?)); + } + + return Ok(ComponentValue::Number(self.parse()?)); + } + + Token::Ident { value, .. } => { + if value.starts_with("--") { + return Ok(ComponentValue::DashedIdent(self.parse()?)); + } else if &*value.to_ascii_lowercase() == "u" + && peeked_is_one_of!(self, "+", "number", "dimension") + { + return Ok(ComponentValue::UnicodeRange(self.parse()?)); + } + + return Ok(ComponentValue::Ident(self.parse()?)); + } + + tok!("[") | tok!("(") | tok!("{") => { + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, + ..self.ctx + }; + let block = self.with_ctx(ctx).parse_as::()?; + + return Ok(ComponentValue::SimpleBlock(block)); + } + + tok!("#") => { + return Ok(ComponentValue::Color(Color::HexColor(self.parse()?))); + } + + _ => {} + } + + Err(Error::new(span, ErrorKind::Expected("Declaration value"))) + } + _ => { + // Consume the next input token. + match cur!(self) { + // If the current input token is a <{-token>, <[-token>, or <(-token>, consume a + // simple block and return it. + tok!("[") | tok!("(") | tok!("{") => { + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::NoGrammar, + ..self.ctx + }; + let block = self.with_ctx(ctx).parse_as::()?; + + Ok(ComponentValue::SimpleBlock(block)) + } + // Otherwise, if the current input token is a , consume a + // function and return it. + tok!("function") => Ok(ComponentValue::Function(self.parse()?)), + // Otherwise, return the current input token. + _ => { + let token = self.input.bump()?; + + match token { + Some(t) => Ok(ComponentValue::PreservedToken(t)), + _ => { + unreachable!(); + } + } + } + } + } + } + } +} + impl Parse> for Parser where I: ParserInput, @@ -477,15 +563,13 @@ where bump!(self); } tok!("@") => { - declarations.push(DeclarationOrAtRule::AtRule( - self.parse_at_rule(Default::default())?, - )); + declarations.push(DeclarationOrAtRule::AtRule(self.parse()?)); } tok!("ident") => { let state = self.input.state(); let span = self.input.cur_span()?; - let prop = match self.parse().map(DeclarationOrAtRule::Declaration) { - Ok(v) => v, + let prop = match self.parse() { + Ok(v) => DeclarationOrAtRule::Declaration(v), Err(err) => { self.errors.push(err); self.input.reset(&state); @@ -550,6 +634,9 @@ where self.input.skip_ws()?; + // 1. Consume the next input token. Create a new declaration with its name set + // to the value of the current input token and its value initially set to an + // empty list. let is_dashed_ident = match cur!(self) { Token::Ident { value, .. } => value.starts_with("--"), _ => { @@ -563,15 +650,23 @@ where DeclarationName::Ident(self.parse()?) }; + // 1. While the next input token is a , consume the next input + // token. self.input.skip_ws()?; + // 2. If the next input token is anything other than a , this is a + // parse error. Return nothing. Otherwise, consume the next input token. expect!(self, ":"); + // 3. While the next input token is a , consume the next input + // token. self.input.skip_ws()?; let mut end = self.input.cur_span()?.hi; let mut value = vec![]; + // 4. As long as the next input token is anything other than an , + // consume a component value and append it to the declaration’s value. if !is!(self, EOF) { match is_dashed_ident { true => { @@ -588,14 +683,23 @@ where } let state = self.input.state(); - let parsed = self.parse_one_value_inner(); + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, + ..self.ctx + }; + let parsed = self.with_ctx(ctx).parse_as::(); let value_or_token = match parsed { Ok(value) => value, Err(err) => { self.errors.push(err); self.input.reset(&state); - Value::ComponentValue(self.parse()?) + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::NoGrammar, + ..self.ctx + }; + + self.with_ctx(ctx).parse_as::()? } }; diff --git a/crates/swc_css_parser/src/parser/mod.rs b/crates/swc_css_parser/src/parser/mod.rs index 746c36f3f83..b6ffe5d8ddf 100644 --- a/crates/swc_css_parser/src/parser/mod.rs +++ b/crates/swc_css_parser/src/parser/mod.rs @@ -30,7 +30,7 @@ pub struct ParserConfig { } #[derive(Debug, Clone, Copy, PartialEq)] -pub enum Grammar { +pub enum BlockContentsGrammar { NoGrammar, StyleBlock, DeclarationList, @@ -39,15 +39,15 @@ pub enum Grammar { DeclarationValue, } -impl Default for Grammar { +impl Default for BlockContentsGrammar { fn default() -> Self { - Grammar::NoGrammar + BlockContentsGrammar::NoGrammar } } #[derive(Debug, Default, Clone, Copy)] struct Ctx { - grammar: Grammar, + block_contents_grammar: BlockContentsGrammar, in_supports_at_rule: bool, in_page_at_rule: bool, diff --git a/crates/swc_css_parser/src/parser/value/mod.rs b/crates/swc_css_parser/src/parser/value/mod.rs index 67c47cc0820..25b63681ce2 100644 --- a/crates/swc_css_parser/src/parser/value/mod.rs +++ b/crates/swc_css_parser/src/parser/value/mod.rs @@ -1,7 +1,7 @@ use swc_common::{BytePos, Span}; use swc_css_ast::*; -use super::{input::ParserInput, Ctx, Grammar, PResult, Parser}; +use super::{input::ParserInput, BlockContentsGrammar, Ctx, PResult, Parser}; use crate::{ error::{Error, ErrorKind}, Parse, @@ -15,7 +15,7 @@ where I: ParserInput, { /// Parse value as . - pub(super) fn parse_declaration_value(&mut self) -> PResult> { + pub(super) fn parse_declaration_value(&mut self) -> PResult> { let mut value = vec![]; let mut balance_stack: Vec> = vec![]; @@ -82,7 +82,7 @@ where let token = self.input.bump()?; match token { - Some(token) => value.push(Value::PreservedToken(token)), + Some(token) => value.push(ComponentValue::PreservedToken(token)), None => break, } } @@ -152,93 +152,7 @@ where Ok(tokens) } - pub(super) fn parse_one_value_inner(&mut self) -> PResult { - // TODO remove me - self.input.skip_ws()?; - - let span = self.input.cur_span()?; - - match cur!(self) { - tok!(",") => return Ok(Value::Delimiter(self.parse()?)), - - tok!("/") => return Ok(Value::Delimiter(self.parse()?)), - - tok!(";") => return Ok(Value::Delimiter(self.parse()?)), - - tok!("string") => return Ok(Value::Str(self.parse()?)), - - tok!("url") => return Ok(Value::Url(self.parse()?)), - - Token::Function { value, .. } => match &*value.to_ascii_lowercase() { - "url" | "src" => return Ok(Value::Url(self.parse()?)), - "rgb" | "rgba" | "hsl" | "hsla" | "hwb" | "lab" | "lch" | "oklab" | "oklch" - | "color" => return Ok(Value::Color(self.parse()?)), - _ => return Ok(Value::Function(self.parse()?)), - }, - - tok!("percentage") => return Ok(Value::Percentage(self.parse()?)), - - tok!("dimension") => return Ok(Value::Dimension(self.parse()?)), - - Token::Number { type_flag, .. } => { - if *type_flag == NumberType::Integer { - return Ok(Value::Integer(self.parse()?)); - } - - return Ok(Value::Number(self.parse()?)); - } - - Token::Ident { value, .. } => { - if value.starts_with("--") { - return Ok(Value::DashedIdent(self.parse()?)); - } else if &*value.to_ascii_lowercase() == "u" - && peeked_is_one_of!(self, "+", "number", "dimension") - { - return Ok(Value::UnicodeRange(self.parse()?)); - } - - return Ok(Value::Ident(self.parse()?)); - } - - tok!("[") => { - let ctx = Ctx { - grammar: Grammar::DeclarationValue, - ..self.ctx - }; - let block = self.with_ctx(ctx).parse_as::()?; - - return Ok(Value::SimpleBlock(block)); - } - - tok!("(") => { - let ctx = Ctx { - grammar: Grammar::DeclarationValue, - ..self.ctx - }; - let block = self.with_ctx(ctx).parse_as::()?; - - return Ok(Value::SimpleBlock(block)); - } - - tok!("{") => { - let ctx = Ctx { - grammar: Grammar::DeclarationValue, - ..self.ctx - }; - let block = self.with_ctx(ctx).parse_as::()?; - - return Ok(Value::SimpleBlock(block)); - } - - tok!("#") => return Ok(Value::Color(Color::HexColor(self.parse()?))), - - _ => {} - } - - Err(Error::new(span, ErrorKind::Expected("Declaration value"))) - } - - pub fn parse_function_values(&mut self, function_name: &str) -> PResult> { + pub fn parse_function_values(&mut self, function_name: &str) -> PResult> { let mut values = vec![]; match function_name { @@ -246,7 +160,7 @@ where | "sign" => { self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -255,7 +169,7 @@ where "min" | "max" | "hypot" => { self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -263,14 +177,14 @@ where self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { break; } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); } @@ -278,14 +192,14 @@ where "clamp" => { self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { @@ -294,14 +208,14 @@ where return Err(Error::new(span, ErrorKind::Expected("',' delim token"))); } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { @@ -310,7 +224,7 @@ where return Err(Error::new(span, ErrorKind::Expected("',' delim token"))); } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -321,14 +235,14 @@ where if is!(self, "ident") { // TODO improve me - let rounding_strategy = Value::Ident(self.parse()?); + let rounding_strategy = ComponentValue::Ident(self.parse()?); values.push(rounding_strategy); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { @@ -338,14 +252,14 @@ where } } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { @@ -354,7 +268,7 @@ where return Err(Error::new(span, ErrorKind::Expected("',' delim token"))); } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -363,14 +277,14 @@ where "mod" | "rem" | "atan2" | "pow" => { self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; } else { @@ -379,7 +293,7 @@ where return Err(Error::new(span, ErrorKind::Expected("',' delim token"))); } - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -388,18 +302,18 @@ where "log" => { self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); self.input.skip_ws()?; if is!(self, ",") { - values.push(Value::Delimiter(self.parse()?)); + values.push(ComponentValue::Delimiter(self.parse()?)); self.input.skip_ws()?; - let calc_sum = Value::CalcSum(self.parse()?); + let calc_sum = ComponentValue::CalcSum(self.parse()?); values.push(calc_sum); @@ -409,7 +323,7 @@ where "selector" if self.ctx.in_supports_at_rule => { self.input.skip_ws()?; - let selector = Value::ComplexSelector(self.parse()?); + let selector = ComponentValue::ComplexSelector(self.parse()?); values.push(selector); @@ -422,7 +336,12 @@ where break; } - values.push(self.parse_one_value_inner()?); + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, + ..self.ctx + }; + + values.push(self.with_ctx(ctx).parse_as::()?); }, }; @@ -1294,7 +1213,7 @@ where self.errors.push(err); self.input.reset(&state); - function.value.push(Value::ComponentValue(self.parse()?)); + function.value.push(self.parse()?); } } } diff --git a/crates/swc_css_parser/tests/errors/rome/invalid/min-or-max/output.stderr b/crates/swc_css_parser/tests/errors/rome/invalid/min-or-max/output.stderr index 08cceae2a6d..554e4695432 100644 --- a/crates/swc_css_parser/tests/errors/rome/invalid/min-or-max/output.stderr +++ b/crates/swc_css_parser/tests/errors/rome/invalid/min-or-max/output.stderr @@ -10,6 +10,12 @@ error: Expected 'number', 'dimension', 'percentage', 'ident', '(' or 'function' 3 | } | ^ +error: Expected Declaration value + --> $DIR/tests/errors/rome/invalid/min-or-max/input.css:3:1 + | +3 | } + | ^ + error: Unexpected end of file --> $DIR/tests/errors/rome/invalid/min-or-max/input.css:3:3 | diff --git a/crates/swc_css_parser/tests/fixture.rs b/crates/swc_css_parser/tests/fixture.rs index 5c6753481a3..cc7fca72398 100644 --- a/crates/swc_css_parser/tests/fixture.rs +++ b/crates/swc_css_parser/tests/fixture.rs @@ -336,6 +336,8 @@ impl Visit for SpanVisualizer<'_> { mtd!(SimpleBlock, visit_simple_block); + mtd!(ComponentValue, visit_component_value); + mtd!(Function, visit_function); mtd!(Color, visit_color); @@ -400,8 +402,6 @@ impl Visit for SpanVisualizer<'_> { mtd!(UnicodeRange, visit_unicode_range); - mtd!(Value, visit_value); - mtd!(CalcSum, visit_calc_sum); mtd!(CalcProductOrOperator, visit_calc_product_or_operator); diff --git a/crates/swc_css_parser/tests/fixture/at-rule/color-profile/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/color-profile/span.rust-debug index 09d7d1a78bc..2d826e2d8cd 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/color-profile/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/color-profile/span.rust-debug @@ -55,6 +55,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/color-profile/input.css:2:5 + | +2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/color-profile/input.css:2:5 | @@ -73,7 +79,7 @@ error: Ident 2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc'); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/color-profile/input.css:2:10 | 2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc'); @@ -148,6 +154,12 @@ error: SimpleBlock 7 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/color-profile/input.css:6:5 + | +6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/color-profile/input.css:6:5 | @@ -166,7 +178,7 @@ error: Ident 6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc'); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/color-profile/input.css:6:10 | 6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc'); diff --git a/crates/swc_css_parser/tests/fixture/at-rule/counter-style/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/counter-style/span.rust-debug index 36c70e944d4..e35edfd9a07 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/counter-style/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/counter-style/span.rust-debug @@ -57,6 +57,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/counter-style/input.css:2:5 + | +2 | system: cyclic; + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/counter-style/input.css:2:5 | @@ -75,7 +81,7 @@ error: Ident 2 | system: cyclic; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/counter-style/input.css:2:13 | 2 | system: cyclic; @@ -87,6 +93,12 @@ error: Ident 2 | system: cyclic; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/counter-style/input.css:3:5 + | +3 | symbols: "\1F44D"; + | ^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/counter-style/input.css:3:5 | @@ -105,7 +117,7 @@ error: Ident 3 | symbols: "\1F44D"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/counter-style/input.css:3:14 | 3 | symbols: "\1F44D"; @@ -117,6 +129,12 @@ error: Str 3 | symbols: "\1F44D"; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/counter-style/input.css:4:5 + | +4 | suffix: " "; + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/counter-style/input.css:4:5 | @@ -135,7 +153,7 @@ error: Ident 4 | suffix: " "; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/counter-style/input.css:4:13 | 4 | suffix: " "; @@ -214,6 +232,12 @@ error: SimpleBlock 9 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/counter-style/input.css:8:5 + | +8 | list-style: thumbs; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/counter-style/input.css:8:5 | @@ -238,7 +262,7 @@ error: Ident 8 | list-style: thumbs; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/counter-style/input.css:8:17 | 8 | list-style: thumbs; diff --git a/crates/swc_css_parser/tests/fixture/at-rule/document/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/document/span.rust-debug index e139696af61..699519d9853 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/document/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/document/span.rust-debug @@ -81,6 +81,14 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:2:5 + | +2 | / h1 { +3 | | color: green; +4 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/document/input.css:2:5 | @@ -148,6 +156,12 @@ error: SimpleBlock 4 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:3:9 + | +3 | color: green; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/document/input.css:3:9 | @@ -172,7 +186,7 @@ error: Ident 3 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:3:16 | 3 | color: green; @@ -265,7 +279,7 @@ error: Ident 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:7:49 | 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { @@ -295,7 +309,7 @@ error: Ident 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:7:85 | 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { @@ -325,7 +339,7 @@ error: Ident 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:7:116 | 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { @@ -355,7 +369,7 @@ error: Ident 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:7:133 | 7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") { @@ -379,6 +393,15 @@ error: SimpleBlock 12 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:8:5 + | +8 | / body { +9 | | color: purple; +10 | | background: yellow; +11 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/document/input.css:8:5 | @@ -449,6 +472,12 @@ error: SimpleBlock 11 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:9:9 + | +9 | color: purple; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/document/input.css:9:9 | @@ -473,7 +502,7 @@ error: Ident 9 | color: purple; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:9:16 | 9 | color: purple; @@ -485,6 +514,12 @@ error: Ident 9 | color: purple; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:10:9 + | +10 | background: yellow; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/document/input.css:10:9 | @@ -509,7 +544,7 @@ error: Ident 10 | background: yellow; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:10:21 | 10 | background: yellow; @@ -762,6 +797,16 @@ error: SimpleBlock 24 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:19:5 + | +19 | / @media screen and (min-width: 900px) { +20 | | article { +21 | | padding: 1rem 3rem; +22 | | } +23 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/document/input.css:19:5 | @@ -893,6 +938,14 @@ error: SimpleBlock 23 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:20:9 + | +20 | / article { +21 | | padding: 1rem 3rem; +22 | | } + | |_________^ + error: Rule --> $DIR/tests/fixture/at-rule/document/input.css:20:9 | @@ -960,6 +1013,12 @@ error: SimpleBlock 22 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/document/input.css:21:13 + | +21 | padding: 1rem 3rem; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/document/input.css:21:13 | @@ -984,7 +1043,7 @@ error: Ident 21 | padding: 1rem 3rem; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:21:22 | 21 | padding: 1rem 3rem; @@ -1014,7 +1073,7 @@ error: Ident 21 | padding: 1rem 3rem; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/document/input.css:21:27 | 21 | padding: 1rem 3rem; diff --git a/crates/swc_css_parser/tests/fixture/at-rule/font-face/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/font-face/span.rust-debug index 5966374f7f0..80d5a2266a2 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/font-face/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/font-face/span.rust-debug @@ -49,6 +49,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/font-face/input.css:2:5 + | +2 | font-family: "Open Sans"; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/font-face/input.css:2:5 | @@ -67,7 +73,7 @@ error: Ident 2 | font-family: "Open Sans"; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:2:18 | 2 | font-family: "Open Sans"; @@ -79,6 +85,13 @@ error: Str 2 | font-family: "Open Sans"; | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/font-face/input.css:3:5 + | +3 | / src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), +4 | | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); + | |______________________________________________________________^ + error: Declaration --> $DIR/tests/fixture/at-rule/font-face/input.css:3:5 | @@ -98,7 +111,7 @@ error: Ident 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:3:10 | 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), @@ -128,7 +141,7 @@ error: Str 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:3:55 | 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), @@ -146,7 +159,7 @@ error: Ident 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:3:62 | 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), @@ -158,7 +171,7 @@ error: Str 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:3:70 | 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), @@ -170,7 +183,7 @@ error: Delimiter 3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"), | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:4:5 | 4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); @@ -200,7 +213,7 @@ error: Str 4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:4:49 | 4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); @@ -218,7 +231,7 @@ error: Ident 4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/font-face/input.css:4:56 | 4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff"); diff --git a/crates/swc_css_parser/tests/fixture/at-rule/import/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/import/span.rust-debug index b8f12497fd8..cdbca5e5ed8 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/import/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/import/span.rust-debug @@ -802,7 +802,7 @@ error: Ident 15 | @import url("theme.css") layer(default); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:15:32 | 15 | @import url("theme.css") layer(default); @@ -880,7 +880,7 @@ error: Ident 16 | @import url("theme.css") LAYER(default); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:16:32 | 16 | @import url("theme.css") LAYER(default); @@ -1030,7 +1030,7 @@ error: Ident 19 | @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:19:45 | 19 | @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px); @@ -1204,7 +1204,7 @@ error: Ident 20 | @import url("narrow.css") SUPPORTS(display: flex) handheld and (max-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:20:45 | 20 | @import url("narrow.css") SUPPORTS(display: flex) handheld and (max-width: 400px); @@ -1408,7 +1408,7 @@ error: Ident 21 | @import url("fallback-layout.css") supports(not (display: flex)); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:21:59 | 21 | @import url("fallback-layout.css") supports(not (display: flex)); @@ -4828,7 +4828,7 @@ error: Ident 108 | @import "test.css" supports(display: flex); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:108:38 | 108 | @import "test.css" supports(display: flex); @@ -4894,7 +4894,7 @@ error: Ident 109 | @import "test.css" supports(display: flex) screen and (orientation:landscape); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:109:38 | 109 | @import "test.css" supports(display: flex) screen and (orientation:landscape); @@ -5032,7 +5032,7 @@ error: Ident 110 | @import"test.css"supports(display: flex)screen and (orientation:landscape); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:110:36 | 110 | @import"test.css"supports(display: flex)screen and (orientation:landscape); @@ -5632,7 +5632,7 @@ error: Ident 128 | @import url("./test.css") supports(display: flex); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:128:45 | 128 | @import url("./test.css") supports(display: flex); @@ -5716,7 +5716,7 @@ error: Ident 129 | @import url("./test.css") supports(display: flex !important); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:129:45 | 129 | @import url("./test.css") supports(display: flex !important); @@ -5812,7 +5812,7 @@ error: Ident 130 | @import url("./test.css") supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:130:45 | 130 | @import url("./test.css") supports(display: flex) screen and (min-width: 400px); @@ -6040,7 +6040,7 @@ error: Ident 132 | @import url("./test.css") layer(default); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:132:33 | 132 | @import url("./test.css") layer(default); @@ -6118,7 +6118,7 @@ error: Ident 133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:133:33 | 133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px); @@ -6154,7 +6154,7 @@ error: Ident 133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:133:60 | 133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px); @@ -6340,7 +6340,7 @@ error: Ident 134 | @import url("./test.css") layer supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:134:51 | 134 | @import url("./test.css") layer supports(display: flex) screen and (min-width: 400px); @@ -6532,7 +6532,7 @@ error: Ident 135 | @import url("./test.css") layer() supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:135:53 | 135 | @import url("./test.css") layer() supports(display: flex) screen and (min-width: 400px); @@ -6772,7 +6772,7 @@ error: Ident 137 | @import url("http://example.com/style.css") supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:137:63 | 137 | @import url("http://example.com/style.css") supports(display: flex) screen and (min-width: 400px); @@ -6940,7 +6940,7 @@ error: Ident 138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:138:32 | 138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px); @@ -6976,7 +6976,7 @@ error: Ident 138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:138:58 | 138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px); @@ -7282,7 +7282,7 @@ error: Ident 140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px ); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:140:42 | 140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px ); @@ -7318,7 +7318,7 @@ error: Ident 140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px ); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:140:92 | 140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px ); @@ -7486,7 +7486,7 @@ error: Ident 141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:141:33 | 141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX); @@ -7522,7 +7522,7 @@ error: Ident 141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:141:60 | 141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX); @@ -7690,7 +7690,7 @@ error: Ident 142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:142:60 | 142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */); @@ -7726,7 +7726,7 @@ error: Ident 142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:142:153 | 142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */); @@ -8350,7 +8350,7 @@ error: Ident 149 | @import url("./import-with-supports.css") supports(display: flex); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:149:61 | 149 | @import url("./import-with-supports.css") supports(display: flex); @@ -8476,7 +8476,7 @@ error: Ident 150 | @import url("./import-with-supports.css") supports(((display: flex))); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:150:63 | 150 | @import url("./import-with-supports.css") supports(((display: flex))); @@ -8560,7 +8560,7 @@ error: Ident 151 | @import url("./deep-import-with-supports.css") supports(display: flex); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:151:66 | 151 | @import url("./deep-import-with-supports.css") supports(display: flex); @@ -8644,7 +8644,7 @@ error: Ident 152 | @import url('./test.css') supports(display: grid); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:152:45 | 152 | @import url('./test.css') supports(display: grid); @@ -8728,7 +8728,7 @@ error: Ident 153 | @import url('./test.css') supports( display : grid ); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:153:54 | 153 | @import url('./test.css') supports( display : grid ); @@ -8812,7 +8812,7 @@ error: Ident 154 | @import url("./import-with-supports-and-media.css") supports(display: flex) screen and (min-width: 400px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:154:71 | 154 | @import url("./import-with-supports-and-media.css") supports(display: flex) screen and (min-width: 400px); @@ -8980,7 +8980,7 @@ error: Ident 155 | @import url("./test.css") layer(framework); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:155:33 | 155 | @import url("./test.css") layer(framework); @@ -9058,7 +9058,7 @@ error: Ident 156 | @import url("./import-multiple-with-layer.css") layer(default); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:156:55 | 156 | @import url("./import-multiple-with-layer.css") layer(default); @@ -9136,7 +9136,7 @@ error: Ident 157 | @import url("./import-unnamed-layer.css") layer(base); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:157:49 | 157 | @import url("./import-unnamed-layer.css") layer(base); @@ -9214,7 +9214,7 @@ error: Ident 158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:158:59 | 158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex); @@ -9250,7 +9250,7 @@ error: Ident 158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/import/input.css:158:86 | 158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex); diff --git a/crates/swc_css_parser/tests/fixture/at-rule/keyframe/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/keyframe/span.rust-debug index c497a50ca76..8c53e78e5d0 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/keyframe/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/keyframe/span.rust-debug @@ -155,6 +155,14 @@ error: SimpleBlock 13 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:6:5 + | +6 | / from { +7 | | transform: translateX(0%); +8 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:6:5 | @@ -184,6 +192,12 @@ error: SimpleBlock 8 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:7:9 + | +7 | transform: translateX(0%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:7:9 | @@ -202,7 +216,7 @@ error: Ident 7 | transform: translateX(0%); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:7:20 | 7 | transform: translateX(0%); @@ -220,7 +234,7 @@ error: Ident 7 | transform: translateX(0%); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:7:31 | 7 | transform: translateX(0%); @@ -238,6 +252,14 @@ error: Number 7 | transform: translateX(0%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:10:5 + | +10 | / to { +11 | | transform: translateX(100%); +12 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:10:5 | @@ -267,6 +289,12 @@ error: SimpleBlock 12 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:11:9 + | +11 | transform: translateX(100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:11:9 | @@ -285,7 +313,7 @@ error: Ident 11 | transform: translateX(100%); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:11:20 | 11 | transform: translateX(100%); @@ -303,7 +331,7 @@ error: Ident 11 | transform: translateX(100%); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:11:31 | 11 | transform: translateX(100%); @@ -372,6 +400,12 @@ error: SimpleBlock 20 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:5 + | +16 | 0% { top: 0; left: 0; } + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:5 | @@ -402,6 +436,12 @@ error: SimpleBlock 16 | 0% { top: 0; left: 0; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:10 + | +16 | 0% { top: 0; left: 0; } + | ^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:10 | @@ -420,7 +460,7 @@ error: Ident 16 | 0% { top: 0; left: 0; } | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:15 | 16 | 0% { top: 0; left: 0; } @@ -432,6 +472,12 @@ error: Integer 16 | 0% { top: 0; left: 0; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:18 + | +16 | 0% { top: 0; left: 0; } + | ^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:18 | @@ -450,7 +496,7 @@ error: Ident 16 | 0% { top: 0; left: 0; } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:16:24 | 16 | 0% { top: 0; left: 0; } @@ -462,6 +508,12 @@ error: Integer 16 | 0% { top: 0; left: 0; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:17:5 + | +17 | 30% { top: 50px; } + | ^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:17:5 | @@ -492,6 +544,12 @@ error: SimpleBlock 17 | 30% { top: 50px; } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:17:11 + | +17 | 30% { top: 50px; } + | ^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:17:11 | @@ -510,7 +568,7 @@ error: Ident 17 | 30% { top: 50px; } | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:17:16 | 17 | 30% { top: 50px; } @@ -540,6 +598,12 @@ error: Ident 17 | 30% { top: 50px; } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:18:5 + | +18 | 68%, 72% { left: 50px; } + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:18:5 | @@ -588,6 +652,12 @@ error: SimpleBlock 18 | 68%, 72% { left: 50px; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:18:16 + | +18 | 68%, 72% { left: 50px; } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:18:16 | @@ -606,7 +676,7 @@ error: Ident 18 | 68%, 72% { left: 50px; } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:18:22 | 18 | 68%, 72% { left: 50px; } @@ -636,6 +706,12 @@ error: Ident 18 | 68%, 72% { left: 50px; } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:5 + | +19 | 100% { top: 100px; left: 100%; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:5 | @@ -666,6 +742,12 @@ error: SimpleBlock 19 | 100% { top: 100px; left: 100%; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:12 + | +19 | 100% { top: 100px; left: 100%; } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:12 | @@ -684,7 +766,7 @@ error: Ident 19 | 100% { top: 100px; left: 100%; } | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:17 | 19 | 100% { top: 100px; left: 100%; } @@ -714,6 +796,12 @@ error: Ident 19 | 100% { top: 100px; left: 100%; } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:24 + | +19 | 100% { top: 100px; left: 100%; } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:24 | @@ -732,7 +820,7 @@ error: Ident 19 | 100% { top: 100px; left: 100%; } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:19:30 | 19 | 100% { top: 100px; left: 100%; } @@ -895,6 +983,14 @@ error: SimpleBlock 44 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:27:5 + | +27 | / from { +28 | | margin-left: 0px; +29 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:27:5 | @@ -924,6 +1020,12 @@ error: SimpleBlock 29 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:28:9 + | +28 | margin-left: 0px; + | ^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:28:9 | @@ -942,7 +1044,7 @@ error: Ident 28 | margin-left: 0px; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:28:22 | 28 | margin-left: 0px; @@ -972,6 +1074,15 @@ error: Ident 28 | margin-left: 0px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:31:5 + | +31 | / 50% { +32 | | margin-left: 110px; +33 | | opacity: 1; +34 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:31:5 | @@ -1009,6 +1120,12 @@ error: SimpleBlock 34 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:32:9 + | +32 | margin-left: 110px; + | ^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:32:9 | @@ -1027,7 +1144,7 @@ error: Ident 32 | margin-left: 110px; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:32:22 | 32 | margin-left: 110px; @@ -1057,6 +1174,12 @@ error: Ident 32 | margin-left: 110px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:33:9 + | +33 | opacity: 1; + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:33:9 | @@ -1075,7 +1198,7 @@ error: Ident 33 | opacity: 1; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:33:18 | 33 | opacity: 1; @@ -1087,6 +1210,14 @@ error: Integer 33 | opacity: 1; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:36:5 + | +36 | / 50% { +37 | | opacity: 0.9; +38 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:36:5 | @@ -1122,6 +1253,12 @@ error: SimpleBlock 38 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:37:9 + | +37 | opacity: 0.9; + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:37:9 | @@ -1140,7 +1277,7 @@ error: Ident 37 | opacity: 0.9; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:37:18 | 37 | opacity: 0.9; @@ -1152,6 +1289,14 @@ error: Number 37 | opacity: 0.9; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:40:5 + | +40 | / to { +41 | | margin-left: 200px; +42 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:40:5 | @@ -1181,6 +1326,12 @@ error: SimpleBlock 42 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:41:9 + | +41 | margin-left: 200px; + | ^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:41:9 | @@ -1199,7 +1350,7 @@ error: Ident 41 | margin-left: 200px; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:41:22 | 41 | margin-left: 200px; @@ -1284,6 +1435,14 @@ error: SimpleBlock 54 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:47:5 + | +47 | / fRoM { +48 | | transform: translateX(0%); +49 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:47:5 | @@ -1313,6 +1472,12 @@ error: SimpleBlock 49 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:48:9 + | +48 | transform: translateX(0%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:48:9 | @@ -1331,7 +1496,7 @@ error: Ident 48 | transform: translateX(0%); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:48:20 | 48 | transform: translateX(0%); @@ -1349,7 +1514,7 @@ error: Ident 48 | transform: translateX(0%); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:48:31 | 48 | transform: translateX(0%); @@ -1367,6 +1532,14 @@ error: Number 48 | transform: translateX(0%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:51:5 + | +51 | / tO { +52 | | transform: translateX(100%); +53 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/keyframe/input.css:51:5 | @@ -1396,6 +1569,12 @@ error: SimpleBlock 53 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/keyframe/input.css:52:9 + | +52 | transform: translateX(100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/keyframe/input.css:52:9 | @@ -1414,7 +1593,7 @@ error: Ident 52 | transform: translateX(100%); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:52:20 | 52 | transform: translateX(100%); @@ -1432,7 +1611,7 @@ error: Ident 52 | transform: translateX(100%); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/keyframe/input.css:52:31 | 52 | transform: translateX(100%); diff --git a/crates/swc_css_parser/tests/fixture/at-rule/layer/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/layer/span.rust-debug index 7336fa8b794..214c655fac0 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/layer/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/layer/span.rust-debug @@ -157,6 +157,15 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:4:5 + | +4 | / @keyframes slide-left { +5 | | from { translate: 0; } +6 | | to { translate: -100% 0; } +7 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:4:5 | @@ -200,6 +209,12 @@ error: SimpleBlock 7 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:5:9 + | +5 | from { translate: 0; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/layer/input.css:5:9 | @@ -224,6 +239,12 @@ error: SimpleBlock 5 | from { translate: 0; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:5:16 + | +5 | from { translate: 0; } + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/layer/input.css:5:16 | @@ -242,7 +263,7 @@ error: Ident 5 | from { translate: 0; } | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:5:27 | 5 | from { translate: 0; } @@ -254,6 +275,12 @@ error: Integer 5 | from { translate: 0; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:6:9 + | +6 | to { translate: -100% 0; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/layer/input.css:6:9 | @@ -278,6 +305,12 @@ error: SimpleBlock 6 | to { translate: -100% 0; } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:6:14 + | +6 | to { translate: -100% 0; } + | ^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/layer/input.css:6:14 | @@ -296,7 +329,7 @@ error: Ident 6 | to { translate: -100% 0; } | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:6:25 | 6 | to { translate: -100% 0; } @@ -314,7 +347,7 @@ error: Number 6 | to { translate: -100% 0; } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:6:31 | 6 | to { translate: -100% 0; } @@ -389,6 +422,15 @@ error: SimpleBlock 15 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:11:5 + | +11 | / @keyframes slide-left { +12 | | from { margin-left: 0; } +13 | | to { margin-left: -100%; } +14 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:11:5 | @@ -432,6 +474,12 @@ error: SimpleBlock 14 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:12:9 + | +12 | from { margin-left: 0; } + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/layer/input.css:12:9 | @@ -456,6 +504,12 @@ error: SimpleBlock 12 | from { margin-left: 0; } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:12:16 + | +12 | from { margin-left: 0; } + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/layer/input.css:12:16 | @@ -474,7 +528,7 @@ error: Ident 12 | from { margin-left: 0; } | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:12:29 | 12 | from { margin-left: 0; } @@ -486,6 +540,12 @@ error: Integer 12 | from { margin-left: 0; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:13:9 + | +13 | to { margin-left: -100%; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/at-rule/layer/input.css:13:9 | @@ -510,6 +570,12 @@ error: SimpleBlock 13 | to { margin-left: -100%; } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:13:14 + | +13 | to { margin-left: -100%; } + | ^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/layer/input.css:13:14 | @@ -528,7 +594,7 @@ error: Ident 13 | to { margin-left: -100%; } | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:13:27 | 13 | to { margin-left: -100%; } @@ -600,6 +666,12 @@ error: SimpleBlock 17 | .sidebar { animation: slide-left 300ms; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:17:12 + | +17 | .sidebar { animation: slide-left 300ms; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:17:12 | @@ -624,7 +696,7 @@ error: Ident 17 | .sidebar { animation: slide-left 300ms; } | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:17:23 | 17 | .sidebar { animation: slide-left 300ms; } @@ -636,7 +708,7 @@ error: Ident 17 | .sidebar { animation: slide-left 300ms; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:17:34 | 17 | .sidebar { animation: slide-left 300ms; } @@ -771,6 +843,12 @@ error: SimpleBlock 24 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:23:5 + | +23 | strong { font-weight: bold; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:23:5 | @@ -831,6 +909,12 @@ error: SimpleBlock 23 | strong { font-weight: bold; } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:23:14 + | +23 | strong { font-weight: bold; } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:23:14 | @@ -855,7 +939,7 @@ error: Ident 23 | strong { font-weight: bold; } | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:23:27 | 23 | strong { font-weight: bold; } @@ -934,6 +1018,12 @@ error: SimpleBlock 32 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:27:5 + | +27 | .title { font-weight: 100; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:27:5 | @@ -988,6 +1078,12 @@ error: SimpleBlock 27 | .title { font-weight: 100; } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:27:14 + | +27 | .title { font-weight: 100; } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:27:14 | @@ -1012,7 +1108,7 @@ error: Ident 27 | .title { font-weight: 100; } | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:27:27 | 27 | .title { font-weight: 100; } @@ -1024,6 +1120,14 @@ error: Integer 27 | .title { font-weight: 100; } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:29:5 + | +29 | / @layer theme { +30 | | h1, h2 { color: maroon; } +31 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:29:5 | @@ -1075,6 +1179,12 @@ error: SimpleBlock 31 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:30:9 + | +30 | h1, h2 { color: maroon; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:30:9 | @@ -1171,6 +1281,12 @@ error: SimpleBlock 30 | h1, h2 { color: maroon; } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:30:18 + | +30 | h1, h2 { color: maroon; } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:30:18 | @@ -1195,7 +1311,7 @@ error: Ident 30 | h1, h2 { color: maroon; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:30:25 | 30 | h1, h2 { color: maroon; } @@ -1258,6 +1374,12 @@ error: SimpleBlock 36 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:35:5 + | +35 | [hidden] { display: none; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:35:5 | @@ -1318,6 +1440,12 @@ error: SimpleBlock 35 | [hidden] { display: none; } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:35:16 + | +35 | [hidden] { display: none; } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:35:16 | @@ -1342,7 +1470,7 @@ error: Ident 35 | [hidden] { display: none; } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:35:25 | 35 | [hidden] { display: none; } @@ -1421,6 +1549,14 @@ error: SimpleBlock 46 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:39:5 + | +39 | / @layer default { +40 | | p { margin-block: 0.75em; } +41 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:39:5 | @@ -1472,6 +1608,12 @@ error: SimpleBlock 41 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:40:9 + | +40 | p { margin-block: 0.75em; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:40:9 | @@ -1532,6 +1674,12 @@ error: SimpleBlock 40 | p { margin-block: 0.75em; } | ^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:40:13 + | +40 | p { margin-block: 0.75em; } + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:40:13 | @@ -1556,7 +1704,7 @@ error: Ident 40 | p { margin-block: 0.75em; } | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:40:27 | 40 | p { margin-block: 0.75em; } @@ -1586,6 +1734,14 @@ error: Ident 40 | p { margin-block: 0.75em; } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:43:5 + | +43 | / @layer theme { +44 | | p { color: #222; } +45 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:43:5 | @@ -1637,6 +1793,12 @@ error: SimpleBlock 45 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:44:9 + | +44 | p { color: #222; } + | ^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:44:9 | @@ -1697,6 +1859,12 @@ error: SimpleBlock 44 | p { color: #222; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:44:13 + | +44 | p { color: #222; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:44:13 | @@ -1721,7 +1889,7 @@ error: Ident 44 | p { color: #222; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:44:20 | 44 | p { color: #222; } @@ -1800,6 +1968,12 @@ error: SimpleBlock 51 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:50:5 + | +50 | blockquote { color: rebeccapurple; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/layer/input.css:50:5 | @@ -1860,6 +2034,12 @@ error: SimpleBlock 50 | blockquote { color: rebeccapurple; } | ^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/layer/input.css:50:18 + | +50 | blockquote { color: rebeccapurple; } + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/layer/input.css:50:18 | @@ -1884,7 +2064,7 @@ error: Ident 50 | blockquote { color: rebeccapurple; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/layer/input.css:50:25 | 50 | blockquote { color: rebeccapurple; } diff --git a/crates/swc_css_parser/tests/fixture/at-rule/nest/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/nest/span.rust-debug index d66dd52d748..0dca3b84f58 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/nest/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/nest/span.rust-debug @@ -80,6 +80,12 @@ error: SimpleBlock 6 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:2:5 + | +2 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:2:5 | @@ -104,7 +110,7 @@ error: Ident 2 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:2:12 | 2 | color: red; @@ -116,6 +122,14 @@ error: Ident 2 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:3:5 + | +3 | / @nest & > .bar { +4 | | color: blue; +5 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:3:5 | @@ -195,6 +209,12 @@ error: SimpleBlock 5 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:4:9 + | +4 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:4:9 | @@ -219,7 +239,7 @@ error: Ident 4 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:4:16 | 4 | color: blue; @@ -301,6 +321,12 @@ error: SimpleBlock 13 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:9:5 + | +9 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:9:5 | @@ -325,7 +351,7 @@ error: Ident 9 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:9:12 | 9 | color: red; @@ -337,6 +363,14 @@ error: Ident 9 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:10:5 + | +10 | / @nest .parent & { +11 | | color: blue; +12 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:10:5 | @@ -416,6 +450,12 @@ error: SimpleBlock 12 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:11:9 + | +11 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:11:9 | @@ -440,7 +480,7 @@ error: Ident 11 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:11:16 | 11 | color: blue; @@ -522,6 +562,12 @@ error: SimpleBlock 20 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:16:5 + | +16 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:16:5 | @@ -546,7 +592,7 @@ error: Ident 16 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:16:12 | 16 | color: red; @@ -558,6 +604,14 @@ error: Ident 16 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:17:5 + | +17 | / @nest :not(&) { +18 | | color: blue; +19 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:17:5 | @@ -649,6 +703,12 @@ error: SimpleBlock 19 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:18:9 + | +18 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:18:9 | @@ -673,7 +733,7 @@ error: Ident 18 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:18:16 | 18 | color: blue; @@ -758,6 +818,12 @@ error: SimpleBlock 31 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:23:5 + | +23 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:23:5 | @@ -782,7 +848,7 @@ error: Ident 23 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:23:12 | 23 | color: blue; @@ -794,6 +860,17 @@ error: Ident 23 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:25:5 + | +25 | / @nest .bar & { +26 | | color: red; +27 | | &.baz { +28 | | color: green; +29 | | } +30 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:25:5 | @@ -882,6 +959,12 @@ error: SimpleBlock 30 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:26:9 + | +26 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:26:9 | @@ -906,7 +989,7 @@ error: Ident 26 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:26:16 | 26 | color: red; @@ -918,6 +1001,14 @@ error: Ident 26 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:27:9 + | +27 | / &.baz { +28 | | color: green; +29 | | } + | |_________^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:27:9 | @@ -985,6 +1076,12 @@ error: SimpleBlock 29 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/nest/input.css:28:13 + | +28 | color: green; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/nest/input.css:28:13 | @@ -1009,7 +1106,7 @@ error: Ident 28 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/nest/input.css:28:20 | 28 | color: green; diff --git a/crates/swc_css_parser/tests/fixture/at-rule/page/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/page/span.rust-debug index b05db97b7d3..bd16cf244b2 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/page/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/page/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 3 | @page{margin: 1cm} | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:3:7 + | +3 | @page{margin: 1cm} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:3:7 | @@ -100,7 +106,7 @@ error: Ident 3 | @page{margin: 1cm} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:3:15 | 3 | @page{margin: 1cm} @@ -154,6 +160,12 @@ error: SimpleBlock 4 | @page {margin: 1cm} | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:4:8 + | +4 | @page {margin: 1cm} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:4:8 | @@ -172,7 +184,7 @@ error: Ident 4 | @page {margin: 1cm} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:4:16 | 4 | @page {margin: 1cm} @@ -226,6 +238,12 @@ error: SimpleBlock 5 | @page {margin: 1cm;} | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:5:8 + | +5 | @page {margin: 1cm;} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:5:8 | @@ -244,7 +262,7 @@ error: Ident 5 | @page {margin: 1cm;} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:5:16 | 5 | @page {margin: 1cm;} @@ -322,6 +340,12 @@ error: SimpleBlock 6 | @page :first {margin: 2cm} | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:6:15 + | +6 | @page :first {margin: 2cm} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:6:15 | @@ -340,7 +364,7 @@ error: Ident 6 | @page :first {margin: 2cm} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:6:23 | 6 | @page :first {margin: 2cm} @@ -418,6 +442,12 @@ error: SimpleBlock 7 | @page :first {margin: 2cm;} | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:7:15 + | +7 | @page :first {margin: 2cm;} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:7:15 | @@ -436,7 +466,7 @@ error: Ident 7 | @page :first {margin: 2cm;} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:7:23 | 7 | @page :first {margin: 2cm;} @@ -514,6 +544,12 @@ error: SimpleBlock 8 | @page :first{margin: 2cm;} | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:8:14 + | +8 | @page :first{margin: 2cm;} + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:8:14 | @@ -532,7 +568,7 @@ error: Ident 8 | @page :first{margin: 2cm;} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:8:22 | 8 | @page :first{margin: 2cm;} @@ -1001,6 +1037,12 @@ error: SimpleBlock 20 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:18:5 + | +18 | @top-left {} + | ^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:18:5 | @@ -1025,6 +1067,12 @@ error: SimpleBlock 18 | @top-left {} | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:19:5 + | +19 | @bottom-center {} + | ^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:19:5 | @@ -1097,6 +1145,12 @@ error: SimpleBlock 21 | @page :left { @left-middle {}} | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:21:15 + | +21 | @page :left { @left-middle {}} + | ^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:21:15 | @@ -1169,6 +1223,12 @@ error: SimpleBlock 22 | @page :right{ @right-middle {}} | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:22:15 + | +22 | @page :right{ @right-middle {}} + | ^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:22:15 | @@ -1241,6 +1301,12 @@ error: SimpleBlock 24 | @page :left { @bottom-left-corner {}} | ^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:24:15 + | +24 | @page :left { @bottom-left-corner {}} + | ^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:24:15 | @@ -1313,6 +1379,12 @@ error: SimpleBlock 25 | @page :right { @bottom-right-corner {}} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:25:16 + | +25 | @page :right { @bottom-right-corner {}} + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:25:16 | @@ -1398,6 +1470,12 @@ error: SimpleBlock 29 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:27:5 + | +27 | @bottom-left-corner {} + | ^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:27:5 | @@ -1422,6 +1500,12 @@ error: SimpleBlock 27 | @bottom-left-corner {} | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:28:5 + | +28 | @bottom-right-corner {} + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:28:5 | @@ -1867,6 +1951,12 @@ error: SimpleBlock 47 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:38:5 + | +38 | color: green; + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:38:5 | @@ -1885,7 +1975,7 @@ error: Ident 38 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:38:12 | 38 | color: green; @@ -1897,6 +1987,15 @@ error: Ident 38 | color: green; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:40:5 + | +40 | / @top-left { +41 | | content: "foo"; +42 | | color: blue; +43 | | } + | |_____^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:40:5 | @@ -1931,6 +2030,12 @@ error: SimpleBlock 43 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:41:9 + | +41 | content: "foo"; + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:41:9 | @@ -1949,7 +2054,7 @@ error: Ident 41 | content: "foo"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:41:18 | 41 | content: "foo"; @@ -1961,6 +2066,12 @@ error: Str 41 | content: "foo"; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:42:9 + | +42 | color: blue; + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:42:9 | @@ -1979,7 +2090,7 @@ error: Ident 42 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:42:16 | 42 | color: blue; @@ -1991,6 +2102,14 @@ error: Ident 42 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:44:5 + | +44 | / @top-right { +45 | | content: "bar"; +46 | | } + | |_____^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:44:5 | @@ -2022,6 +2141,12 @@ error: SimpleBlock 46 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:45:9 + | +45 | content: "bar"; + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:45:9 | @@ -2040,7 +2165,7 @@ error: Ident 45 | content: "bar"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:45:18 | 45 | content: "bar"; @@ -2125,6 +2250,12 @@ error: SimpleBlock 60 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:49:5 + | +49 | color: green; + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:49:5 | @@ -2143,7 +2274,7 @@ error: Ident 49 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:49:12 | 49 | color: green; @@ -2155,6 +2286,15 @@ error: Ident 49 | color: green; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:51:5 + | +51 | / @top-left { +52 | | content: "foo"; +53 | | color: blue; +54 | | } + | |_____^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:51:5 | @@ -2189,6 +2329,12 @@ error: SimpleBlock 54 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:52:9 + | +52 | content: "foo"; + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:52:9 | @@ -2207,7 +2353,7 @@ error: Ident 52 | content: "foo"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:52:18 | 52 | content: "foo"; @@ -2219,6 +2365,12 @@ error: Str 52 | content: "foo"; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:53:9 + | +53 | color: blue; + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:53:9 | @@ -2237,7 +2389,7 @@ error: Ident 53 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:53:16 | 53 | color: blue; @@ -2249,6 +2401,14 @@ error: Ident 53 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:55:5 + | +55 | / @top-right { +56 | | content: "bar"; +57 | | } + | |_____^ + error: AtRule --> $DIR/tests/fixture/at-rule/page/input.css:55:5 | @@ -2280,6 +2440,12 @@ error: SimpleBlock 57 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:56:9 + | +56 | content: "bar"; + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:56:9 | @@ -2298,7 +2464,7 @@ error: Ident 56 | content: "bar"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:56:18 | 56 | content: "bar"; @@ -2310,6 +2476,12 @@ error: Str 56 | content: "bar"; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/page/input.css:59:5 + | +59 | margin: 20px; + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/page/input.css:59:5 | @@ -2328,7 +2500,7 @@ error: Ident 59 | margin: 20px; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/page/input.css:59:13 | 59 | margin: 20px; diff --git a/crates/swc_css_parser/tests/fixture/at-rule/property/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/property/span.rust-debug index ebe5b521daf..b7a12b6e0d1 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/property/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/property/span.rust-debug @@ -55,6 +55,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/property/input.css:2:5 + | +2 | syntax: ''; + | ^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/property/input.css:2:5 | @@ -73,7 +79,7 @@ error: Ident 2 | syntax: ''; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/property/input.css:2:13 | 2 | syntax: ''; @@ -85,6 +91,12 @@ error: Str 2 | syntax: ''; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/property/input.css:3:5 + | +3 | inherits: false; + | ^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/property/input.css:3:5 | @@ -103,7 +115,7 @@ error: Ident 3 | inherits: false; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/property/input.css:3:15 | 3 | inherits: false; @@ -115,6 +127,12 @@ error: Ident 3 | inherits: false; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/property/input.css:4:5 + | +4 | initial-value: #c0ffee; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/at-rule/property/input.css:4:5 | @@ -133,7 +151,7 @@ error: Ident 4 | initial-value: #c0ffee; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/property/input.css:4:20 | 4 | initial-value: #c0ffee; diff --git a/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug index f282a857c2a..19a39920a82 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug @@ -82,7 +82,7 @@ error: Ident 1 | @supports (display: grid) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:1:21 | 1 | @supports (display: grid) { @@ -105,6 +105,14 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:2:5 + | +2 | / div { +3 | | display: grid; +4 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:2:5 | @@ -172,6 +180,12 @@ error: SimpleBlock 4 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:3:9 + | +3 | display: grid; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:3:9 | @@ -196,7 +210,7 @@ error: Ident 3 | display: grid; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:3:18 | 3 | display: grid; @@ -286,7 +300,7 @@ error: Ident 7 | @supports (display: flex) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:7:21 | 7 | @supports (display: flex) { @@ -311,6 +325,14 @@ error: SimpleBlock 17 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:8:5 + | +8 | / body { +9 | | color: blue; +10 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:8:5 | @@ -378,6 +400,12 @@ error: SimpleBlock 10 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:9:9 + | +9 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:9:9 | @@ -402,7 +430,7 @@ error: Ident 9 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:9:16 | 9 | color: blue; @@ -414,6 +442,16 @@ error: Ident 9 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:12:5 + | +12 | / @media screen and (min-width: 900px) { +13 | | article { +14 | | display: flex; +15 | | } +16 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:12:5 | @@ -545,6 +583,14 @@ error: SimpleBlock 16 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:13:9 + | +13 | / article { +14 | | display: flex; +15 | | } + | |_________^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:13:9 | @@ -612,6 +658,12 @@ error: SimpleBlock 15 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:14:13 + | +14 | display: flex; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:14:13 | @@ -636,7 +688,7 @@ error: Ident 14 | display: flex; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:14:22 | 14 | display: flex; @@ -708,7 +760,7 @@ error: Ident 18 | @supports ( display : flex ) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:18:31 | 18 | @supports ( display : flex ) {} @@ -792,7 +844,7 @@ error: Ident 19 | @supports not (display: flex) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:19:25 | 19 | @supports not (display: flex) {} @@ -876,7 +928,7 @@ error: Ident 20 | @SUPPORTS not (display: flex) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:20:25 | 20 | @SUPPORTS not (display: flex) {} @@ -954,7 +1006,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:24 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -966,7 +1018,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:26 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -978,7 +1030,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:28 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1008,7 +1060,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:32 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1020,7 +1072,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:38 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1074,7 +1126,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:67 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1086,7 +1138,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:69 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1098,7 +1150,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:71 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1128,7 +1180,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:75 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1140,7 +1192,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:81 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1194,7 +1246,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:113 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1206,7 +1258,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:115 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1218,7 +1270,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:117 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1248,7 +1300,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:121 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1260,7 +1312,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:127 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1314,7 +1366,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:154 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1326,7 +1378,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:156 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1338,7 +1390,7 @@ error: Integer 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:158 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1368,7 +1420,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:162 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1380,7 +1432,7 @@ error: Ident 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:21:168 | 21 | @supports (box-shadow: 0 0 2px black inset ) or (-moz-box-shadow: 0 0 2px black inset ) or (-webkit-box-shadow: 0 0 2px black inset ) or (-o-box-shadow: 0 0 2px black inset ) {} @@ -1477,7 +1529,7 @@ error: Ident 22 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:22:25 | 22 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -1489,7 +1541,7 @@ error: Integer 22 | @supports ( box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:22:27 | 22 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -1501,7 +1553,7 @@ error: Integer 22 | @supports ( box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:22:29 | 22 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -1531,7 +1583,7 @@ error: Ident 22 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:22:33 | 22 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -1543,7 +1595,7 @@ error: Ident 22 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:22:39 | 22 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -1601,7 +1653,7 @@ error: Ident 23 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:23:22 | 23 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -1613,7 +1665,7 @@ error: Integer 23 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:23:24 | 23 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -1625,7 +1677,7 @@ error: Integer 23 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:23:26 | 23 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -1655,7 +1707,7 @@ error: Ident 23 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:23:30 | 23 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -1667,7 +1719,7 @@ error: Ident 23 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:23:36 | 23 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -1725,7 +1777,7 @@ error: Ident 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:24:25 | 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -1737,7 +1789,7 @@ error: Integer 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:24:27 | 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -1749,7 +1801,7 @@ error: Integer 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:24:29 | 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -1779,7 +1831,7 @@ error: Ident 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:24:33 | 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -1791,7 +1843,7 @@ error: Ident 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:24:39 | 24 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -1849,7 +1901,7 @@ error: Ident 25 | ( -o-box-shadow: 0 0 2px black inset ) { | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:25:20 | 25 | ( -o-box-shadow: 0 0 2px black inset ) { @@ -1861,7 +1913,7 @@ error: Integer 25 | ( -o-box-shadow: 0 0 2px black inset ) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:25:22 | 25 | ( -o-box-shadow: 0 0 2px black inset ) { @@ -1873,7 +1925,7 @@ error: Integer 25 | ( -o-box-shadow: 0 0 2px black inset ) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:25:24 | 25 | ( -o-box-shadow: 0 0 2px black inset ) { @@ -1903,7 +1955,7 @@ error: Ident 25 | ( -o-box-shadow: 0 0 2px black inset ) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:25:28 | 25 | ( -o-box-shadow: 0 0 2px black inset ) { @@ -1915,7 +1967,7 @@ error: Ident 25 | ( -o-box-shadow: 0 0 2px black inset ) { | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:25:34 | 25 | ( -o-box-shadow: 0 0 2px black inset ) { @@ -2014,7 +2066,7 @@ error: Ident 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:28:34 | 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} @@ -2068,7 +2120,7 @@ error: Ident 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:28:61 | 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} @@ -2122,7 +2174,7 @@ error: Ident 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:28:83 | 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} @@ -2140,7 +2192,7 @@ error: Ident 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:28:90 | 28 | @supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) {} @@ -2236,7 +2288,7 @@ error: Ident 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:29:33 | 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} @@ -2308,7 +2360,7 @@ error: Ident 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:29:61 | 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} @@ -2362,7 +2414,7 @@ error: Ident 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:29:82 | 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} @@ -2380,7 +2432,7 @@ error: Ident 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:29:89 | 29 | @supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) {} @@ -2476,7 +2528,7 @@ error: Ident 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:30:43 | 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} @@ -2548,7 +2600,7 @@ error: Ident 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:30:89 | 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} @@ -2602,7 +2654,7 @@ error: Ident 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:30:126 | 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} @@ -2620,7 +2672,7 @@ error: Ident 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:30:133 | 30 | @supports ( transition-property : color ) or ( ( animation-name : foo ) and ( transform : rotate(10deg) ) ) {} @@ -2716,7 +2768,7 @@ error: Ident 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:31:31 | 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} @@ -2788,7 +2840,7 @@ error: Ident 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:31:57 | 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} @@ -2842,7 +2894,7 @@ error: Ident 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:31:76 | 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} @@ -2860,7 +2912,7 @@ error: Ident 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:31:83 | 31 | @supports(transition-property:color)or ((animation-name:foo)and (transform:rotate(10deg))){} @@ -2974,7 +3026,7 @@ error: Ident 32 | @supports ((display: flex)) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:32:22 | 32 | @supports ((display: flex)) {} @@ -3052,7 +3104,7 @@ error: Ident 33 | @supports (display: flex !important) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:33:21 | 33 | @supports (display: flex !important) {} @@ -3148,7 +3200,7 @@ error: Ident 34 | @supports NOT (display: flex) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:34:25 | 34 | @supports NOT (display: flex) {} @@ -3244,7 +3296,7 @@ error: Ident 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:35:34 | 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} @@ -3298,7 +3350,7 @@ error: Ident 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:35:61 | 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} @@ -3352,7 +3404,7 @@ error: Ident 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:35:83 | 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} @@ -3370,7 +3422,7 @@ error: Ident 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:35:90 | 35 | @supports ((transition-property: color) OR (animation-name: foo)) AND (transform: rotate(10deg)) {} @@ -3466,7 +3518,7 @@ error: Ident 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:36:33 | 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} @@ -3538,7 +3590,7 @@ error: Ident 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:36:61 | 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} @@ -3592,7 +3644,7 @@ error: Ident 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:36:82 | 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} @@ -3610,7 +3662,7 @@ error: Ident 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:36:89 | 36 | @supports (transition-property: color) OR ((animation-name: foo) AND (transform: rotate(10deg))) {} @@ -3724,7 +3776,7 @@ error: Ident 37 | @supports (NOT (display: flex)) {} | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:37:26 | 37 | @supports (NOT (display: flex)) {} @@ -3808,7 +3860,7 @@ error: Ident 39 | @supports selector(col || td) { | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:39:20 | 39 | @supports selector(col || td) { @@ -3897,6 +3949,14 @@ error: SimpleBlock 43 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:40:5 + | +40 | / col.selected || td { +41 | | background: tan; +42 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:40:5 | @@ -4018,6 +4078,12 @@ error: SimpleBlock 42 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:41:9 + | +41 | background: tan; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:41:9 | @@ -4042,7 +4108,7 @@ error: Ident 41 | background: tan; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:41:21 | 41 | background: tan; @@ -4120,7 +4186,7 @@ error: Ident 45 | @supports selector(:focus-visible) { | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:45:20 | 45 | @supports selector(:focus-visible) { @@ -4167,6 +4233,14 @@ error: SimpleBlock 49 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:46:5 + | +46 | / a:focus-visible { +47 | | background: yellow; +48 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:46:5 | @@ -4252,6 +4326,12 @@ error: SimpleBlock 48 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:47:9 + | +47 | background: yellow; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:47:9 | @@ -4276,7 +4356,7 @@ error: Ident 47 | background: yellow; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:47:21 | 47 | background: yellow; @@ -4354,7 +4434,7 @@ error: Ident 51 | @supports (--element(".minwidth")) { | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:51:22 | 51 | @supports (--element(".minwidth")) { @@ -4377,6 +4457,14 @@ error: SimpleBlock 55 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:52:5 + | +52 | / [--self] { +53 | | background: greenyellow; +54 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:52:5 | @@ -4444,6 +4532,12 @@ error: SimpleBlock 54 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:53:9 + | +53 | background: greenyellow; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:53:9 | @@ -4468,7 +4562,7 @@ error: Ident 53 | background: greenyellow; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:53:21 | 53 | background: greenyellow; @@ -4546,7 +4640,7 @@ error: Ident 57 | @supports (ident: 1) { | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:57:19 | 57 | @supports (ident: 1) { @@ -4567,6 +4661,12 @@ error: SimpleBlock 59 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:58:5 + | +58 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:58:5 | @@ -4615,6 +4715,12 @@ error: SimpleBlock 58 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:58:9 + | +58 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:58:9 | @@ -4639,7 +4745,7 @@ error: Ident 58 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:58:21 | 58 | * { background: red; } @@ -4735,7 +4841,7 @@ error: Ident 61 | @supports ((ident: 1)) { | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:61:20 | 61 | @supports ((ident: 1)) { @@ -4756,6 +4862,12 @@ error: SimpleBlock 63 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:62:5 + | +62 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:62:5 | @@ -4804,6 +4916,12 @@ error: SimpleBlock 62 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:62:9 + | +62 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:62:9 | @@ -4828,7 +4946,7 @@ error: Ident 62 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:62:21 | 62 | * { background: red; } @@ -4888,18 +5006,36 @@ error: SimpleBlock 65 | @supports (ident "str") { | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:65:12 + | +65 | @supports (ident "str") { + | ^^^^^ + error: Ident { value: Atom('ident' type=inline), raw: Atom('ident' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:65:12 | 65 | @supports (ident "str") { | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:65:17 + | +65 | @supports (ident "str") { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:65:17 | 65 | @supports (ident "str") { | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:65:18 + | +65 | @supports (ident "str") { + | ^^^^^ + error: String { value: Atom('str' type=inline), raw: Atom('"str"' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:65:18 | @@ -4915,6 +5051,12 @@ error: SimpleBlock 67 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:66:5 + | +66 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:66:5 | @@ -4963,6 +5105,12 @@ error: SimpleBlock 66 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:66:9 + | +66 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:66:9 | @@ -4987,7 +5135,7 @@ error: Ident 66 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:66:21 | 66 | * { background: red; } @@ -5053,18 +5201,36 @@ error: SimpleBlock 69 | @supports ((ident "str")) { | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:69:13 + | +69 | @supports ((ident "str")) { + | ^^^^^ + error: Ident { value: Atom('ident' type=inline), raw: Atom('ident' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:69:13 | 69 | @supports ((ident "str")) { | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:69:18 + | +69 | @supports ((ident "str")) { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:69:18 | 69 | @supports ((ident "str")) { | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:69:19 + | +69 | @supports ((ident "str")) { + | ^^^^^ + error: String { value: Atom('str' type=inline), raw: Atom('"str"' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:69:19 | @@ -5080,6 +5246,12 @@ error: SimpleBlock 71 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:70:5 + | +70 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:70:5 | @@ -5128,6 +5300,12 @@ error: SimpleBlock 70 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:70:9 + | +70 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:70:9 | @@ -5152,7 +5330,7 @@ error: Ident 70 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:70:21 | 70 | * { background: red; } @@ -5218,7 +5396,7 @@ error: Ident 73 | @supports func(10, 20, 40) { | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:73:16 | 73 | @supports func(10, 20, 40) { @@ -5230,7 +5408,7 @@ error: Integer 73 | @supports func(10, 20, 40) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:73:18 | 73 | @supports func(10, 20, 40) { @@ -5242,7 +5420,7 @@ error: Delimiter 73 | @supports func(10, 20, 40) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:73:20 | 73 | @supports func(10, 20, 40) { @@ -5254,7 +5432,7 @@ error: Integer 73 | @supports func(10, 20, 40) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:73:22 | 73 | @supports func(10, 20, 40) { @@ -5266,7 +5444,7 @@ error: Delimiter 73 | @supports func(10, 20, 40) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:73:24 | 73 | @supports func(10, 20, 40) { @@ -5287,6 +5465,12 @@ error: SimpleBlock 75 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:74:5 + | +74 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:74:5 | @@ -5335,6 +5519,12 @@ error: SimpleBlock 74 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:74:9 + | +74 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:74:9 | @@ -5359,7 +5549,7 @@ error: Ident 74 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:74:21 | 74 | * { background: red; } @@ -5431,7 +5621,7 @@ error: Ident 77 | @supports (func(10, 20, 40)) { | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:77:17 | 77 | @supports (func(10, 20, 40)) { @@ -5443,7 +5633,7 @@ error: Integer 77 | @supports (func(10, 20, 40)) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:77:19 | 77 | @supports (func(10, 20, 40)) { @@ -5455,7 +5645,7 @@ error: Delimiter 77 | @supports (func(10, 20, 40)) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:77:21 | 77 | @supports (func(10, 20, 40)) { @@ -5467,7 +5657,7 @@ error: Integer 77 | @supports (func(10, 20, 40)) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:77:23 | 77 | @supports (func(10, 20, 40)) { @@ -5479,7 +5669,7 @@ error: Delimiter 77 | @supports (func(10, 20, 40)) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:77:25 | 77 | @supports (func(10, 20, 40)) { @@ -5500,6 +5690,12 @@ error: SimpleBlock 79 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:78:5 + | +78 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:78:5 | @@ -5548,6 +5744,12 @@ error: SimpleBlock 78 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:78:9 + | +78 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:78:9 | @@ -5572,7 +5774,7 @@ error: Ident 78 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:78:21 | 78 | * { background: red; } @@ -5644,7 +5846,7 @@ error: Ident 81 | @supports ( func( 10 , 20 , 40 ) ) { | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:81:23 | 81 | @supports ( func( 10 , 20 , 40 ) ) { @@ -5656,7 +5858,7 @@ error: Integer 81 | @supports ( func( 10 , 20 , 40 ) ) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:81:28 | 81 | @supports ( func( 10 , 20 , 40 ) ) { @@ -5668,7 +5870,7 @@ error: Delimiter 81 | @supports ( func( 10 , 20 , 40 ) ) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:81:32 | 81 | @supports ( func( 10 , 20 , 40 ) ) { @@ -5680,7 +5882,7 @@ error: Integer 81 | @supports ( func( 10 , 20 , 40 ) ) { | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:81:37 | 81 | @supports ( func( 10 , 20 , 40 ) ) { @@ -5692,7 +5894,7 @@ error: Delimiter 81 | @supports ( func( 10 , 20 , 40 ) ) { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:81:41 | 81 | @supports ( func( 10 , 20 , 40 ) ) { @@ -5713,6 +5915,12 @@ error: SimpleBlock 83 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:82:5 + | +82 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:82:5 | @@ -5761,6 +5969,12 @@ error: SimpleBlock 82 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:82:9 + | +82 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:82:9 | @@ -5785,7 +5999,7 @@ error: Ident 82 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:82:21 | 82 | * { background: red; } @@ -5875,7 +6089,7 @@ error: Ident 85 | @supports (animation-name: test) { | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:85:28 | 85 | @supports (animation-name: test) { @@ -5900,6 +6114,18 @@ error: SimpleBlock 94 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:86:5 + | +86 | / @-custom-keyframe anim { +87 | | from { +88 | | color: black; +89 | | } +... | +92 | | } +93 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:86:5 | @@ -5948,18 +6174,36 @@ error: Ident 86 | @-custom-keyframe anim { | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:86:22 + | +86 | @-custom-keyframe anim { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:86:22 | 86 | @-custom-keyframe anim { | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:86:23 + | +86 | @-custom-keyframe anim { + | ^^^^ + error: Ident { value: Atom('anim' type=inline), raw: Atom('anim' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:86:23 | 86 | @-custom-keyframe anim { | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:86:27 + | +86 | @-custom-keyframe anim { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:86:27 | @@ -5979,6 +6223,14 @@ error: SimpleBlock 93 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:86:29 + | +86 | @-custom-keyframe anim { + | _____________________________^ +87 | | from { + | |________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:86:29 @@ -5988,18 +6240,39 @@ error: WhiteSpace { value: Atom(' 87 | | from { | |________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:87:9 + | +87 | from { + | ^^^^ + error: Ident { value: Atom('from' type=static), raw: Atom('from' type=static) } --> $DIR/tests/fixture/at-rule/supports/input.css:87:9 | 87 | from { | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:87:13 + | +87 | from { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:87:13 | 87 | from { | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:87:14 + | +87 | from { + | ______________^ +88 | | color: black; +89 | | } + | |_________^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:87:14 | @@ -6009,6 +6282,14 @@ error: SimpleBlock 89 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:87:15 + | +87 | from { + | _______________^ +88 | | color: black; + | |____________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:87:15 @@ -6018,36 +6299,74 @@ error: WhiteSpace { value: Atom(' 88 | | color: black; | |____________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:13 + | +88 | color: black; + | ^^^^^ + error: Ident { value: Atom('color' type=inline), raw: Atom('color' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:88:13 | 88 | color: black; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:18 + | +88 | color: black; + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/supports/input.css:88:18 | 88 | color: black; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:19 + | +88 | color: black; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:88:19 | 88 | color: black; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:20 + | +88 | color: black; + | ^^^^^ + error: Ident { value: Atom('black' type=inline), raw: Atom('black' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:88:20 | 88 | color: black; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:25 + | +88 | color: black; + | ^ + error: Semi --> $DIR/tests/fixture/at-rule/supports/input.css:88:25 | 88 | color: black; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:88:26 + | +88 | color: black; + | __________________________^ +89 | | } + | |________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:88:26 @@ -6057,6 +6376,14 @@ error: WhiteSpace { value: Atom(' 89 | | } | |________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:89:10 + | +89 | } + | __________^ +90 | | to { + | |________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:89:10 @@ -6066,18 +6393,39 @@ error: WhiteSpace { value: Atom(' 90 | | to { | |________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:90:9 + | +90 | to { + | ^^ + error: Ident { value: Atom('to' type=inline), raw: Atom('to' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:90:9 | 90 | to { | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:90:11 + | +90 | to { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:90:11 | 90 | to { | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:90:12 + | +90 | to { + | ____________^ +91 | | color: white +92 | | } + | |_________^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:90:12 | @@ -6087,6 +6435,14 @@ error: SimpleBlock 92 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:90:13 + | +90 | to { + | _____________^ +91 | | color: white + | |____________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:90:13 @@ -6096,30 +6452,62 @@ error: WhiteSpace { value: Atom(' 91 | | color: white | |____________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:91:13 + | +91 | color: white + | ^^^^^ + error: Ident { value: Atom('color' type=inline), raw: Atom('color' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:91:13 | 91 | color: white | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:91:18 + | +91 | color: white + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/supports/input.css:91:18 | 91 | color: white | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:91:19 + | +91 | color: white + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:91:19 | 91 | color: white | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:91:20 + | +91 | color: white + | ^^^^^ + error: Ident { value: Atom('white' type=inline), raw: Atom('white' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:91:20 | 91 | color: white | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:91:25 + | +91 | color: white + | _________________________^ +92 | | } + | |________^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } --> $DIR/tests/fixture/at-rule/supports/input.css:91:25 @@ -6129,6 +6517,14 @@ error: WhiteSpace { value: Atom(' 92 | | } | |________^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:92:10 + | +92 | } + | __________^ +93 | | } + | |____^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:92:10 @@ -6186,6 +6582,12 @@ error: SimpleBlock 96 | @supports (--var) { | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:96:12 + | +96 | @supports (--var) { + | ^^^^^ + error: Ident { value: Atom('--var' type=inline), raw: Atom('--var' type=inline) } --> $DIR/tests/fixture/at-rule/supports/input.css:96:12 | @@ -6201,6 +6603,12 @@ error: SimpleBlock 98 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:97:5 + | +97 | * { background: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:97:5 | @@ -6249,6 +6657,12 @@ error: SimpleBlock 97 | * { background: red; } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:97:9 + | +97 | * { background: red; } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:97:9 | @@ -6273,7 +6687,7 @@ error: Ident 97 | * { background: red; } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:97:21 | 97 | * { background: red; } @@ -6357,7 +6771,7 @@ error: DashedIdent 100 | @supports (--foo: green) { | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:100:19 | 100 | @supports (--foo: green) { @@ -6380,6 +6794,14 @@ error: SimpleBlock 104 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:101:5 + | +101 | / body { +102 | | color: var(--varName); +103 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:101:5 | @@ -6447,6 +6869,12 @@ error: SimpleBlock 103 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:102:9 + | +102 | color: var(--varName); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:102:9 | @@ -6471,7 +6899,7 @@ error: Ident 102 | color: var(--varName); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:102:16 | 102 | color: var(--varName); @@ -6489,7 +6917,7 @@ error: Ident 102 | color: var(--varName); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:102:20 | 102 | color: var(--varName); @@ -6576,7 +7004,7 @@ error: Ident 106 | @supports not selector(:is(a, b)) { | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:106:24 | 106 | @supports not selector(:is(a, b)) { @@ -6708,6 +7136,15 @@ error: SimpleBlock 111 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:107:5 + | +107 | / ul > li, +108 | | ol > li { +109 | | color: red; +110 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:107:5 | @@ -6886,6 +7323,12 @@ error: SimpleBlock 110 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:109:9 + | +109 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:109:9 | @@ -6910,7 +7353,7 @@ error: Ident 109 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:109:16 | 109 | color: red; @@ -6994,7 +7437,7 @@ error: Ident 113 | @supports selector(:nth-child(1n of a, b)) { | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:113:20 | 113 | @supports selector(:nth-child(1n of a, b)) { @@ -7157,6 +7600,17 @@ error: SimpleBlock 120 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:114:5 + | +114 | / :is( +115 | | :nth-child(1n of ul, ol) a, +116 | | details > summary +117 | | ) { +118 | | color: red +119 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/at-rule/supports/input.css:114:5 | @@ -7505,6 +7959,12 @@ error: SimpleBlock 119 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/supports/input.css:118:7 + | +118 | color: red + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/supports/input.css:118:7 | @@ -7529,7 +7989,7 @@ error: Ident 118 | color: red | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/supports/input.css:118:14 | 118 | color: red diff --git a/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug index bbe4fa60c44..6d41dc03cd7 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug @@ -70,24 +70,48 @@ error: Ident 2 | @unknown x y; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:2:9 + | +2 | @unknown x y; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:2:9 | 2 | @unknown x y; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:2:10 + | +2 | @unknown x y; + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:2:10 | 2 | @unknown x y; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:2:11 + | +2 | @unknown x y; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:2:11 | 2 | @unknown x y; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:2:12 + | +2 | @unknown x y; + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:2:12 | @@ -124,12 +148,24 @@ error: Ident 3 | @unknown "blah"; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:3:9 + | +3 | @unknown "blah"; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:3:9 | 3 | @unknown "blah"; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:3:10 + | +3 | @unknown "blah"; + | ^^^^^^ + error: String { value: Atom('blah' type=inline), raw: Atom('"blah"' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:3:10 | @@ -166,12 +202,24 @@ error: Ident 4 | @unknown \"blah\"; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:4:9 + | +4 | @unknown \"blah\"; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:4:9 | 4 | @unknown \"blah\"; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:4:10 + | +4 | @unknown \"blah\"; + | ^^^^^^^^ + error: Ident { value: Atom('"blah"' type=inline), raw: Atom('\"blah\"' type=dynamic) } --> $DIR/tests/fixture/at-rule/unknown/input.css:4:10 | @@ -208,6 +256,12 @@ error: Ident 7 | @unknown ; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:7:9 + | +7 | @unknown ; + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:7:9 | @@ -244,24 +298,48 @@ error: Ident 8 | @unknown x y; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:8:9 + | +8 | @unknown x y; + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:8:9 | 8 | @unknown x y; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:8:11 + | +8 | @unknown x y; + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:8:11 | 8 | @unknown x y; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:8:12 + | +8 | @unknown x y; + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:8:12 | 8 | @unknown x y; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:8:14 + | +8 | @unknown x y; + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:8:14 | @@ -298,6 +376,12 @@ error: Ident 10 | @unknown {} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:10:9 + | +10 | @unknown {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:10:9 | @@ -340,6 +424,12 @@ error: Ident 11 | @\unknown {} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:11:10 + | +11 | @\unknown {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:11:10 | @@ -382,30 +472,60 @@ error: Ident 12 | @unknown a b {} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:12:9 + | +12 | @unknown a b {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:12:9 | 12 | @unknown a b {} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:12:10 + | +12 | @unknown a b {} + | ^ + error: Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:12:10 | 12 | @unknown a b {} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:12:11 + | +12 | @unknown a b {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:12:11 | 12 | @unknown a b {} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:12:12 + | +12 | @unknown a b {} + | ^ + error: Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:12:12 | 12 | @unknown a b {} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:12:13 + | +12 | @unknown a b {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:12:13 | @@ -448,6 +568,12 @@ error: Ident 13 | @unknown {p:v} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:13:9 + | +13 | @unknown {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:13:9 | @@ -460,18 +586,36 @@ error: SimpleBlock 13 | @unknown {p:v} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:13:11 + | +13 | @unknown {p:v} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:13:11 | 13 | @unknown {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:13:12 + | +13 | @unknown {p:v} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:13:12 | 13 | @unknown {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:13:13 + | +13 | @unknown {p:v} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:13:13 | @@ -508,30 +652,60 @@ error: Ident 14 | @unknown x y {p:v} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:9 + | +14 | @unknown x y {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:9 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:10 + | +14 | @unknown x y {p:v} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:10 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:11 + | +14 | @unknown x y {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:11 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:12 + | +14 | @unknown x y {p:v} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:12 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:13 + | +14 | @unknown x y {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:13 | @@ -544,18 +718,36 @@ error: SimpleBlock 14 | @unknown x y {p:v} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:15 + | +14 | @unknown x y {p:v} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:15 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:16 + | +14 | @unknown x y {p:v} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:14:16 | 14 | @unknown x y {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:14:17 + | +14 | @unknown x y {p:v} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:14:17 | @@ -592,42 +784,84 @@ error: Ident 15 | @unknown x, y x(1) {p:v} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:9 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:9 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:10 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:10 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:11 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:15:11 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:12 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:12 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:13 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:13 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:14 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:14 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:15 + | +15 | @unknown x, y x(1) {p:v} + | ^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:15:15 | @@ -640,7 +874,7 @@ error: Ident 15 | @unknown x, y x(1) {p:v} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:15:17 | 15 | @unknown x, y x(1) {p:v} @@ -652,6 +886,12 @@ error: Integer 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:19 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:19 | @@ -664,18 +904,36 @@ error: SimpleBlock 15 | @unknown x, y x(1) {p:v} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:21 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:21 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:22 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:15:22 | 15 | @unknown x, y x(1) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:15:23 + | +15 | @unknown x, y x(1) {p:v} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:15:23 | @@ -712,42 +970,84 @@ error: Ident 16 | @unknown x, y x(1+2) {p:v} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:9 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:9 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:10 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:10 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:11 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:16:11 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:12 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:12 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:13 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:13 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:14 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:14 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:15 + | +16 | @unknown x, y x(1+2) {p:v} + | ^^^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:16:15 | @@ -760,7 +1060,7 @@ error: Ident 16 | @unknown x, y x(1+2) {p:v} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:16:17 | 16 | @unknown x, y x(1+2) {p:v} @@ -772,7 +1072,7 @@ error: Integer 16 | @unknown x, y x(1+2) {p:v} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:16:18 | 16 | @unknown x, y x(1+2) {p:v} @@ -784,6 +1084,12 @@ error: Integer 16 | @unknown x, y x(1+2) {p:v} | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:21 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:21 | @@ -796,18 +1102,36 @@ error: SimpleBlock 16 | @unknown x, y x(1+2) {p:v} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:23 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:23 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:24 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:16:24 | 16 | @unknown x, y x(1+2) {p:v} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:16:25 + | +16 | @unknown x, y x(1+2) {p:v} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:16:25 | @@ -850,18 +1174,36 @@ error: SimpleBlock 17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:17:26 + | +17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:17:26 | 17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:17:35 + | +17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:17:35 | 17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:17:44 + | +17 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:17:44 | @@ -898,6 +1240,12 @@ error: Ident 20 | @unknown { p : v } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:9 + | +20 | @unknown { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:9 | @@ -910,42 +1258,84 @@ error: SimpleBlock 20 | @unknown { p : v } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:12 + | +20 | @unknown { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:12 | 20 | @unknown { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:14 + | +20 | @unknown { p : v } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:14 | 20 | @unknown { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:15 + | +20 | @unknown { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:15 | 20 | @unknown { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:17 + | +20 | @unknown { p : v } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:20:17 | 20 | @unknown { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:18 + | +20 | @unknown { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:18 | 20 | @unknown { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:20 + | +20 | @unknown { p : v } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:20 | 20 | @unknown { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:20:21 + | +20 | @unknown { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:20:21 | @@ -982,30 +1372,60 @@ error: Ident 21 | @unknown x y { p : v } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:9 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:9 | 21 | @unknown x y { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:11 + | +21 | @unknown x y { p : v } + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:11 | 21 | @unknown x y { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:12 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:12 | 21 | @unknown x y { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:14 + | +21 | @unknown x y { p : v } + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:14 | 21 | @unknown x y { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:15 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:15 | @@ -1018,42 +1438,84 @@ error: SimpleBlock 21 | @unknown x y { p : v } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:18 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:18 | 21 | @unknown x y { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:20 + | +21 | @unknown x y { p : v } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:20 | 21 | @unknown x y { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:21 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:21 | 21 | @unknown x y { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:23 + | +21 | @unknown x y { p : v } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:21:23 | 21 | @unknown x y { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:24 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:24 | 21 | @unknown x y { p : v } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:26 + | +21 | @unknown x y { p : v } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:26 | 21 | @unknown x y { p : v } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:21:27 + | +21 | @unknown x y { p : v } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:21:27 | @@ -1090,6 +1552,12 @@ error: Ident 24 | @unknown {s{p:v}} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:9 + | +24 | @unknown {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:24:9 | @@ -1102,30 +1570,60 @@ error: SimpleBlock 24 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:11 + | +24 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:24:11 | 24 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:12 + | +24 | @unknown {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:24:12 | 24 | @unknown {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:13 + | +24 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:24:13 | 24 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:14 + | +24 | @unknown {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:24:14 | 24 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:24:15 + | +24 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:24:15 | @@ -1162,30 +1660,60 @@ error: Ident 25 | @unknown x y {s{p:v}} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:9 + | +25 | @unknown x y {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:9 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:10 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:10 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:11 + | +25 | @unknown x y {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:11 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:12 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:12 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:13 + | +25 | @unknown x y {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:13 | @@ -1198,30 +1726,60 @@ error: SimpleBlock 25 | @unknown x y {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:15 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:15 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:16 + | +25 | @unknown x y {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:25:16 | 25 | @unknown x y {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:17 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:17 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:18 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:25:18 | 25 | @unknown x y {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:25:19 + | +25 | @unknown x y {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:25:19 | @@ -1258,42 +1816,84 @@ error: Ident 26 | @unknown x, y f(1) {s{p:v}} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:9 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:9 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:10 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:10 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:11 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:26:11 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:12 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:12 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:13 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:13 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:14 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:14 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:15 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:26:15 | @@ -1306,7 +1906,7 @@ error: Ident 26 | @unknown x, y f(1) {s{p:v}} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:26:17 | 26 | @unknown x, y f(1) {s{p:v}} @@ -1318,6 +1918,12 @@ error: Integer 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:19 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:19 | @@ -1330,30 +1936,60 @@ error: SimpleBlock 26 | @unknown x, y f(1) {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:21 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:21 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:22 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:26:22 | 26 | @unknown x, y f(1) {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:23 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:23 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:24 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:26:24 | 26 | @unknown x, y f(1) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:26:25 + | +26 | @unknown x, y f(1) {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:26:25 | @@ -1390,42 +2026,84 @@ error: Ident 27 | @unknown x, y f(1+2) {s{p:v}} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:9 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:9 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:10 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:10 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:11 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:27:11 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:12 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:12 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:13 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:13 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:14 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:14 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:15 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^^^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:27:15 | @@ -1438,7 +2116,7 @@ error: Ident 27 | @unknown x, y f(1+2) {s{p:v}} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:27:17 | 27 | @unknown x, y f(1+2) {s{p:v}} @@ -1450,7 +2128,7 @@ error: Integer 27 | @unknown x, y f(1+2) {s{p:v}} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:27:18 | 27 | @unknown x, y f(1+2) {s{p:v}} @@ -1462,6 +2140,12 @@ error: Integer 27 | @unknown x, y f(1+2) {s{p:v}} | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:21 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:21 | @@ -1474,30 +2158,60 @@ error: SimpleBlock 27 | @unknown x, y f(1+2) {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:23 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:23 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:24 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:27:24 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:25 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:25 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:26 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:27:26 | 27 | @unknown x, y f(1+2) {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:27:27 + | +27 | @unknown x, y f(1+2) {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:27:27 | @@ -1534,6 +2248,12 @@ error: Ident 28 | @unknown { .a { p: v; } .b { p: v } } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:9 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:9 | @@ -1546,144 +2266,288 @@ error: SimpleBlock 28 | @unknown { .a { p: v; } .b { p: v } } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:11 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:11 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:12 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Delim { value: '.' } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:12 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:13 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:13 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:14 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:14 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:15 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:28:15 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:16 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:16 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:17 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:17 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:18 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:28:18 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:19 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:19 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:20 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:20 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:21 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Semi --> $DIR/tests/fixture/at-rule/unknown/input.css:28:21 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:22 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:22 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:24 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:24 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:25 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Delim { value: '.' } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:25 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:26 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:26 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:27 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:27 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:28 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:28:28 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:29 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:29 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:30 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:30 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:31 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:28:31 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:32 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:32 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:33 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:33 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:34 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:34 | 28 | @unknown { .a { p: v; } .b { p: v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:28:36 + | +28 | @unknown { .a { p: v; } .b { p: v } } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:28:36 | @@ -1726,30 +2590,60 @@ error: SimpleBlock 29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:29:26 + | +29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:29:26 | 29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:29:35 + | +29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:29:35 | 29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:29:44 + | +29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:29:44 | 29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:29:53 + | +29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:29:53 | 29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:29:62 + | +29 | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:29:62 | @@ -1786,6 +2680,12 @@ error: Ident 32 | @unknown { s { p : v } } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:9 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:9 | @@ -1798,72 +2698,144 @@ error: SimpleBlock 32 | @unknown { s { p : v } } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:12 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:12 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:14 + | +32 | @unknown { s { p : v } } + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:14 | 32 | @unknown { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:15 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:15 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:17 + | +32 | @unknown { s { p : v } } + | ^^^^^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:32:17 | 32 | @unknown { s { p : v } } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:18 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:18 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:20 + | +32 | @unknown { s { p : v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:20 | 32 | @unknown { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:21 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:21 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:23 + | +32 | @unknown { s { p : v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:32:23 | 32 | @unknown { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:24 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:24 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:26 + | +32 | @unknown { s { p : v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:26 | 32 | @unknown { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:27 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:27 | 32 | @unknown { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:32:30 + | +32 | @unknown { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:32:30 | @@ -1900,30 +2872,60 @@ error: Ident 33 | @unknown x y { s { p : v } } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:9 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:9 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:11 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:11 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:12 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:12 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:14 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:14 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:15 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:15 | @@ -1936,72 +2938,144 @@ error: SimpleBlock 33 | @unknown x y { s { p : v } } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:18 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:18 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:20 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:20 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:21 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:21 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:23 + | +33 | @unknown x y { s { p : v } } + | ^^^^^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:33:23 | 33 | @unknown x y { s { p : v } } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:24 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:24 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:26 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:26 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:27 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:27 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:29 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:33:29 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:30 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:30 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:32 + | +33 | @unknown x y { s { p : v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:32 | 33 | @unknown x y { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:33 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:33 | 33 | @unknown x y { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:33:36 + | +33 | @unknown x y { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:33:36 | @@ -2038,48 +3112,96 @@ error: Ident 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:9 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:9 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:11 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:11 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:12 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:12 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:14 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:34:14 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:15 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:15 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:17 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:17 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:18 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:18 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:20 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^^^^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:34:20 | @@ -2092,7 +3214,7 @@ error: Ident 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:34:24 | 34 | @unknown x , y f( 1 ) { s { p : v } } @@ -2104,6 +3226,12 @@ error: Integer 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:28 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:28 | @@ -2116,72 +3244,144 @@ error: SimpleBlock 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:31 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:31 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:33 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:33 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:34 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:34 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:36 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^^^^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:34:36 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:37 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:37 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:39 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:39 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:40 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:40 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:42 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:34:42 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:43 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:43 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:45 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:45 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:46 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:46 | 34 | @unknown x , y f( 1 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:34:49 + | +34 | @unknown x , y f( 1 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:34:49 | @@ -2218,48 +3418,96 @@ error: Ident 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:9 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:9 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:11 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:11 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:12 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:12 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:14 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:35:14 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:15 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:15 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:17 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:17 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:18 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:18 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:20 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^^^^^^^^^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:35:20 | @@ -2272,7 +3520,7 @@ error: Ident 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:35:24 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } @@ -2284,7 +3532,7 @@ error: Integer 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:35:29 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } @@ -2296,6 +3544,12 @@ error: Integer 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:33 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:33 | @@ -2308,72 +3562,144 @@ error: SimpleBlock 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:36 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:36 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:38 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:38 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:39 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:39 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:41 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^^^^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:35:41 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:42 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:42 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:44 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:44 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:45 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:45 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:47 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:35:47 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:48 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:48 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:50 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:50 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:51 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:51 | 35 | @unknown x , y f( 1 2 ) { s { p : v } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:35:54 + | +35 | @unknown x , y f( 1 2 ) { s { p : v } } + | ^^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:35:54 | @@ -2419,6 +3745,12 @@ error: Ident 37 | @unknown { | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:37:9 + | +37 | @unknown { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:37:9 | @@ -2435,6 +3767,14 @@ error: SimpleBlock 40 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:37:11 + | +37 | @unknown { + | ___________^ +38 | | --> {} + | |____^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:37:11 @@ -2444,24 +3784,50 @@ error: WhiteSpace { value: Atom(' 38 | | --> {} | |____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:38:5 + | +38 | --> {} + | ^^^ + error: CDC --> $DIR/tests/fixture/at-rule/unknown/input.css:38:5 | 38 | --> {} | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:38:8 + | +38 | --> {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:38:8 | 38 | --> {} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:38:9 + | +38 | --> {} + | ^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:38:9 | 38 | --> {} | ^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:38:11 + | +38 | --> {} + | ___________^ +39 | | $DIR/tests/fixture/at-rule/unknown/input.css:38:11 @@ -2471,24 +3837,50 @@ error: WhiteSpace { value: Atom(' 39 | | $DIR/tests/fixture/at-rule/unknown/input.css:39:5 + | +39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:5 | 39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:9 + | +39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:9 | 39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:10 + | +39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:10 | 39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:12 + | +39 | $DIR/tests/fixture/at-rule/unknown/input.css:39:12 @@ -2534,6 +3926,12 @@ error: Ident 42 | @unknown { | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:42:9 + | +42 | @unknown { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:42:9 | @@ -2549,6 +3947,14 @@ error: SimpleBlock 44 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:42:11 + | +42 | @unknown { + | ___________^ +43 | | @unknown {s{p:v}} + | |____^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:42:11 @@ -2558,54 +3964,110 @@ error: WhiteSpace { value: Atom(' 43 | | @unknown {s{p:v}} | |____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:5 + | +43 | @unknown {s{p:v}} + | ^^^^^^^^ + error: AtKeyword { value: Atom('unknown' type=static), raw: Atom('unknown' type=static) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:5 | 43 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:13 + | +43 | @unknown {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:13 | 43 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:14 + | +43 | @unknown {s{p:v}} + | ^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:43:14 | 43 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:15 + | +43 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:15 | 43 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:16 + | +43 | @unknown {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:43:16 | 43 | @unknown {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:17 + | +43 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:17 | 43 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:18 + | +43 | @unknown {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:43:18 | 43 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:19 + | +43 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:19 | 43 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:43:22 + | +43 | @unknown {s{p:v}} + | ______________________^ +44 | | } + | |_ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:43:22 @@ -2657,6 +4119,12 @@ error: Ident 46 | @unknown { | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:46:9 + | +46 | @unknown { + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:46:9 | @@ -2674,6 +4142,14 @@ error: SimpleBlock 50 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:46:11 + | +46 | @unknown { + | ___________^ +47 | | @unknown {s{p:v}} + | |____^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:46:11 @@ -2683,54 +4159,111 @@ error: WhiteSpace { value: Atom(' 47 | | @unknown {s{p:v}} | |____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:5 + | +47 | @unknown {s{p:v}} + | ^^^^^^^^ + error: AtKeyword { value: Atom('unknown' type=static), raw: Atom('unknown' type=static) } --> $DIR/tests/fixture/at-rule/unknown/input.css:47:5 | 47 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:13 + | +47 | @unknown {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:47:13 | 47 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:14 + | +47 | @unknown {s{p:v}} + | ^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:47:14 | 47 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:15 + | +47 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:47:15 | 47 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:16 + | +47 | @unknown {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:47:16 | 47 | @unknown {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:17 + | +47 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:47:17 | 47 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:18 + | +47 | @unknown {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:47:18 | 47 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:19 + | +47 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:47:19 | 47 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:47:22 + | +47 | @unknown {s{p:v}} + | ______________________^ +48 | | +49 | | color: red; + | |____^ + error: WhiteSpace { value: Atom(' ' type=dynamic) } @@ -2742,36 +4275,74 @@ error: WhiteSpace { value: Atom(' 49 | | color: red; | |____^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:5 + | +49 | color: red; + | ^^^^^ + error: Ident { value: Atom('color' type=inline), raw: Atom('color' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:49:5 | 49 | color: red; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:10 + | +49 | color: red; + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:49:10 | 49 | color: red; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:11 + | +49 | color: red; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:49:11 | 49 | color: red; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:12 + | +49 | color: red; + | ^^^ + error: Ident { value: Atom('red' type=inline), raw: Atom('red' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:49:12 | 49 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:15 + | +49 | color: red; + | ^ + error: Semi --> $DIR/tests/fixture/at-rule/unknown/input.css:49:15 | 49 | color: red; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:49:16 + | +49 | color: red; + | ________________^ +50 | | } + | |_ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:49:16 @@ -2848,6 +4419,12 @@ error: SimpleBlock 56 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:55:5 + | +55 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:55:5 | @@ -2872,7 +4449,7 @@ error: Ident 55 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:55:12 | 55 | color: red; @@ -2884,6 +4461,12 @@ error: Ident 55 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:5 + | +53 | @unknown {s{p:v}} + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:53:5 | @@ -2914,6 +4497,12 @@ error: Ident 53 | @unknown {s{p:v}} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:13 + | +53 | @unknown {s{p:v}} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:53:13 | @@ -2926,30 +4515,60 @@ error: SimpleBlock 53 | @unknown {s{p:v}} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:15 + | +53 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:53:15 | 53 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:16 + | +53 | @unknown {s{p:v}} + | ^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:53:16 | 53 | @unknown {s{p:v}} | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:17 + | +53 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:53:17 | 53 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:18 + | +53 | @unknown {s{p:v}} + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:53:18 | 53 | @unknown {s{p:v}} | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:53:19 + | +53 | @unknown {s{p:v}} + | ^ + error: Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:53:19 | @@ -2986,72 +4605,144 @@ error: Ident 58 | @unknown x ( a , b ) ; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:9 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:9 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:10 + | +58 | @unknown x ( a , b ) ; + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:10 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:11 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:11 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:12 + | +58 | @unknown x ( a , b ) ; + | ^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:58:12 | 58 | @unknown x ( a , b ) ; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:13 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:13 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:14 + | +58 | @unknown x ( a , b ) ; + | ^ + error: Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:14 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:15 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:15 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:16 + | +58 | @unknown x ( a , b ) ; + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:58:16 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:17 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:17 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:18 + | +58 | @unknown x ( a , b ) ; + | ^ + error: Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:18 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:19 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:19 | 58 | @unknown x ( a , b ) ; | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:58:21 + | +58 | @unknown x ( a , b ) ; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:58:21 | @@ -3088,72 +4779,144 @@ error: Ident 59 | @unknown x ( a , b ) { foo: bar } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:9 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:9 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:10 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:10 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:11 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:11 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:12 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^^^^^^^^^ + error: SimpleBlock --> $DIR/tests/fixture/at-rule/unknown/input.css:59:12 | 59 | @unknown x ( a , b ) { foo: bar } | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:13 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:13 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:14 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:14 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:15 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:15 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:16 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: Comma --> $DIR/tests/fixture/at-rule/unknown/input.css:59:16 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:17 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:17 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:18 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:18 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:19 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:19 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:21 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:21 | @@ -3166,36 +4929,72 @@ error: SimpleBlock 59 | @unknown x ( a , b ) { foo: bar } | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:23 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:23 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:24 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^^^ + error: Ident { value: Atom('foo' type=inline), raw: Atom('foo' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:24 | 59 | @unknown x ( a , b ) { foo: bar } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:27 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:59:27 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:28 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:28 | 59 | @unknown x ( a , b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:29 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^^^ + error: Ident { value: Atom('bar' type=inline), raw: Atom('bar' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:29 | 59 | @unknown x ( a , b ) { foo: bar } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:59:32 + | +59 | @unknown x ( a , b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:59:32 | @@ -3232,12 +5031,24 @@ error: Ident 60 | @unknown x( a, b ) { foo: bar } | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:9 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:9 | 60 | @unknown x( a, b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:10 + | +60 | @unknown x( a, b ) { foo: bar } + | ^^^^^^^^^ + error: Function --> $DIR/tests/fixture/at-rule/unknown/input.css:60:10 | @@ -3250,7 +5061,7 @@ error: Ident 60 | @unknown x( a, b ) { foo: bar } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:60:13 | 60 | @unknown x( a, b ) { foo: bar } @@ -3262,7 +5073,7 @@ error: Ident 60 | @unknown x( a, b ) { foo: bar } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:60:14 | 60 | @unknown x( a, b ) { foo: bar } @@ -3274,7 +5085,7 @@ error: Delimiter 60 | @unknown x( a, b ) { foo: bar } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/at-rule/unknown/input.css:60:16 | 60 | @unknown x( a, b ) { foo: bar } @@ -3286,6 +5097,12 @@ error: Ident 60 | @unknown x( a, b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:19 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:19 | @@ -3298,36 +5115,72 @@ error: SimpleBlock 60 | @unknown x( a, b ) { foo: bar } | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:21 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:21 | 60 | @unknown x( a, b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:22 + | +60 | @unknown x( a, b ) { foo: bar } + | ^^^ + error: Ident { value: Atom('foo' type=inline), raw: Atom('foo' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:22 | 60 | @unknown x( a, b ) { foo: bar } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:25 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: Colon --> $DIR/tests/fixture/at-rule/unknown/input.css:60:25 | 60 | @unknown x( a, b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:26 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:26 | 60 | @unknown x( a, b ) { foo: bar } | ^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:27 + | +60 | @unknown x( a, b ) { foo: bar } + | ^^^ + error: Ident { value: Atom('bar' type=inline), raw: Atom('bar' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:27 | 60 | @unknown x( a, b ) { foo: bar } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/at-rule/unknown/input.css:60:30 + | +60 | @unknown x( a, b ) { foo: bar } + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/at-rule/unknown/input.css:60:30 | diff --git a/crates/swc_css_parser/tests/fixture/bom/span.rust-debug b/crates/swc_css_parser/tests/fixture/bom/span.rust-debug index a4f4b666c52..7cbd7978776 100644 --- a/crates/swc_css_parser/tests/fixture/bom/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/bom/span.rust-debug @@ -73,6 +73,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/bom/input.css:2:5 + | +2 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/bom/input.css:2:5 | @@ -97,7 +103,7 @@ error: Ident 2 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/bom/input.css:2:12 | 2 | color: red; diff --git a/crates/swc_css_parser/tests/fixture/comment/span.rust-debug b/crates/swc_css_parser/tests/fixture/comment/span.rust-debug index 5a785efd8a7..7e36d890f24 100644 --- a/crates/swc_css_parser/tests/fixture/comment/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/comment/span.rust-debug @@ -81,6 +81,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/comment/input.css:3:14 + | +3 | /* comment */color/* comment */:/* comment */red/* comment */; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/comment/input.css:3:14 | @@ -105,7 +111,7 @@ error: Ident 3 | /* comment */color/* comment */:/* comment */red/* comment */; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/comment/input.css:3:46 | 3 | /* comment */color/* comment */:/* comment */red/* comment */; @@ -196,6 +202,12 @@ error: SimpleBlock 15 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/comment/input.css:11:5 + | +11 | color: black; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/comment/input.css:11:5 | @@ -220,7 +232,7 @@ error: Ident 11 | color: black; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/comment/input.css:11:12 | 11 | color: black; @@ -232,6 +244,12 @@ error: Ident 11 | color: black; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/comment/input.css:13:5 + | +13 | background: red; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/comment/input.css:13:5 | @@ -256,7 +274,7 @@ error: Ident 13 | background: red; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/comment/input.css:13:17 | 13 | background: red; @@ -338,6 +356,12 @@ error: SimpleBlock 21 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/comment/input.css:19:5 + | +19 | color: black; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/comment/input.css:19:5 | @@ -362,7 +386,7 @@ error: Ident 19 | color: black; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/comment/input.css:19:12 | 19 | color: black; diff --git a/crates/swc_css_parser/tests/fixture/dashed-ident/span.rust-debug b/crates/swc_css_parser/tests/fixture/dashed-ident/span.rust-debug index 2be651bfffe..87e6fac093f 100644 --- a/crates/swc_css_parser/tests/fixture/dashed-ident/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/dashed-ident/span.rust-debug @@ -74,6 +74,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:2:5 + | +2 | --main-color: #06c; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dashed-ident/input.css:2:5 | @@ -98,7 +104,7 @@ error: DashedIdent 2 | --main-color: #06c; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dashed-ident/input.css:2:19 | 2 | --main-color: #06c; @@ -110,6 +116,12 @@ error: Hash { is_id: false, value: Atom('06c' type=inline), raw: Atom('06c' type 2 | --main-color: #06c; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:3:5 + | +3 | --accent-color: #006; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dashed-ident/input.css:3:5 | @@ -134,7 +146,7 @@ error: DashedIdent 3 | --accent-color: #006; | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dashed-ident/input.css:3:21 | 3 | --accent-color: #006; @@ -207,6 +219,12 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:7:5 + | +7 | --fg-color: blue; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dashed-ident/input.css:7:5 | @@ -231,7 +249,7 @@ error: DashedIdent 7 | --fg-color: blue; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dashed-ident/input.css:7:17 | 7 | --fg-color: blue; @@ -340,6 +358,12 @@ error: SimpleBlock 12 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:11:5 + | +11 | color: var(--main-color); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dashed-ident/input.css:11:5 | @@ -364,7 +388,7 @@ error: Ident 11 | color: var(--main-color); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dashed-ident/input.css:11:12 | 11 | color: var(--main-color); @@ -382,7 +406,7 @@ error: Ident 11 | color: var(--main-color); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dashed-ident/input.css:11:16 | 11 | color: var(--main-color); @@ -424,6 +448,12 @@ error: DashedIdent 14 | @--custom {} | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:14:10 + | +14 | @--custom {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/dashed-ident/input.css:14:10 | @@ -466,6 +496,12 @@ error: DashedIdent 15 | @--library1-custom {} | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/dashed-ident/input.css:15:19 + | +15 | @--library1-custom {} + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/dashed-ident/input.css:15:19 | diff --git a/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug b/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug index 117e982fde3..08d3c7775c4 100644 --- a/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug @@ -77,6 +77,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/declaration-list/input.css:2:5 + | +2 | prop1: value; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration-list/input.css:2:5 | @@ -101,7 +107,7 @@ error: Ident 2 | prop1: value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration-list/input.css:2:12 | 2 | prop1: value; @@ -113,6 +119,12 @@ error: Ident 2 | prop1: value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration-list/input.css:3:5 + | +3 | prop2: value; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration-list/input.css:3:5 | @@ -137,7 +149,7 @@ error: Ident 3 | prop2: value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration-list/input.css:3:12 | 3 | prop2: value; diff --git a/crates/swc_css_parser/tests/fixture/declaration/span.rust-debug b/crates/swc_css_parser/tests/fixture/declaration/span.rust-debug index 24386d351f3..85ca905f113 100644 --- a/crates/swc_css_parser/tests/fixture/declaration/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/declaration/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 25 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:2:5 + | +2 | prop: value; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | prop: value; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:2:11 | 2 | prop: value; @@ -125,6 +131,12 @@ error: Ident 2 | prop: value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:3:5 + | +3 | prop: (value); + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:3:5 | @@ -149,7 +161,7 @@ error: Ident 3 | prop: (value); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:3:11 | 3 | prop: (value); @@ -161,7 +173,7 @@ error: SimpleBlock 3 | prop: (value); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:3:12 | 3 | prop: (value); @@ -173,6 +185,12 @@ error: Ident 3 | prop: (value); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:4:5 + | +4 | prop: {value}; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:4:5 | @@ -197,7 +215,7 @@ error: Ident 4 | prop: {value}; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:4:11 | 4 | prop: {value}; @@ -209,7 +227,7 @@ error: SimpleBlock 4 | prop: {value}; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:4:12 | 4 | prop: {value}; @@ -221,6 +239,12 @@ error: Ident 4 | prop: {value}; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:5:5 + | +5 | prop: [value]; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:5:5 | @@ -245,7 +269,7 @@ error: Ident 5 | prop: [value]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:5:11 | 5 | prop: [value]; @@ -257,7 +281,7 @@ error: SimpleBlock 5 | prop: [value]; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:5:12 | 5 | prop: [value]; @@ -269,6 +293,12 @@ error: Ident 5 | prop: [value]; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:6:5 + | +6 | prop: fn(value); + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:6:5 | @@ -293,7 +323,7 @@ error: Ident 6 | prop: fn(value); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:6:11 | 6 | prop: fn(value); @@ -311,7 +341,7 @@ error: Ident 6 | prop: fn(value); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:6:14 | 6 | prop: fn(value); @@ -323,6 +353,12 @@ error: Ident 6 | prop: fn(value); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:7:5 + | +7 | prop: fn(value)fn(value); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:7:5 | @@ -347,7 +383,7 @@ error: Ident 7 | prop: fn(value)fn(value); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:7:11 | 7 | prop: fn(value)fn(value); @@ -365,7 +401,7 @@ error: Ident 7 | prop: fn(value)fn(value); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:7:14 | 7 | prop: fn(value)fn(value); @@ -377,7 +413,7 @@ error: Ident 7 | prop: fn(value)fn(value); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:7:20 | 7 | prop: fn(value)fn(value); @@ -395,7 +431,7 @@ error: Ident 7 | prop: fn(value)fn(value); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:7:23 | 7 | prop: fn(value)fn(value); @@ -407,6 +443,12 @@ error: Ident 7 | prop: fn(value)fn(value); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:8:5 + | +8 | prop: value, value; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:8:5 | @@ -431,7 +473,7 @@ error: Ident 8 | prop: value, value; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:8:11 | 8 | prop: value, value; @@ -443,7 +485,7 @@ error: Ident 8 | prop: value, value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:8:16 | 8 | prop: value, value; @@ -455,7 +497,7 @@ error: Delimiter 8 | prop: value, value; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:8:18 | 8 | prop: value, value; @@ -467,6 +509,12 @@ error: Ident 8 | prop: value, value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:9:5 + | +9 | prop: value ,value; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:9:5 | @@ -491,7 +539,7 @@ error: Ident 9 | prop: value ,value; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:9:11 | 9 | prop: value ,value; @@ -503,7 +551,7 @@ error: Ident 9 | prop: value ,value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:9:17 | 9 | prop: value ,value; @@ -515,7 +563,7 @@ error: Delimiter 9 | prop: value ,value; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:9:18 | 9 | prop: value ,value; @@ -527,6 +575,12 @@ error: Ident 9 | prop: value ,value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:10:5 + | +10 | prop: value,value; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:10:5 | @@ -551,7 +605,7 @@ error: Ident 10 | prop: value,value; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:10:11 | 10 | prop: value,value; @@ -563,7 +617,7 @@ error: Ident 10 | prop: value,value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:10:16 | 10 | prop: value,value; @@ -575,7 +629,7 @@ error: Delimiter 10 | prop: value,value; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:10:17 | 10 | prop: value,value; @@ -587,6 +641,12 @@ error: Ident 10 | prop: value,value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:11:5 + | +11 | prop: value , value; + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:11:5 | @@ -611,7 +671,7 @@ error: Ident 11 | prop: value , value; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:11:11 | 11 | prop: value , value; @@ -623,7 +683,7 @@ error: Ident 11 | prop: value , value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:11:17 | 11 | prop: value , value; @@ -635,7 +695,7 @@ error: Delimiter 11 | prop: value , value; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:11:19 | 11 | prop: value , value; @@ -647,6 +707,12 @@ error: Ident 11 | prop: value , value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:12:5 + | +12 | prop: 100%100%; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:12:5 | @@ -671,7 +737,7 @@ error: Ident 12 | prop: 100%100%; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:12:11 | 12 | prop: 100%100%; @@ -689,7 +755,7 @@ error: Number 12 | prop: 100%100%; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:12:15 | 12 | prop: 100%100%; @@ -707,6 +773,12 @@ error: Number 12 | prop: 100%100%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:13:5 + | +13 | prop: "string""string"; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:13:5 | @@ -731,7 +803,7 @@ error: Ident 13 | prop: "string""string"; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:13:11 | 13 | prop: "string""string"; @@ -743,7 +815,7 @@ error: Str 13 | prop: "string""string"; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:13:19 | 13 | prop: "string""string"; @@ -755,6 +827,12 @@ error: Str 13 | prop: "string""string"; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:14:5 + | +14 | prop: #ccc#ccc; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:14:5 | @@ -779,7 +857,7 @@ error: Ident 14 | prop: #ccc#ccc; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:14:11 | 14 | prop: #ccc#ccc; @@ -797,7 +875,7 @@ error: HexColor 14 | prop: #ccc#ccc; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:14:15 | 14 | prop: #ccc#ccc; @@ -815,6 +893,12 @@ error: HexColor 14 | prop: #ccc#ccc; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:15:5 + | +15 | prop: url(value)url(value); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:15:5 | @@ -839,7 +923,7 @@ error: Ident 15 | prop: url(value)url(value); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:15:11 | 15 | prop: url(value)url(value); @@ -869,7 +953,7 @@ error: UrlValueRaw 15 | prop: url(value)url(value); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:15:21 | 15 | prop: url(value)url(value); @@ -899,6 +983,12 @@ error: UrlValueRaw 15 | prop: url(value)url(value); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:16:5 + | +16 | prop: (value)(value); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:16:5 | @@ -923,7 +1013,7 @@ error: Ident 16 | prop: (value)(value); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:16:11 | 16 | prop: (value)(value); @@ -935,7 +1025,7 @@ error: SimpleBlock 16 | prop: (value)(value); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:16:12 | 16 | prop: (value)(value); @@ -947,7 +1037,7 @@ error: Ident 16 | prop: (value)(value); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:16:18 | 16 | prop: (value)(value); @@ -959,7 +1049,7 @@ error: SimpleBlock 16 | prop: (value)(value); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:16:19 | 16 | prop: (value)(value); @@ -971,6 +1061,12 @@ error: Ident 16 | prop: (value)(value); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:17:5 + | +17 | prop: {value}{value}; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:17:5 | @@ -995,7 +1091,7 @@ error: Ident 17 | prop: {value}{value}; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:17:11 | 17 | prop: {value}{value}; @@ -1007,7 +1103,7 @@ error: SimpleBlock 17 | prop: {value}{value}; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:17:12 | 17 | prop: {value}{value}; @@ -1019,7 +1115,7 @@ error: Ident 17 | prop: {value}{value}; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:17:18 | 17 | prop: {value}{value}; @@ -1031,7 +1127,7 @@ error: SimpleBlock 17 | prop: {value}{value}; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:17:19 | 17 | prop: {value}{value}; @@ -1043,6 +1139,12 @@ error: Ident 17 | prop: {value}{value}; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:18:5 + | +18 | prop: [value][value]; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:18:5 | @@ -1067,7 +1169,7 @@ error: Ident 18 | prop: [value][value]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:18:11 | 18 | prop: [value][value]; @@ -1079,7 +1181,7 @@ error: SimpleBlock 18 | prop: [value][value]; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:18:12 | 18 | prop: [value][value]; @@ -1091,7 +1193,7 @@ error: Ident 18 | prop: [value][value]; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:18:18 | 18 | prop: [value][value]; @@ -1103,7 +1205,7 @@ error: SimpleBlock 18 | prop: [value][value]; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:18:19 | 18 | prop: [value][value]; @@ -1115,6 +1217,12 @@ error: Ident 18 | prop: [value][value]; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:19:5 + | +19 | prop: center/1em; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:19:5 | @@ -1139,7 +1247,7 @@ error: Ident 19 | prop: center/1em; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:19:11 | 19 | prop: center/1em; @@ -1151,7 +1259,7 @@ error: Ident 19 | prop: center/1em; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:19:17 | 19 | prop: center/1em; @@ -1163,7 +1271,7 @@ error: Delimiter 19 | prop: center/1em; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:19:18 | 19 | prop: center/1em; @@ -1193,6 +1301,12 @@ error: Ident 19 | prop: center/1em; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:20:5 + | +20 | prop: center/ 1em; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:20:5 | @@ -1217,7 +1331,7 @@ error: Ident 20 | prop: center/ 1em; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:20:11 | 20 | prop: center/ 1em; @@ -1229,7 +1343,7 @@ error: Ident 20 | prop: center/ 1em; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:20:17 | 20 | prop: center/ 1em; @@ -1241,7 +1355,7 @@ error: Delimiter 20 | prop: center/ 1em; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:20:19 | 20 | prop: center/ 1em; @@ -1271,6 +1385,12 @@ error: Ident 20 | prop: center/ 1em; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:21:5 + | +21 | prop: center /1em; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:21:5 | @@ -1295,7 +1415,7 @@ error: Ident 21 | prop: center /1em; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:21:11 | 21 | prop: center /1em; @@ -1307,7 +1427,7 @@ error: Ident 21 | prop: center /1em; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:21:18 | 21 | prop: center /1em; @@ -1319,7 +1439,7 @@ error: Delimiter 21 | prop: center /1em; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:21:19 | 21 | prop: center /1em; @@ -1349,6 +1469,12 @@ error: Ident 21 | prop: center /1em; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:22:5 + | +22 | prop: center / 1em; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:22:5 | @@ -1373,7 +1499,7 @@ error: Ident 22 | prop: center / 1em; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:22:11 | 22 | prop: center / 1em; @@ -1385,7 +1511,7 @@ error: Ident 22 | prop: center / 1em; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:22:18 | 22 | prop: center / 1em; @@ -1397,7 +1523,7 @@ error: Delimiter 22 | prop: center / 1em; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:22:20 | 22 | prop: center / 1em; @@ -1427,6 +1553,12 @@ error: Ident 22 | prop: center / 1em; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:23:5 + | +23 | c\olor: red; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:23:5 | @@ -1451,7 +1583,7 @@ error: Ident 23 | c\olor: red; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:23:13 | 23 | c\olor: red; @@ -1463,6 +1595,12 @@ error: Ident 23 | c\olor: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:24:5 + | +24 | prop/**/: big; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:24:5 | @@ -1487,7 +1625,7 @@ error: Ident 24 | prop/**/: big; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:24:15 | 24 | prop/**/: big; @@ -1559,6 +1697,12 @@ error: SimpleBlock 27 | a { color: a/* ; */ b ; } | ^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:27:5 + | +27 | a { color: a/* ; */ b ; } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:27:5 | @@ -1583,7 +1727,7 @@ error: Ident 27 | a { color: a/* ; */ b ; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:27:12 | 27 | a { color: a/* ; */ b ; } @@ -1595,7 +1739,7 @@ error: Ident 27 | a { color: a/* ; */ b ; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:27:21 | 27 | a { color: a/* ; */ b ; } @@ -1667,6 +1811,12 @@ error: SimpleBlock 28 | a{color:black} | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:28:3 + | +28 | a{color:black} + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:28:3 | @@ -1691,7 +1841,7 @@ error: Ident 28 | a{color:black} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:28:9 | 28 | a{color:black} @@ -1773,6 +1923,12 @@ error: SimpleBlock 33 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/declaration/input.css:31:5 + | +31 | color: black; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/declaration/input.css:31:5 | @@ -1797,7 +1953,7 @@ error: Ident 31 | color: black; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/declaration/input.css:31:12 | 31 | color: black; diff --git a/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug b/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug index 6e6981154b6..535c46e7a32 100644 --- a/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug @@ -73,6 +73,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/delim/backslash/input.css:2:5 + | +2 | color: \\ red \\ blue; + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/delim/backslash/input.css:2:5 | @@ -97,7 +103,7 @@ error: Ident 2 | color: \\ red \\ blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/delim/backslash/input.css:2:12 | 2 | color: \\ red \\ blue; @@ -109,7 +115,7 @@ error: Ident 2 | color: \\ red \\ blue; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/delim/backslash/input.css:2:15 | 2 | color: \\ red \\ blue; @@ -121,7 +127,7 @@ error: Ident 2 | color: \\ red \\ blue; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/delim/backslash/input.css:2:19 | 2 | color: \\ red \\ blue; @@ -133,7 +139,7 @@ error: Ident 2 | color: \\ red \\ blue; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/delim/backslash/input.css:2:22 | 2 | color: \\ red \\ blue; diff --git a/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug b/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug index 1073f231030..e914cba263d 100644 --- a/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 9 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:2:5 + | +2 | prop: 10px; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | prop: 10px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:2:11 | 2 | prop: 10px; @@ -143,6 +149,12 @@ error: Ident 2 | prop: 10px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:3:5 + | +3 | prop: .10px; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:3:5 | @@ -167,7 +179,7 @@ error: Ident 3 | prop: .10px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:3:11 | 3 | prop: .10px; @@ -197,6 +209,12 @@ error: Ident 3 | prop: .10px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:4:5 + | +4 | prop: 12.34px; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:4:5 | @@ -221,7 +239,7 @@ error: Ident 4 | prop: 12.34px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:4:11 | 4 | prop: 12.34px; @@ -251,6 +269,12 @@ error: Ident 4 | prop: 12.34px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:5:5 + | +5 | prop: 0000.000px; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:5:5 | @@ -275,7 +299,7 @@ error: Ident 5 | prop: 0000.000px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:5:11 | 5 | prop: 0000.000px; @@ -305,6 +329,12 @@ error: Ident 5 | prop: 0000.000px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:6:5 + | +6 | prop: 1px\\9; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:6:5 | @@ -329,7 +359,7 @@ error: Ident 6 | prop: 1px\\9; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:6:11 | 6 | prop: 1px\\9; @@ -359,6 +389,12 @@ error: Ident 6 | prop: 1px\\9; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:7:5 + | +7 | prop: 1e; + | ^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:7:5 | @@ -383,7 +419,7 @@ error: Ident 7 | prop: 1e; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:7:11 | 7 | prop: 1e; @@ -413,6 +449,12 @@ error: Ident 7 | prop: 1e; | ^ +error: ComponentValue + --> $DIR/tests/fixture/dimension/basic/input.css:8:5 + | +8 | prop: 1unknown; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/dimension/basic/input.css:8:5 | @@ -437,7 +479,7 @@ error: Ident 8 | prop: 1unknown; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/dimension/basic/input.css:8:11 | 8 | prop: 1unknown; diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug index ba2fe232ed3..597fa7cc81d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112333 } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:5 + | +1 | a { color: #112333 } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112333 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:12 | 1 | a { color: #112333 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug index 10a49d472e4..187db19e16f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug @@ -154,6 +154,12 @@ error: SimpleBlock 1 | div::before::after::selection::first-line::first-letter {color:red} | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:58 + | +1 | div::before::after::selection::first-line::first-letter {color:red} + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:58 | @@ -178,7 +184,7 @@ error: Ident 1 | div::before::after::selection::first-line::first-letter {color:red} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:64 | 1 | div::before::after::selection::first-line::first-letter {color:red} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug index 4d03daba9e0..38da80d51d7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.10; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:5 + | +1 | a { width: +.10; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.10; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:12 | 1 | a { width: +.10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug index 4e6dac00af7..ef65b0955b4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.10%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:5 + | +1 | a { width: -.10%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.10%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:12 | 1 | a { width: -.10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug index e6a16ed90ee..7ba2d4f78c8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:5 + | +1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:17 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -112,7 +118,7 @@ error: Ident 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:21 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -124,7 +130,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:24 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -136,7 +142,7 @@ error: Delimiter 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:26 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -148,7 +154,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:27 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -160,7 +166,7 @@ error: Delimiter 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:29 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -172,7 +178,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:33 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -184,7 +190,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:35 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -196,7 +202,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:37 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } @@ -208,7 +214,7 @@ error: Integer 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:39 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug index 962e2184db4..0456ba78ce7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { margin: 0 1 0 1 } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:5 + | +1 | a { margin: 0 1 0 1 } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { margin: 0 1 0 1 } | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:13 | 1 | a { margin: 0 1 0 1 } @@ -100,7 +106,7 @@ error: Integer 1 | a { margin: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:15 | 1 | a { margin: 0 1 0 1 } @@ -112,7 +118,7 @@ error: Integer 1 | a { margin: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:17 | 1 | a { margin: 0 1 0 1 } @@ -124,7 +130,7 @@ error: Integer 1 | a { margin: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:19 | 1 | a { margin: 0 1 0 1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug index 6777a6f1821..7481d715f0f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10p\32x } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:5 + | +1 | a { value: 10p\32x } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10p\32x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:12 | 1 | a { value: 10p\32x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug index b2816c81116..fbc1a7472e9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:5 + | +1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:20 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } @@ -100,7 +106,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:22 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } @@ -112,7 +118,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:24 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } @@ -124,7 +130,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:26 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } @@ -136,6 +142,12 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:29 + | +1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:29 | @@ -160,7 +172,7 @@ error: Ident 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:54 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } @@ -172,7 +184,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:56 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug index c53ecc09a32..3a9eeb06991 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: id\65nt } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:5 + | +1 | a { value: id\65nt } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: id\65nt } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:12 | 1 | a { value: id\65nt } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug index e0b2902c92e..cbc8b685a79 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 1 | a:after { content: 'a\ b' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:11 + | +1 | a:after { content: 'a\ b' } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:11 | @@ -106,7 +112,7 @@ error: Ident 1 | a:after { content: 'a\ b' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:20 | 1 | a:after { content: 'a\ b' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug index 4623379cff2..f34c6b58535 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \66n() } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:5 + | +1 | a { value: \66n() } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \66n() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:12 | 1 | a { value: \66n() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/span.rust-debug index 14d18068c5d..f5dd05a2482 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes test { from { color: red } to {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:19 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes test { from { color: red } to {} } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:26 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:26 | @@ -76,7 +88,7 @@ error: Ident 1 | @keyframes test { from { color: red } to {} } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:33 | 1 | @keyframes test { from { color: red } to {} } @@ -88,6 +100,12 @@ error: Ident 1 | @keyframes test { from { color: red } to {} } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:39 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:39 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug index d58d3ec9ad7..d6a74a2d66e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ABCD } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:5 + | +1 | a { color: #ABCD } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ABCD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:12 | 1 | a { color: #ABCD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug index 26780ad7be6..f25b6df688c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ABBBCCDD } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:5 + | +1 | a { color: #ABBBCCDD } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ABBBCCDD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:12 | 1 | a { color: #ABBBCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug index ef6154ae004..d98b64f1b6a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #abcf } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:5 + | +1 | a { color: #abcf } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #abcf } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:12 | 1 | a { color: #abcf } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug index a62f4be4f34..377a22dc419 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: 0.1%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:5 + | +1 | a { width: 0.1%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: 0.1%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:12 | 1 | a { width: 0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/span.rust-debug index 05ed2074812..ed32dbeb638 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name { 100% { color: red } } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:19 + | +1 | @keyframes name { 100% { color: red } } + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:19 | @@ -64,6 +70,12 @@ error: SimpleBlock 1 | @keyframes name { 100% { color: red } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:26 + | +1 | @keyframes name { 100% { color: red } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:26 | @@ -82,7 +94,7 @@ error: Ident 1 | @keyframes name { 100% { color: red } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:33 | 1 | @keyframes name { 100% { color: red } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug index 26bce81fa93..d0e73d6dbcf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \69 dent } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:5 + | +1 | a { value: \69 dent } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \69 dent } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:12 | 1 | a { value: \69 dent } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug index 0838812cc91..28ccd46ed83 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #\30hash } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:5 + | +1 | a { value: #\30hash } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #\30hash } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:12 | 1 | a { value: #\30hash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug index b442fa5f8f0..96048c9976e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: 0.0; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:5 + | +1 | a { width: 0.0; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: 0.0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:12 | 1 | a { width: 0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug index 5547a0ce9b3..99f48fac742 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { padding: 0 1 0px 1px } | ^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:5 + | +1 | a { padding: 0 1 0px 1px } + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { padding: 0 1 0px 1px } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:14 | 1 | a { padding: 0 1 0px 1px } @@ -100,7 +106,7 @@ error: Integer 1 | a { padding: 0 1 0px 1px } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:16 | 1 | a { padding: 0 1 0px 1px } @@ -112,7 +118,7 @@ error: Integer 1 | a { padding: 0 1 0px 1px } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:18 | 1 | a { padding: 0 1 0px 1px } @@ -142,7 +148,7 @@ error: Ident 1 | a { padding: 0 1 0px 1px } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:22 | 1 | a { padding: 0 1 0px 1px } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/span.rust-debug index 044e0d5f697..c0ab87b0562 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @k\65yframes abc { from {} } | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/input.css:1:20 + | +1 | @k\65yframes abc { from {} } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/input.css:1:20 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug index 83673a48f3e..e56300a81e2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10\2cx } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:5 + | +1 | a { value: 10\2cx } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10\2cx } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:12 | 1 | a { value: 10\2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug index 3165db62e38..f2724e233a7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +0.1; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:5 + | +1 | a { width: +0.1; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +0.1; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:12 | 1 | a { width: +0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug index ebcba0fa6d2..bfe52c921a4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\, } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:5 + | +1 | a { value: x\, } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\, } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:12 | 1 | a { value: x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug index 83c5f844739..07b0b589584 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #1234 } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:5 + | +1 | a { color: #1234 } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #1234 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:12 | 1 | a { color: #1234 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug index ec6036a2265..a55e6e5e7f1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: white } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:5 + | +1 | a { color: white } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: white } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:12 | 1 | a { color: white } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug index 174a1e8d9ea..387e2f004f6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .0%; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:5 + | +1 | a { width: .0%; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:12 | 1 | a { width: .0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug index 218fa944b0c..f9f12cc2ac3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 1 | a:after { content: 'a\62 c' } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:11 + | +1 | a:after { content: 'a\62 c' } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:11 | @@ -106,7 +112,7 @@ error: Ident 1 | a:after { content: 'a\62 c' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:20 | 1 | a:after { content: 'a\62 c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug index c37d1517dfa..4238fec6f55 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbccef } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:5 + | +1 | a { color: #aabbccef } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbccef } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:12 | 1 | a { color: #aabbccef } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug index 5a1e0a7fa4c..a717ed58721 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.00%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:5 + | +1 | a { width: -.00%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.00%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:12 | 1 | a { width: -.00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug index 0b833dcb02e..23ac26c8603 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10x\2c } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:5 + | +1 | a { value: 10x\2c } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10x\2c } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:12 | 1 | a { value: 10x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug index 0330fbd5b59..51a77a0cb90 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(a\62c) } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:5 + | +1 | a { value: url(a\62c) } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(a\62c) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:12 | 1 | a { value: url(a\62c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug index c4d3739fcc1..2ddea311a42 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCCFF } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:5 + | +1 | a { color: #AABBCCFF } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCCFF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:12 | 1 | a { color: #AABBCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug index d20d8e5cb85..51169e0b43f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +0.1%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:5 + | +1 | a { width: +0.1%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +0.1%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:12 | 1 | a { width: +0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug index ddad245f1e9..8f6459d0a47 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .10; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:5 + | +1 | a { width: .10; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .10; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:12 | 1 | a { width: .10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/span.rust-debug index 38f766befd9..68d4e7a9e97 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes abc { \66rom {} } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/input.css:1:18 + | +1 | @keyframes abc { \66rom {} } + | ^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/input.css:1:18 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/span.rust-debug index 31505694439..78ea9f0c9c7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:19 + | +1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:19 | @@ -82,6 +88,12 @@ error: SimpleBlock 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:29 + | +1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:29 | @@ -100,7 +112,7 @@ error: Ident 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:36 | 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } @@ -112,6 +124,12 @@ error: Ident 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:42 + | +1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:42 | @@ -160,6 +178,12 @@ error: SimpleBlock 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:53 + | +1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:53 | @@ -178,7 +202,7 @@ error: Ident 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:60 | 1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug index 89554c35969..66c908bf0dc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\2c() } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:5 + | +1 | a { value: x\2c() } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\2c() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:12 | 1 | a { value: x\2c() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug index 4ce6ff6616f..79f1a1df496 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #abbbccff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:5 + | +1 | a { color: #abbbccff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #abbbccff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:12 | 1 | a { color: #abbbccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug index f82cc856423..9d678bb6906 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABCCCDD } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:5 + | +1 | a { color: #AABCCCDD } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABCCCDD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:12 | 1 | a { color: #AABCCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug index 5bb9d77cc31..dee1fc01da1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabccc } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:5 + | +1 | a { color: #aabccc } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabccc } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:12 | 1 | a { color: #aabccc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug index f10c2567e44..6a9d260a04b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\2c } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:5 + | +1 | a { value: x\2c } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\2c } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:12 | 1 | a { value: x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/span.rust-debug index 15fd9da6c1f..fbf2c55a2d7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes a\,c { \66rom {} } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css:1:19 + | +1 | @keyframes a\,c { \66rom {} } + | ^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css:1:19 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug index d0f40b46d55..f043a100066 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #\68 ash } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:5 + | +1 | a { value: #\68 ash } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #\68 ash } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:12 | 1 | a { value: #\68 ash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug index db083fad3a7..c1b615bd9ed 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | .selector { property: value\9; } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:13 + | +1 | .selector { property: value\9; } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:13 | @@ -82,7 +88,7 @@ error: Ident 1 | .selector { property: value\9; } | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:23 | 1 | .selector { property: value\9; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug index b0ad7706b35..b1ffa6533a9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #0h\61sh } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:5 + | +1 | a { value: #0h\61sh } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #0h\61sh } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:12 | 1 | a { value: #0h\61sh } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug index 5e1c0a53c09..79be95824c9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112234ff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:5 + | +1 | a { color: #112234ff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112234ff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:12 | 1 | a { color: #112234ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug index cc066c6c9c1..db90870e328 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ABBBCC } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:5 + | +1 | a { color: #ABBBCC } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ABBBCC } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:12 | 1 | a { color: #ABBBCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug index 770b3d2a7ca..bb770ac05a6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 'a\62 c' } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:5 + | +1 | a { value: 'a\62 c' } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 'a\62 c' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:12 | 1 | a { value: 'a\62 c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug index 873c87d679538902ed52bbe163071badf8a7bff5..f61c11924063db9a768d24b3980079be76293a6b 100644 GIT binary patch delta 44 pcmbO$xIt(`FDs{Wer`d2UTR*+dY0sxAc2^|0c diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug index 2b67b57e149..da9657304b1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\0 } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:5 + | +1 | a { value: x\0 } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\0 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:12 | 1 | a { value: x\0 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug index f9950ccf100..620fdbfcb25 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \2cx } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:5 + | +1 | a { value: \2cx } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \2cx } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:12 | 1 | a { value: \2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug index 94fddd9dc19..c06e6a4fcc9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbcc } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:5 + | +1 | a { color: #aabbcc } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbcc } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:12 | 1 | a { color: #aabbcc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug index 6da2f6e1e2d..fde34283df4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #122233 } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:5 + | +1 | a { color: #122233 } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #122233 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:12 | 1 | a { color: #122233 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug index 62f9158ee3f..3fcf60c20a8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug @@ -46,6 +46,12 @@ error: SimpleBlock 1 | @-moz-document url-prefix() { h1 { color: green } } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:31 + | +1 | @-moz-document url-prefix() { h1 { color: green } } + | ^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:31 | @@ -106,6 +112,12 @@ error: SimpleBlock 1 | @-moz-document url-prefix() { h1 { color: green } } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:36 + | +1 | @-moz-document url-prefix() { h1 { color: green } } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:36 | @@ -130,7 +142,7 @@ error: Ident 1 | @-moz-document url-prefix() { h1 { color: green } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:43 | 1 | @-moz-document url-prefix() { h1 { color: green } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug index 2242711741e..0cbf97e955c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\1 } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:5 + | +1 | a { value: x\1 } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\1 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:12 | 1 | a { value: x\1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/span.rust-debug index 88d8d8bf836..454d89846ba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/span.rust-debug @@ -28,6 +28,12 @@ error: SimpleBlock 1 | @page { color: red; @top-left {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:9 + | +1 | @page { color: red; @top-left {} } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:9 | @@ -46,7 +52,7 @@ error: Ident 1 | @page { color: red; @top-left {} } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:16 | 1 | @page { color: red; @top-left {} } @@ -58,6 +64,12 @@ error: Ident 1 | @page { color: red; @top-left {} } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:21 + | +1 | @page { color: red; @top-left {} } + | ^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:21 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug index 58fdc7ecfe7..52263605554 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbcd } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:5 + | +1 | a { color: #aabbcd } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbcd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:12 | 1 | a { color: #aabbcd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug index f30562fba64..eeee7ff44cb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #x\, } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:5 + | +1 | a { value: #x\, } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #x\, } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:12 | 1 | a { value: #x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug index d2267215afe..6ac09b2fa7e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.0; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:5 + | +1 | a { width: -.0; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:12 | 1 | a { width: -.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug index cf46d805929..8e06e039553 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\1' } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:5 + | +1 | a { value: '\1' } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\1' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:12 | 1 | a { value: '\1' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug index 70652432d8a..ea02d7704e8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: x\,() } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:5 + | +1 | a { value: x\,() } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: x\,() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:12 | 1 | a { value: x\,() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug index cd3a4153933..db1b9e26655 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | .decl { a: b; c: d } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:9 + | +1 | .decl { a: b; c: d } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:9 | @@ -82,7 +88,7 @@ error: Ident 1 | .decl { a: b; c: d } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:12 | 1 | .decl { a: b; c: d } @@ -94,6 +100,12 @@ error: Ident 1 | .decl { a: b; c: d } | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:15 + | +1 | .decl { a: b; c: d } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:15 | @@ -118,7 +130,7 @@ error: Ident 1 | .decl { a: b; c: d } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:18 | 1 | .decl { a: b; c: d } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug index 6614de0620a..577fba0d0a4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #h\61sh } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:5 + | +1 | a { value: #h\61sh } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #h\61sh } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:12 | 1 | a { value: #h\61sh } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug index cfed4b12d3c..5a5d421f655 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -0.1%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/input.css:1:5 + | +1 | a { width: -0.1%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -0.1%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/input.css:1:12 | 1 | a { width: -0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/span.rust-debug index b320329d48e..cb0d64fdde9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes a\2c c { \66rom {} } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/input.css:1:21 + | +1 | @keyframes a\2c c { \66rom {} } + | ^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/JRVJhNKhBZ5OsLVFkRfqxw/input.css:1:21 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/span.rust-debug index 721fecd82ec..f09e8345860 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name { from { color: red } } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css:1:19 + | +1 | @keyframes name { from { color: red } } + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes name { from { color: red } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css:1:26 + | +1 | @keyframes name { from { color: red } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css:1:26 | @@ -76,7 +88,7 @@ error: Ident 1 | @keyframes name { from { color: red } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css:1:33 | 1 | @keyframes name { from { color: red } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/span.rust-debug index 777298ea5a7..86f4cae4307 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/span.rust-debug @@ -56,6 +56,14 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:1:10 + | +1 | @unknown{ + | __________^ +2 | | a: b; + | |_ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:1:10 @@ -65,36 +73,74 @@ error: WhiteSpace { value: Atom(' 2 | | a: b; | |_ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:1 + | +2 | a: b; + | ^ + error: Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:1 | 2 | a: b; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:2 + | +2 | a: b; + | ^ + error: Colon --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:2 | 2 | a: b; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:3 + | +2 | a: b; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:3 | 2 | a: b; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:4 + | +2 | a: b; + | ^ + error: Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:4 | 2 | a: b; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:5 + | +2 | a: b; + | ^ + error: Semi --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:5 | 2 | a: b; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:6 + | +2 | a: b; + | ______^ +3 | | c: d; + | |_ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:6 @@ -104,36 +150,74 @@ error: WhiteSpace { value: Atom(' 3 | | c: d; | |_ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:1 + | +3 | c: d; + | ^ + error: Ident { value: Atom('c' type=inline), raw: Atom('c' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:1 | 3 | c: d; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:2 + | +3 | c: d; + | ^ + error: Colon --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:2 | 3 | c: d; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:3 + | +3 | c: d; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:3 | 3 | c: d; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:4 + | +3 | c: d; + | ^ + error: Ident { value: Atom('d' type=inline), raw: Atom('d' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:4 | 3 | c: d; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:5 + | +3 | c: d; + | ^ + error: Semi --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:5 | 3 | c: d; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:6 + | +3 | c: d; + | ______^ +4 | | } + | |_ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:3:6 diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug index 66065f4fbab..7d32f8037f5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABCCC } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/input.css:1:5 + | +1 | a { color: #AABCCC } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABCCC } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/input.css:1:12 | 1 | a { color: #AABCCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug index a06ab64560e..ec0600ea19b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbccdd } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/input.css:1:5 + | +1 | a { color: #aabbccdd } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbccdd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/input.css:1:12 | 1 | a { color: #aabbccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug index 47f4270673f..8684304a682 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10\32x } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/input.css:1:5 + | +1 | a { value: 10\32x } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10\32x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/input.css:1:12 | 1 | a { value: 10\32x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug index c0c2563c91d..8e5b78c6147 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #abbbccdd } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/input.css:1:5 + | +1 | a { color: #abbbccdd } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #abbbccdd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/input.css:1:12 | 1 | a { color: #abbbccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug index b02800d724e..dba13991582 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10\65m } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/input.css:1:5 + | +1 | a { value: 10\65m } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10\65m } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/input.css:1:12 | 1 | a { value: 10\65m } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug index 4cbb4b20741..bc8b1359f5a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.00; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/input.css:1:5 + | +1 | a { width: -.00; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.00; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/input.css:1:12 | 1 | a { width: -.00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug index 89c1317e4e3..4e315330cd4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\0' } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/input.css:1:5 + | +1 | a { value: '\0' } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\0' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/input.css:1:12 | 1 | a { value: '\0' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug index 91e0552da4b..03f55b79339 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.00%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/input.css:1:5 + | +1 | a { width: +.00%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.00%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/input.css:1:12 | 1 | a { width: +.00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug index ade6199ae5b..615a387a086 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug @@ -87,6 +87,14 @@ error: SimpleBlock 2 | | b' } | |____^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/input.css:1:11 + | +1 | a:after { content: 'a\ + | ___________^ +2 | | b' } + | |__^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/input.css:1:11 | @@ -115,7 +123,7 @@ error: Ident 1 | a:after { content: 'a\ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/input.css:1:20 | 1 | a:after { content: 'a\ diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/span.rust-debug index 406c5923f14..59a4faec584 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:19 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:27 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:27 | @@ -82,6 +94,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:32 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:32 | @@ -100,7 +118,7 @@ error: Ident 1 | @keyframes test { from {} to { color: red } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/OFqVy3cBzYnrIy6uze5Nuw/input.css:1:39 | 1 | @keyframes test { from {} to { color: red } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/span.rust-debug index c06402a6501..32608218a0a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes \61 bc { from {} } | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/input.css:1:21 + | +1 | @keyframes \61 bc { from {} } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/OHdIPr6lNfq9lBs5RMtbrQ/input.css:1:21 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug index 6f6656700b7..e50389e7313 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCCDE } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/input.css:1:5 + | +1 | a { color: #AABBCCDE } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCCDE } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/input.css:1:12 | 1 | a { color: #AABBCCDE } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug index 26a0629a306..79236a49532 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.10; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/input.css:1:5 + | +1 | a { width: -.10; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.10; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/input.css:1:12 | 1 | a { width: -.10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug index 7b0573d1d00..339d34b16b4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { border-top-left-radius: 0 0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css:1:5 + | +1 | a { border-top-left-radius: 0 0 } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { border-top-left-radius: 0 0 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css:1:29 | 1 | a { border-top-left-radius: 0 0 } @@ -100,7 +106,7 @@ error: Integer 1 | a { border-top-left-radius: 0 0 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css:1:31 | 1 | a { border-top-left-radius: 0 0 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug index 566ac7f4406..860bc83ba05 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 1 | a:after { content: '\invalid' } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/input.css:1:11 + | +1 | a:after { content: '\invalid' } + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/input.css:1:11 | @@ -106,7 +112,7 @@ error: Ident 1 | a:after { content: '\invalid' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/input.css:1:20 | 1 | a:after { content: '\invalid' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug index 0edc02d19ff..9345387b09b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCCEF } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/input.css:1:5 + | +1 | a { color: #AABBCCEF } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCCEF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/input.css:1:12 | 1 | a { color: #AABBCCEF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug index 7acc7a4ce7c..3848d31291e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #123f } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/input.css:1:5 + | +1 | a { color: #123f } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #123f } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/input.css:1:12 | 1 | a { color: #123f } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug index 23cddc064e5..d262308b734 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:5 + | +1 | a { box-shadow: inset 0px 0px 0px 0px black } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:17 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } @@ -100,7 +106,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:23 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } @@ -130,7 +136,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:27 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } @@ -160,7 +166,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:31 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } @@ -190,7 +196,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:35 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } @@ -220,7 +226,7 @@ error: Ident 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:39 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug index d754b33ed91..f639b6069d2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | @document url("https://www.example.com/") { h1 { color: green } } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:45 + | +1 | @document url("https://www.example.com/") { h1 { color: green } } + | ^^^^^^^^^^^^^^^^^^^ + error: Rule --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:45 | @@ -118,6 +124,12 @@ error: SimpleBlock 1 | @document url("https://www.example.com/") { h1 { color: green } } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:50 + | +1 | @document url("https://www.example.com/") { h1 { color: green } } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:50 | @@ -142,7 +154,7 @@ error: Ident 1 | @document url("https://www.example.com/") { h1 { color: green } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:57 | 1 | @document url("https://www.example.com/") { h1 { color: green } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug index d137ea72709..fc4cd9117ea 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ABCF } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/input.css:1:5 + | +1 | a { color: #ABCF } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ABCF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/input.css:1:12 | 1 | a { color: #ABCF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/span.rust-debug index a56be7da5b7..e21e19593f0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/span.rust-debug @@ -34,12 +34,24 @@ error: Ident 1 | @unknown x; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/input.css:1:9 + | +1 | @unknown x; + | ^ + error: WhiteSpace { value: Atom(' ' type=inline) } --> $DIR/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/input.css:1:9 | 1 | @unknown x; | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/input.css:1:10 + | +1 | @unknown x; + | ^ + error: Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } --> $DIR/tests/fixture/esbuild/misc/SnMCumHJazvlgOXgmxJ9Jg/input.css:1:10 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug index f7277fc128f..6b686752fc9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112333ff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/input.css:1:5 + | +1 | a { color: #112333ff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112333ff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/input.css:1:12 | 1 | a { color: #112333ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug index 6e4e81dc4d4..d39e6c3aae6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbccde } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/input.css:1:5 + | +1 | a { color: #aabbccde } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbccde } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/input.css:1:12 | 1 | a { color: #aabbccde } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/span.rust-debug index b1fff1afc2f..4031e533222 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:17 + | +1 | @keyframes name{from{color:red}to{color:blue}} + | ^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:17 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:22 + | +1 | @keyframes name{from{color:red}to{color:blue}} + | ^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:22 | @@ -76,7 +88,7 @@ error: Ident 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:28 | 1 | @keyframes name{from{color:red}to{color:blue}} @@ -88,6 +100,12 @@ error: Ident 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:32 + | +1 | @keyframes name{from{color:red}to{color:blue}} + | ^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:32 | @@ -112,6 +130,12 @@ error: SimpleBlock 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:35 + | +1 | @keyframes name{from{color:red}to{color:blue}} + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:35 | @@ -130,7 +154,7 @@ error: Ident 1 | @keyframes name{from{color:red}to{color:blue}} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/input.css:1:41 | 1 | @keyframes name{from{color:red}to{color:blue}} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug index cb65a8c2224..77e7f685510 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \,x } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/input.css:1:5 + | +1 | a { value: \,x } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \,x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/input.css:1:12 | 1 | a { value: \,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug index d07e432b304..027f7e57c2a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCD } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/input.css:1:5 + | +1 | a { color: #AABBCD } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/input.css:1:12 | 1 | a { color: #AABBCD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug index dfd73b3fc9b..5aaa312d2b8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(a\62 c) } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/input.css:1:5 + | +1 | a { value: url(a\62 c) } + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(a\62 c) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/input.css:1:12 | 1 | a { value: url(a\62 c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/span.rust-debug index 5118a421879..d24094f937c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 2 | @page :first { margin: 0 } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:2:18 + | +2 | @page :first { margin: 0 } + | ^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:2:18 | @@ -76,7 +82,7 @@ error: Ident 2 | @page :first { margin: 0 } | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:2:26 | 2 | @page :first { margin: 0 } @@ -140,6 +146,12 @@ error: SimpleBlock 20 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:4:4 + | +4 | @top-left-corner { content: 'tlc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:4:4 | @@ -164,6 +176,12 @@ error: SimpleBlock 4 | @top-left-corner { content: 'tlc' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:4:23 + | +4 | @top-left-corner { content: 'tlc' } + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:4:23 | @@ -182,7 +200,7 @@ error: Ident 4 | @top-left-corner { content: 'tlc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:4:32 | 4 | @top-left-corner { content: 'tlc' } @@ -194,6 +212,12 @@ error: Str 4 | @top-left-corner { content: 'tlc' } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:5:4 + | +5 | @top-left { content: 'tl' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:5:4 | @@ -218,6 +242,12 @@ error: SimpleBlock 5 | @top-left { content: 'tl' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:5:16 + | +5 | @top-left { content: 'tl' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:5:16 | @@ -236,7 +266,7 @@ error: Ident 5 | @top-left { content: 'tl' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:5:25 | 5 | @top-left { content: 'tl' } @@ -248,6 +278,12 @@ error: Str 5 | @top-left { content: 'tl' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:6:4 + | +6 | @top-center { content: 'tc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:6:4 | @@ -272,6 +308,12 @@ error: SimpleBlock 6 | @top-center { content: 'tc' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:6:18 + | +6 | @top-center { content: 'tc' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:6:18 | @@ -290,7 +332,7 @@ error: Ident 6 | @top-center { content: 'tc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:6:27 | 6 | @top-center { content: 'tc' } @@ -302,6 +344,12 @@ error: Str 6 | @top-center { content: 'tc' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:7:4 + | +7 | @top-right { content: 'tr' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:7:4 | @@ -326,6 +374,12 @@ error: SimpleBlock 7 | @top-right { content: 'tr' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:7:17 + | +7 | @top-right { content: 'tr' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:7:17 | @@ -344,7 +398,7 @@ error: Ident 7 | @top-right { content: 'tr' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:7:26 | 7 | @top-right { content: 'tr' } @@ -356,6 +410,12 @@ error: Str 7 | @top-right { content: 'tr' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:8:4 + | +8 | @top-right-corner { content: 'trc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:8:4 | @@ -380,6 +440,12 @@ error: SimpleBlock 8 | @top-right-corner { content: 'trc' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:8:24 + | +8 | @top-right-corner { content: 'trc' } + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:8:24 | @@ -398,7 +464,7 @@ error: Ident 8 | @top-right-corner { content: 'trc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:8:33 | 8 | @top-right-corner { content: 'trc' } @@ -410,6 +476,12 @@ error: Str 8 | @top-right-corner { content: 'trc' } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:9:4 + | +9 | @bottom-left-corner { content: 'blc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:9:4 | @@ -434,6 +506,12 @@ error: SimpleBlock 9 | @bottom-left-corner { content: 'blc' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:9:26 + | +9 | @bottom-left-corner { content: 'blc' } + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:9:26 | @@ -452,7 +530,7 @@ error: Ident 9 | @bottom-left-corner { content: 'blc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:9:35 | 9 | @bottom-left-corner { content: 'blc' } @@ -464,6 +542,12 @@ error: Str 9 | @bottom-left-corner { content: 'blc' } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:10:4 + | +10 | @bottom-left { content: 'bl' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:10:4 | @@ -488,6 +572,12 @@ error: SimpleBlock 10 | @bottom-left { content: 'bl' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:10:19 + | +10 | @bottom-left { content: 'bl' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:10:19 | @@ -506,7 +596,7 @@ error: Ident 10 | @bottom-left { content: 'bl' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:10:28 | 10 | @bottom-left { content: 'bl' } @@ -518,6 +608,12 @@ error: Str 10 | @bottom-left { content: 'bl' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:11:4 + | +11 | @bottom-center { content: 'bc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:11:4 | @@ -542,6 +638,12 @@ error: SimpleBlock 11 | @bottom-center { content: 'bc' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:11:21 + | +11 | @bottom-center { content: 'bc' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:11:21 | @@ -560,7 +662,7 @@ error: Ident 11 | @bottom-center { content: 'bc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:11:30 | 11 | @bottom-center { content: 'bc' } @@ -572,6 +674,12 @@ error: Str 11 | @bottom-center { content: 'bc' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:12:4 + | +12 | @bottom-right { content: 'br' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:12:4 | @@ -596,6 +704,12 @@ error: SimpleBlock 12 | @bottom-right { content: 'br' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:12:20 + | +12 | @bottom-right { content: 'br' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:12:20 | @@ -614,7 +728,7 @@ error: Ident 12 | @bottom-right { content: 'br' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:12:29 | 12 | @bottom-right { content: 'br' } @@ -626,6 +740,12 @@ error: Str 12 | @bottom-right { content: 'br' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:13:4 + | +13 | @bottom-right-corner { content: 'brc' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:13:4 | @@ -650,6 +770,12 @@ error: SimpleBlock 13 | @bottom-right-corner { content: 'brc' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:13:27 + | +13 | @bottom-right-corner { content: 'brc' } + | ^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:13:27 | @@ -668,7 +794,7 @@ error: Ident 13 | @bottom-right-corner { content: 'brc' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:13:36 | 13 | @bottom-right-corner { content: 'brc' } @@ -680,6 +806,12 @@ error: Str 13 | @bottom-right-corner { content: 'brc' } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:14:4 + | +14 | @left-top { content: 'lt' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:14:4 | @@ -704,6 +836,12 @@ error: SimpleBlock 14 | @left-top { content: 'lt' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:14:16 + | +14 | @left-top { content: 'lt' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:14:16 | @@ -722,7 +860,7 @@ error: Ident 14 | @left-top { content: 'lt' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:14:25 | 14 | @left-top { content: 'lt' } @@ -734,6 +872,12 @@ error: Str 14 | @left-top { content: 'lt' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:15:4 + | +15 | @left-middle { content: 'lm' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:15:4 | @@ -758,6 +902,12 @@ error: SimpleBlock 15 | @left-middle { content: 'lm' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:15:19 + | +15 | @left-middle { content: 'lm' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:15:19 | @@ -776,7 +926,7 @@ error: Ident 15 | @left-middle { content: 'lm' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:15:28 | 15 | @left-middle { content: 'lm' } @@ -788,6 +938,12 @@ error: Str 15 | @left-middle { content: 'lm' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:16:4 + | +16 | @left-bottom { content: 'lb' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:16:4 | @@ -812,6 +968,12 @@ error: SimpleBlock 16 | @left-bottom { content: 'lb' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:16:19 + | +16 | @left-bottom { content: 'lb' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:16:19 | @@ -830,7 +992,7 @@ error: Ident 16 | @left-bottom { content: 'lb' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:16:28 | 16 | @left-bottom { content: 'lb' } @@ -842,6 +1004,12 @@ error: Str 16 | @left-bottom { content: 'lb' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:17:4 + | +17 | @right-top { content: 'rt' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:17:4 | @@ -866,6 +1034,12 @@ error: SimpleBlock 17 | @right-top { content: 'rt' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:17:17 + | +17 | @right-top { content: 'rt' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:17:17 | @@ -884,7 +1058,7 @@ error: Ident 17 | @right-top { content: 'rt' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:17:26 | 17 | @right-top { content: 'rt' } @@ -896,6 +1070,12 @@ error: Str 17 | @right-top { content: 'rt' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:18:4 + | +18 | @right-middle { content: 'rm' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:18:4 | @@ -920,6 +1100,12 @@ error: SimpleBlock 18 | @right-middle { content: 'rm' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:18:20 + | +18 | @right-middle { content: 'rm' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:18:20 | @@ -938,7 +1124,7 @@ error: Ident 18 | @right-middle { content: 'rm' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:18:29 | 18 | @right-middle { content: 'rm' } @@ -950,6 +1136,12 @@ error: Str 18 | @right-middle { content: 'rm' } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:19:4 + | +19 | @right-bottom { content: 'rb' } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:19:4 | @@ -974,6 +1166,12 @@ error: SimpleBlock 19 | @right-bottom { content: 'rb' } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:19:20 + | +19 | @right-bottom { content: 'rb' } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:19:20 | @@ -992,7 +1190,7 @@ error: Ident 19 | @right-bottom { content: 'rb' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/VOQJsreB5pi_yJysozWgcA/input.css:19:29 | 19 | @right-bottom { content: 'rb' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/span.rust-debug index bebb50ecce7..a8e0cbd34df 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes a\62 c { from {} } | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/input.css:1:21 + | +1 | @keyframes a\62 c { from {} } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/Vx6S11kYP0h0sx1VehL-tw/input.css:1:21 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug index 42d96d795e9..8f24bb56b3c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCCDD } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/input.css:1:5 + | +1 | a { color: #AABBCCDD } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCCDD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/input.css:1:12 | 1 | a { color: #AABBCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug index bbf605cf4a7..ad5eb7e2d7a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:5 + | +1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:20 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } @@ -100,7 +106,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:22 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } @@ -112,7 +118,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:24 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } @@ -124,7 +130,7 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:26 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } @@ -136,6 +142,12 @@ error: Integer 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:29 + | +1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:29 | @@ -160,7 +172,7 @@ error: Ident 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:54 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug index 8696d814368..7746d1c6560 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \,x() } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/input.css:1:5 + | +1 | a { value: \,x() } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \,x() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/input.css:1:12 | 1 | a { value: \,x() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug index f81e45cf3ca..a535e18ce2e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +0.0; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/input.css:1:5 + | +1 | a { width: +0.0; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +0.0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/input.css:1:12 | 1 | a { width: +0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/span.rust-debug index e9a87159867..5f23956ea45 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes test { from { color: red } to {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:19 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes test { from { color: red } to {} } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:26 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:26 | @@ -76,7 +88,7 @@ error: Ident 1 | @keyframes test { from { color: red } to {} } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:33 | 1 | @keyframes test { from { color: red } to {} } @@ -88,6 +100,12 @@ error: Ident 1 | @keyframes test { from { color: red } to {} } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:39 + | +1 | @keyframes test { from { color: red } to {} } + | ^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/X0UTnZK8bQhMRs3DGoqFAw/input.css:1:39 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug index 2c106ad4eff..c87060b514a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112234 } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/input.css:1:5 + | +1 | a { color: #112234 } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112234 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/input.css:1:12 | 1 | a { color: #112234 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug index 192f58ca178..56b81361f69 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '' } | ^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/input.css:1:5 + | +1 | a { value: '' } + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/input.css:1:12 | 1 | a { value: '' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug index 974cd2b20d2..e4998215683 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #\,x } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/input.css:1:5 + | +1 | a { value: #\,x } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #\,x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/input.css:1:12 | 1 | a { value: #\,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug index 7dd521c5e62..74196fb4024 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { padding: 0 1 0 1 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:5 + | +1 | a { padding: 0 1 0 1 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { padding: 0 1 0 1 } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:14 | 1 | a { padding: 0 1 0 1 } @@ -100,7 +106,7 @@ error: Integer 1 | a { padding: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:16 | 1 | a { padding: 0 1 0 1 } @@ -112,7 +118,7 @@ error: Integer 1 | a { padding: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:18 | 1 | a { padding: 0 1 0 1 } @@ -124,7 +130,7 @@ error: Integer 1 | a { padding: 0 1 0 1 } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:20 | 1 | a { padding: 0 1 0 1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug index 328f72418dc..f85d47213d8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCDFF } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/input.css:1:5 + | +1 | a { color: #AABBCDFF } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCDFF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/input.css:1:12 | 1 | a { color: #AABBCDFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug index 5ceeccbfcca..20b09c0d5a2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #f00 } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/input.css:1:5 + | +1 | a { color: #f00 } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #f00 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/input.css:1:12 | 1 | a { color: #f00 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug index 87a7eab7b78..5e00b50f680 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABCCCFF } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/input.css:1:5 + | +1 | a { color: #AABCCCFF } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABCCCFF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/input.css:1:12 | 1 | a { color: #AABCCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug index 175cf69f062..d24ea3a3774 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCDDD } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/input.css:1:5 + | +1 | a { color: #AABBCDDD } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCDDD } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/input.css:1:12 | 1 | a { color: #AABBCDDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/span.rust-debug index 29ab2d4030b..7114af3ce02 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:19 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:27 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:27 | @@ -82,6 +94,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to { color: red } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:32 + | +1 | @keyframes test { from {} to { color: red } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:32 | @@ -100,7 +118,7 @@ error: Ident 1 | @keyframes test { from {} to { color: red } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css:1:39 | 1 | @keyframes test { from {} to { color: red } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/span.rust-debug index dcc35d2e35a..b1ee139690d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/span.rust-debug @@ -28,6 +28,12 @@ error: SimpleBlock 1 | @viewport { width: 100vw } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/input.css:1:13 + | +1 | @viewport { width: 100vw } + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/input.css:1:13 | @@ -46,7 +52,7 @@ error: Ident 1 | @viewport { width: 100vw } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/input.css:1:20 | 1 | @viewport { width: 100vw } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug index e90a298301d..29c748729f4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | .decl { a: b; c: d; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:9 + | +1 | .decl { a: b; c: d; } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:9 | @@ -82,7 +88,7 @@ error: Ident 1 | .decl { a: b; c: d; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:12 | 1 | .decl { a: b; c: d; } @@ -94,6 +100,12 @@ error: Ident 1 | .decl { a: b; c: d; } | ^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:15 + | +1 | .decl { a: b; c: d; } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:15 | @@ -118,7 +130,7 @@ error: Ident 1 | .decl { a: b; c: d; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:18 | 1 | .decl { a: b; c: d; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug index fe60d5c0a43..c670cb0873d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\61 bc' } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/input.css:1:5 + | +1 | a { value: '\61 bc' } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\61 bc' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/input.css:1:12 | 1 | a { value: '\61 bc' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug index a348d81aa5f..0642a877bd0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ff0000ff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/input.css:1:5 + | +1 | a { color: #ff0000ff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ff0000ff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/input.css:1:12 | 1 | a { color: #ff0000ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug index cee554ee1e4..2ef8eef5b5e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbccff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/input.css:1:5 + | +1 | a { color: #aabbccff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbccff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/input.css:1:12 | 1 | a { color: #aabbccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug index f132bc50126..363ec105085 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | .decl { a: b; } | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/input.css:1:9 + | +1 | .decl { a: b; } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/input.css:1:9 | @@ -82,7 +88,7 @@ error: Ident 1 | .decl { a: b; } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/input.css:1:12 | 1 | .decl { a: b; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/span.rust-debug index 371f57e1493..5c7d99053f8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/span.rust-debug @@ -28,6 +28,12 @@ error: SimpleBlock 1 | @page { color: red; @top-left {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/input.css:1:9 + | +1 | @page { color: red; @top-left {} } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/input.css:1:9 | @@ -46,7 +52,7 @@ error: Ident 1 | @page { color: red; @top-left {} } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/input.css:1:16 | 1 | @page { color: red; @top-left {} } @@ -58,6 +64,12 @@ error: Ident 1 | @page { color: red; @top-left {} } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/input.css:1:21 + | +1 | @page { color: red; @top-left {} } + | ^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/input.css:1:21 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug index 6c0f3f62555..e7c0b9d9b15 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug @@ -58,6 +58,12 @@ error: SimpleBlock 1 | .decl { a: b } | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/input.css:1:9 + | +1 | .decl { a: b } + | ^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/input.css:1:9 | @@ -82,7 +88,7 @@ error: Ident 1 | .decl { a: b } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/input.css:1:12 | 1 | .decl { a: b } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug index 3bc7425e8bb..1271a7fc0d7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #\68ash } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/input.css:1:5 + | +1 | a { value: #\68ash } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #\68ash } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/input.css:1:12 | 1 | a { value: #\68ash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug index 16c1b8b3716..e3358e1c033 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: f\6e() } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css:1:5 + | +1 | a { value: f\6e() } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: f\6e() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css:1:12 | 1 | a { value: f\6e() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug index 677c3bd96c3..5f85b0f3c1f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 1 | a:after { content: '\1010101' } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/input.css:1:11 + | +1 | a:after { content: '\1010101' } + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/input.css:1:11 | @@ -106,7 +112,7 @@ error: Ident 1 | a:after { content: '\1010101' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/input.css:1:20 | 1 | a:after { content: '\1010101' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug index 7458fc10edb..3dab0d4c58b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.0%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/input.css:1:5 + | +1 | a { width: +.0%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/input.css:1:12 | 1 | a { width: +.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug index ad352f8c16d..fdc417d6f66 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +0.0%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/input.css:1:5 + | +1 | a { width: +0.0%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +0.0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/input.css:1:12 | 1 | a { width: +0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug index 3d886e6c71e..bbcbb947156 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: red; color: green; color: red } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:5 + | +1 | a { color: red; color: green; color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: red; color: green; color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:12 | 1 | a { color: red; color: green; color: red } @@ -100,6 +106,12 @@ error: Ident 1 | a { color: red; color: green; color: red } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:17 + | +1 | a { color: red; color: green; color: red } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:17 | @@ -124,7 +136,7 @@ error: Ident 1 | a { color: red; color: green; color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:24 | 1 | a { color: red; color: green; color: red } @@ -136,6 +148,12 @@ error: Ident 1 | a { color: red; color: green; color: red } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:31 + | +1 | a { color: red; color: green; color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:31 | @@ -160,7 +178,7 @@ error: Ident 1 | a { color: red; color: green; color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:38 | 1 | a { color: red; color: green; color: red } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug index 5c602becf90..44759a8688a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbcddd } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/input.css:1:5 + | +1 | a { color: #aabbcddd } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbcddd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/input.css:1:12 | 1 | a { color: #aabbcddd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug index e18fe701814..11960484799 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug @@ -82,6 +82,12 @@ error: SimpleBlock 1 | a:after { content: 'a\ b' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/input.css:1:11 + | +1 | a:after { content: 'a\ b' } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/input.css:1:11 | @@ -106,7 +112,7 @@ error: Ident 1 | a:after { content: 'a\ b' } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/input.css:1:20 | 1 | a:after { content: 'a\ b' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug index 9b7b01057fd..e6504a112fe 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(\,) } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/input.css:1:5 + | +1 | a { value: url(\,) } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(\,) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/input.css:1:12 | 1 | a { value: url(\,) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug index a82ebd23c3a..f832cb4cffc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:5 + | +1 | a { color: red } a { color: green } a { color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: red } a { color: green } a { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:12 | 1 | a { color: red } a { color: green } a { color: red } @@ -160,6 +166,12 @@ error: SimpleBlock 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:22 + | +1 | a { color: red } a { color: green } a { color: red } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:22 | @@ -184,7 +196,7 @@ error: Ident 1 | a { color: red } a { color: green } a { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:29 | 1 | a { color: red } a { color: green } a { color: red } @@ -256,6 +268,12 @@ error: SimpleBlock 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:41 + | +1 | a { color: red } a { color: green } a { color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:41 | @@ -280,7 +298,7 @@ error: Ident 1 | a { color: red } a { color: green } a { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:48 | 1 | a { color: red } a { color: green } a { color: red } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug index 97d6c5e90bf..0d6d9a89aad 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .00%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/input.css:1:5 + | +1 | a { width: .00%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .00%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/input.css:1:12 | 1 | a { width: .00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug index af309eb8819..51ce50d4a21 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #12223344 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/input.css:1:5 + | +1 | a { color: #12223344 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #12223344 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/input.css:1:12 | 1 | a { color: #12223344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug index 915a6e22ecb..5fa0f0ac079 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\61bc' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/input.css:1:5 + | +1 | a { value: '\61bc' } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\61bc' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/input.css:1:12 | 1 | a { value: '\61bc' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug index 8e668f741ad..a89f272a204 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.0; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/input.css:1:5 + | +1 | a { width: +.0; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/input.css:1:12 | 1 | a { width: +.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug index 3c66146221a..dc0cf174e01 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #\2cx } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/input.css:1:5 + | +1 | a { value: #\2cx } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #\2cx } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/input.css:1:12 | 1 | a { value: #\2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug index aa4bfa40f6a..18735575494 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #11223345 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/input.css:1:5 + | +1 | a { color: #11223345 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #11223345 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/input.css:1:12 | 1 | a { color: #11223345 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug index 110c067b1d1..a61a7832808 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(\2c) } | ^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/input.css:1:5 + | +1 | a { value: url(\2c) } + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(\2c) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/input.css:1:12 | 1 | a { value: url(\2c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug index ef6f7df7c57..f418a1745ce 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #122233ff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/input.css:1:5 + | +1 | a { color: #122233ff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #122233ff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/input.css:1:12 | 1 | a { color: #122233ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug index 63cd6df4211..b7bba1d0382 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(\61 bc) } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/input.css:1:5 + | +1 | a { value: url(\61 bc) } + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(\61 bc) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/input.css:1:12 | 1 | a { value: url(\61 bc) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug index 5d3a0e5f550..a378222fe09 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { margin: 0 1 0px 1px } | ^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:5 + | +1 | a { margin: 0 1 0px 1px } + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { margin: 0 1 0px 1px } | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:13 | 1 | a { margin: 0 1 0px 1px } @@ -100,7 +106,7 @@ error: Integer 1 | a { margin: 0 1 0px 1px } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:15 | 1 | a { margin: 0 1 0px 1px } @@ -112,7 +118,7 @@ error: Integer 1 | a { margin: 0 1 0px 1px } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:17 | 1 | a { margin: 0 1 0px 1px } @@ -142,7 +148,7 @@ error: Ident 1 | a { margin: 0 1 0px 1px } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:21 | 1 | a { margin: 0 1 0px 1px } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug index 8b8ea5aced9..4c74992a22f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: #x\2c } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/input.css:1:5 + | +1 | a { value: #x\2c } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: #x\2c } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/input.css:1:12 | 1 | a { value: #x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug index b57725e177e..991aeea0669 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #11233344 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/input.css:1:5 + | +1 | a { color: #11233344 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #11233344 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/input.css:1:12 | 1 | a { color: #11233344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug index 326f1b11f1d..458b5c586f2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112233 } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/input.css:1:5 + | +1 | a { color: #112233 } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112233 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/input.css:1:12 | 1 | a { color: #112233 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug index f303dfbb014..df8c50cf25b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabcccff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/input.css:1:5 + | +1 | a { color: #aabcccff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabcccff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/input.css:1:12 | 1 | a { color: #aabcccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug index f3d0a51f2dd..41bea231ea0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: 0.1; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/input.css:1:5 + | +1 | a { width: 0.1; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: 0.1; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/input.css:1:12 | 1 | a { width: 0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/span.rust-debug index 55fe127bd29..2df64515747 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:19 + | +1 | @keyframes name { from { color: red } to { color: blue } } + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:26 + | +1 | @keyframes name { from { color: red } to { color: blue } } + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:26 | @@ -76,7 +88,7 @@ error: Ident 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:33 | 1 | @keyframes name { from { color: red } to { color: blue } } @@ -88,6 +100,12 @@ error: Ident 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:39 + | +1 | @keyframes name { from { color: red } to { color: blue } } + | ^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:39 | @@ -112,6 +130,12 @@ error: SimpleBlock 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:44 + | +1 | @keyframes name { from { color: red } to { color: blue } } + | ^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:44 | @@ -130,7 +154,7 @@ error: Ident 1 | @keyframes name { from { color: red } to { color: blue } } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/jbIIxHeXTPO0PtiubVziHQ/input.css:1:51 | 1 | @keyframes name { from { color: red } to { color: blue } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug index 4cff288557d..2e4a501c9b4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \69dent } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/input.css:1:5 + | +1 | a { value: \69dent } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \69dent } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/input.css:1:12 | 1 | a { value: \69dent } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/span.rust-debug index 12d9780b5b3..de61d312905 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/span.rust-debug @@ -28,6 +28,12 @@ error: SimpleBlock 1 | @page { @top-left {} } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/input.css:1:9 + | +1 | @page { @top-left {} } + | ^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/input.css:1:9 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/span.rust-debug index a0edf2c0986..2a4f50d48fa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to {} } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/input.css:1:19 + | +1 | @keyframes test { from {} to {} } + | ^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/input.css:1:19 | @@ -58,6 +64,12 @@ error: SimpleBlock 1 | @keyframes test { from {} to {} } | ^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/input.css:1:27 + | +1 | @keyframes test { from {} to {} } + | ^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/lS8DPMFU-dQY4SnMMBW4Aw/input.css:1:27 | diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug index 3854bb2e2a6..a75a63f9465 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112233ef } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/input.css:1:5 + | +1 | a { color: #112233ef } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112233ef } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/input.css:1:12 | 1 | a { color: #112233ef } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug index 9390f1e731a..a69ad4a231a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: url(\61bc) } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/input.css:1:5 + | +1 | a { value: url(\61bc) } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: url(\61bc) } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/input.css:1:12 | 1 | a { value: url(\61bc) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug index be0761731fe..00610ad7e9f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\,' } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/input.css:1:5 + | +1 | a { value: '\,' } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\,' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/input.css:1:12 | 1 | a { value: '\,' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug index aea471ff2a3..f7d9a22747c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #abcd } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/input.css:1:5 + | +1 | a { color: #abcd } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #abcd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/input.css:1:12 | 1 | a { color: #abcd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug index 6653a297b76..f109b28b2fd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #f00f } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/input.css:1:5 + | +1 | a { color: #f00f } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #f00f } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/input.css:1:12 | 1 | a { color: #f00f } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug index 13d57f2fbd9..348bdcd2418 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabcccdd } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/input.css:1:5 + | +1 | a { color: #aabcccdd } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabcccdd } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/input.css:1:12 | 1 | a { color: #aabcccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug index aa2c25540be3c42418f2b1c4187a5d04df50e280..e125c6af385020414f59c6c5c40a74240552224c 100644 GIT binary patch delta 60 zcmdlYcv5J?99CZE{M>^4ywtpsu*96w$%>3#li#zNZl1#`$%G;0J-LlTZ?X|b69A|K B6>0zg delta 29 lcmX>pv_){k9M;VmY?4eYVTn1VlNA}gCrfkcO+L=i1OSl02~z+7 diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug index 3980835f7b7..b61e53b5b1e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -0.0%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/input.css:1:5 + | +1 | a { width: -0.0%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -0.0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/input.css:1:12 | 1 | a { width: -0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug index a79144f5a99..8dd50a1c3f1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.00; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/input.css:1:5 + | +1 | a { width: +.00; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.00; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/input.css:1:12 | 1 | a { width: +.00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug index 73e9219742f..616653dc03b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #aabbcdff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/input.css:1:5 + | +1 | a { color: #aabbcdff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #aabbcdff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/input.css:1:12 | 1 | a { color: #aabbcdff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug index f74ae97d0b1..fd16f6ac8d6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -.0%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/input.css:1:5 + | +1 | a { width: -.0%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -.0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/input.css:1:12 | 1 | a { width: -.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug index 5eeee2d8336..bf3cb1d00cf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: '\2c' } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/input.css:1:5 + | +1 | a { value: '\2c' } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: '\2c' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/input.css:1:12 | 1 | a { value: '\2c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug index 6195cad390d..0bbc58d33eb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #AABBCC } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/input.css:1:5 + | +1 | a { color: #AABBCC } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #AABBCC } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/input.css:1:12 | 1 | a { color: #AABBCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug index c9eaf6fd94c..6684c003173 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 'a\62c' } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/input.css:1:5 + | +1 | a { value: 'a\62c' } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 'a\62c' } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/input.css:1:12 | 1 | a { value: 'a\62c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug index 4877a9a744e..eb00fd4bbbe 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .10%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/input.css:1:5 + | +1 | a { width: .10%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .10%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/input.css:1:12 | 1 | a { width: .10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug index f314fcc635b..8a800b7303a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #11223444 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/input.css:1:5 + | +1 | a { color: #11223444 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #11223444 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/input.css:1:12 | 1 | a { color: #11223444 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug index 31bf0be4782..eaf0e4717c4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10x\, } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/input.css:1:5 + | +1 | a { value: 10x\, } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10x\, } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/input.css:1:12 | 1 | a { value: 10x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug index ace5d8d2ef7..35cc7132a48 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -0.1; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/input.css:1:5 + | +1 | a { width: -0.1; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -0.1; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/input.css:1:12 | 1 | a { width: -0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/span.rust-debug index aa4e3161cba..95d2c7761b1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/span.rust-debug @@ -34,6 +34,12 @@ error: SimpleBlock 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:17 + | +1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} + | ^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:17 | @@ -82,6 +88,12 @@ error: SimpleBlock 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:24 + | +1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} + | ^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:24 | @@ -100,7 +112,7 @@ error: Ident 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:30 | 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} @@ -112,6 +124,12 @@ error: Ident 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:34 + | +1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} + | ^^^^^^^^^^^^^^^^^^^ + error: KeyframeBlock --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:34 | @@ -160,6 +178,12 @@ error: SimpleBlock 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:42 + | +1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} + | ^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:42 | @@ -178,7 +202,7 @@ error: Ident 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/uWMeE1AAowARdci8tkE-cg/input.css:1:48 | 1 | @keyframes name{0%,50%{color:red}25%,75%{color:blue}} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/span.rust-debug index 9967274ca67..8c6db45caaa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/span.rust-debug @@ -28,6 +28,12 @@ error: SimpleBlock 1 | @-ms-viewport { width: 100vw } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/input.css:1:17 + | +1 | @-ms-viewport { width: 100vw } + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/input.css:1:17 | @@ -46,7 +52,7 @@ error: Ident 1 | @-ms-viewport { width: 100vw } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/input.css:1:24 | 1 | @-ms-viewport { width: 100vw } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug index b1b8d06951d..07636c1118c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10\,x } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/input.css:1:5 + | +1 | a { value: 10\,x } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10\,x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/input.css:1:12 | 1 | a { value: 10\,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug index 29fac300920..3759f62482f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: tUrQuOiSe } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/input.css:1:5 + | +1 | a { color: tUrQuOiSe } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: tUrQuOiSe } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/input.css:1:12 | 1 | a { color: tUrQuOiSe } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug index 3c709aa1893..32b078a91ff 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: +.10%; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/input.css:1:5 + | +1 | a { width: +.10%; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: +.10%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/input.css:1:12 | 1 | a { width: +.10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug index a8efc4c6eeb..5da4dc753fb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: 0.0%; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/input.css:1:5 + | +1 | a { width: 0.0%; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: 0.0%; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/input.css:1:12 | 1 | a { width: 0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug index e468d617378..c5a6e2614cd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #112233ff } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/input.css:1:5 + | +1 | a { color: #112233ff } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #112233ff } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/input.css:1:12 | 1 | a { color: #112233ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug index 1a867c681db..06565adaf68 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .00; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/input.css:1:5 + | +1 | a { width: .00; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .00; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/input.css:1:12 | 1 | a { width: .00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug index 30c898fc89a..de3a97b321d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: -0.0; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/input.css:1:5 + | +1 | a { width: -0.0; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: -0.0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/input.css:1:12 | 1 | a { width: -0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug index 59fb2ce86db..b9e42b411cf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ABBBCCFF } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/input.css:1:5 + | +1 | a { color: #ABBBCCFF } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ABBBCCFF } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/input.css:1:12 | 1 | a { color: #ABBBCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug index a2b864e4daa..2230decd462 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #abbbcc } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/input.css:1:5 + | +1 | a { color: #abbbcc } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #abbbcc } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/input.css:1:12 | 1 | a { color: #abbbcc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug index f6718f48c80..44bb378144c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: \2cx() } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/input.css:1:5 + | +1 | a { value: \2cx() } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: \2cx() } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/input.css:1:12 | 1 | a { value: \2cx() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug index 2caebf81a3b..5ad0bff093e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { width: .0; } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/input.css:1:5 + | +1 | a { width: .0; } + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { width: .0; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/input.css:1:12 | 1 | a { width: .0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug index 4fc6fe74bf8..7d84ba98b05 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #11223344 } | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/input.css:1:5 + | +1 | a { color: #11223344 } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #11223344 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/input.css:1:12 | 1 | a { color: #11223344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug index 012653cbd92..e35b245b16f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { color: #ff0000 } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/input.css:1:5 + | +1 | a { color: #ff0000 } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { color: #ff0000 } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/input.css:1:12 | 1 | a { color: #ff0000 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug index 28648c5adc1..54e8388398c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { value: 10e\32x } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/input.css:1:5 + | +1 | a { value: 10e\32x } + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { value: 10e\32x } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/input.css:1:12 | 1 | a { value: 10e\32x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/value/mixed-separator-01/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/value/mixed-separator-01/span.rust-debug index aaac429c37e..c5c761fadce 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/value/mixed-separator-01/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/value/mixed-separator-01/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | a { box-shadow: rebeccapurple , yellow , black } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:5 + | +1 | a { box-shadow: rebeccapurple , yellow , black } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:5 | @@ -88,7 +94,7 @@ error: Ident 1 | a { box-shadow: rebeccapurple , yellow , black } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:17 | 1 | a { box-shadow: rebeccapurple , yellow , black } @@ -100,7 +106,7 @@ error: Ident 1 | a { box-shadow: rebeccapurple , yellow , black } | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:31 | 1 | a { box-shadow: rebeccapurple , yellow , black } @@ -112,7 +118,7 @@ error: Delimiter 1 | a { box-shadow: rebeccapurple , yellow , black } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:33 | 1 | a { box-shadow: rebeccapurple , yellow , black } @@ -124,7 +130,7 @@ error: Ident 1 | a { box-shadow: rebeccapurple , yellow , black } | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:40 | 1 | a { box-shadow: rebeccapurple , yellow , black } @@ -136,7 +142,7 @@ error: Delimiter 1 | a { box-shadow: rebeccapurple , yellow , black } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/esbuild/value/mixed-separator-01/input.css:1:42 | 1 | a { box-shadow: rebeccapurple , yellow , black } diff --git a/crates/swc_css_parser/tests/fixture/function/calc/span.rust-debug b/crates/swc_css_parser/tests/fixture/function/calc/span.rust-debug index 133e73e9b88..6abb5c3aa62 100644 --- a/crates/swc_css_parser/tests/fixture/function/calc/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/function/calc/span.rust-debug @@ -71,6 +71,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:2:5 + | +2 | font-size: calc(100vw / 35); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:2:5 | @@ -95,7 +101,7 @@ error: Ident 2 | font-size: calc(100vw / 35); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:2:16 | 2 | font-size: calc(100vw / 35); @@ -113,7 +119,7 @@ error: Ident 2 | font-size: calc(100vw / 35); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:2:21 | 2 | font-size: calc(100vw / 35); @@ -282,6 +288,12 @@ error: SimpleBlock 31 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:6:5 + | +6 | --width: calc(10% + 30px); + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:6:5 | @@ -306,7 +318,7 @@ error: DashedIdent 6 | --width: calc(10% + 30px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:14 | 6 | --width: calc(10% + 30px); @@ -318,7 +330,7 @@ error: Function { value: Atom('calc' type=inline), raw: Atom('calc' type=inline) 6 | --width: calc(10% + 30px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:19 | 6 | --width: calc(10% + 30px); @@ -330,7 +342,7 @@ error: Percentage { value: 10.0, raw: Atom('10' type=inline) } 6 | --width: calc(10% + 30px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:22 | 6 | --width: calc(10% + 30px); @@ -342,7 +354,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 6 | --width: calc(10% + 30px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:23 | 6 | --width: calc(10% + 30px); @@ -354,7 +366,7 @@ error: Delim { value: '+' } 6 | --width: calc(10% + 30px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:24 | 6 | --width: calc(10% + 30px); @@ -366,7 +378,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 6 | --width: calc(10% + 30px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:25 | 6 | --width: calc(10% + 30px); @@ -378,7 +390,7 @@ error: Dimension { value: 30.0, raw_value: Atom('30' type=inline), unit: Atom('p 6 | --width: calc(10% + 30px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:6:29 | 6 | --width: calc(10% + 30px); @@ -390,6 +402,12 @@ error: RParen 6 | --width: calc(10% + 30px); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:8:5 + | +8 | width: calc(0px); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:8:5 | @@ -414,7 +432,7 @@ error: Ident 8 | width: calc(0px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:8:12 | 8 | width: calc(0px); @@ -432,7 +450,7 @@ error: Ident 8 | width: calc(0px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:8:17 | 8 | width: calc(0px); @@ -492,6 +510,12 @@ error: Ident 8 | width: calc(0px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:9:5 + | +9 | line-height: calc(0); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:9:5 | @@ -516,7 +540,7 @@ error: Ident 9 | line-height: calc(0); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:9:18 | 9 | line-height: calc(0); @@ -534,7 +558,7 @@ error: Ident 9 | line-height: calc(0); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:9:23 | 9 | line-height: calc(0); @@ -576,6 +600,12 @@ error: Number 9 | line-height: calc(0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:10:5 + | +10 | line-height: calc(2 + 3 * 4); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:10:5 | @@ -600,7 +630,7 @@ error: Ident 10 | line-height: calc(2 + 3 * 4); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:10:18 | 10 | line-height: calc(2 + 3 * 4); @@ -618,7 +648,7 @@ error: Ident 10 | line-height: calc(2 + 3 * 4); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:10:23 | 10 | line-height: calc(2 + 3 * 4); @@ -732,6 +762,12 @@ error: Number 10 | line-height: calc(2 + 3 * 4); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:11:5 + | +11 | line-height: calc((2 + 3) * 4); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:11:5 | @@ -756,7 +792,7 @@ error: Ident 11 | line-height: calc((2 + 3) * 4); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:11:18 | 11 | line-height: calc((2 + 3) * 4); @@ -774,7 +810,7 @@ error: Ident 11 | line-height: calc((2 + 3) * 4); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:11:23 | 11 | line-height: calc((2 + 3) * 4); @@ -918,6 +954,12 @@ error: Number 11 | line-height: calc((2 + 3) * 4); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:12:5 + | +12 | line-height: calc(-5 * 0); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:12:5 | @@ -942,7 +984,7 @@ error: Ident 12 | line-height: calc(-5 * 0); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:12:18 | 12 | line-height: calc(-5 * 0); @@ -960,7 +1002,7 @@ error: Ident 12 | line-height: calc(-5 * 0); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:12:23 | 12 | line-height: calc(-5 * 0); @@ -1032,6 +1074,12 @@ error: Number 12 | line-height: calc(-5 * 0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:13:5 + | +13 | width: calc((100px + 100px)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:13:5 | @@ -1056,7 +1104,7 @@ error: Ident 13 | width: calc((100px + 100px)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:13:12 | 13 | width: calc((100px + 100px)); @@ -1074,7 +1122,7 @@ error: Ident 13 | width: calc((100px + 100px)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:13:17 | 13 | width: calc((100px + 100px)); @@ -1218,6 +1266,12 @@ error: Ident 13 | width: calc((100px + 100px)); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:14:5 + | +14 | width: calc( ( 100px + 100px ) ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:14:5 | @@ -1242,7 +1296,7 @@ error: Ident 14 | width: calc( ( 100px + 100px ) ); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:14:12 | 14 | width: calc( ( 100px + 100px ) ); @@ -1260,7 +1314,7 @@ error: Ident 14 | width: calc( ( 100px + 100px ) ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:14:20 | 14 | width: calc( ( 100px + 100px ) ); @@ -1404,6 +1458,12 @@ error: Ident 14 | width: calc( ( 100px + 100px ) ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:15:5 + | +15 | width: calc( 100px + 100px ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:15:5 | @@ -1428,7 +1488,7 @@ error: Ident 15 | width: calc( 100px + 100px ); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:15:12 | 15 | width: calc( 100px + 100px ); @@ -1446,7 +1506,7 @@ error: Ident 15 | width: calc( 100px + 100px ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:15:20 | 15 | width: calc( 100px + 100px ); @@ -1566,6 +1626,12 @@ error: Ident 15 | width: calc( 100px + 100px ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:16:5 + | +16 | width: calc(500px + 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:16:5 | @@ -1590,7 +1656,7 @@ error: Ident 16 | width: calc(500px + 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:16:12 | 16 | width: calc(500px + 50%); @@ -1608,7 +1674,7 @@ error: Ident 16 | width: calc(500px + 50%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:16:17 | 16 | width: calc(500px + 50%); @@ -1716,6 +1782,12 @@ error: Number 16 | width: calc(500px + 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:17:5 + | +17 | width: calc(10% + 20%); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:17:5 | @@ -1740,7 +1812,7 @@ error: Ident 17 | width: calc(10% + 20%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:17:12 | 17 | width: calc(10% + 20%); @@ -1758,7 +1830,7 @@ error: Ident 17 | width: calc(10% + 20%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:17:17 | 17 | width: calc(10% + 20%); @@ -1854,6 +1926,12 @@ error: Number 17 | width: calc(10% + 20%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:18:5 + | +18 | width: calc(2pc + 3pt); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:18:5 | @@ -1878,7 +1956,7 @@ error: Ident 18 | width: calc(2pc + 3pt); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:18:12 | 18 | width: calc(2pc + 3pt); @@ -1896,7 +1974,7 @@ error: Ident 18 | width: calc(2pc + 3pt); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:18:17 | 18 | width: calc(2pc + 3pt); @@ -2016,6 +2094,12 @@ error: Ident 18 | width: calc(2pc + 3pt); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:19:5 + | +19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:19:5 | @@ -2040,7 +2124,7 @@ error: Ident 19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:19:12 | 19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); @@ -2058,7 +2142,7 @@ error: Ident 19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:19:17 | 19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); @@ -2316,6 +2400,12 @@ error: Ident 19 | width: calc(100% / 3 - 2 * 1em - 2 * 1px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:21:5 + | +21 | width: calc(calc(50px)); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:21:5 | @@ -2340,7 +2430,7 @@ error: Ident 21 | width: calc(calc(50px)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:21:12 | 21 | width: calc(calc(50px)); @@ -2358,7 +2448,7 @@ error: Ident 21 | width: calc(calc(50px)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:21:17 | 21 | width: calc(calc(50px)); @@ -2406,7 +2496,7 @@ error: Ident 21 | width: calc(calc(50px)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:21:22 | 21 | width: calc(calc(50px)); @@ -2466,6 +2556,12 @@ error: Ident 21 | width: calc(calc(50px)); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:22:5 + | +22 | width: calc(calc(60%) - 20px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:22:5 | @@ -2490,7 +2586,7 @@ error: Ident 22 | width: calc(calc(60%) - 20px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:22:12 | 22 | width: calc(calc(60%) - 20px); @@ -2508,7 +2604,7 @@ error: Ident 22 | width: calc(calc(60%) - 20px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:22:17 | 22 | width: calc(calc(60%) - 20px); @@ -2556,7 +2652,7 @@ error: Ident 22 | width: calc(calc(60%) - 20px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:22:22 | 22 | width: calc(calc(60%) - 20px); @@ -2664,6 +2760,12 @@ error: Ident 22 | width: calc(calc(60%) - 20px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:23:5 + | +23 | width: calc(calc(3 * 25%)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:23:5 | @@ -2688,7 +2790,7 @@ error: Ident 23 | width: calc(calc(3 * 25%)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:23:12 | 23 | width: calc(calc(3 * 25%)); @@ -2706,7 +2808,7 @@ error: Ident 23 | width: calc(calc(3 * 25%)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:23:17 | 23 | width: calc(calc(3 * 25%)); @@ -2754,7 +2856,7 @@ error: Ident 23 | width: calc(calc(3 * 25%)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:23:22 | 23 | width: calc(calc(3 * 25%)); @@ -2832,6 +2934,12 @@ error: Number 23 | width: calc(calc(3 * 25%)); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:24:5 + | +24 | width: calc(2 * var(--width)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:24:5 | @@ -2856,7 +2964,7 @@ error: Ident 24 | width: calc(2 * var(--width)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:24:12 | 24 | width: calc(2 * var(--width)); @@ -2874,7 +2982,7 @@ error: Ident 24 | width: calc(2 * var(--width)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:24:17 | 24 | width: calc(2 * var(--width)); @@ -2952,7 +3060,7 @@ error: Ident 24 | width: calc(2 * var(--width)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:24:25 | 24 | width: calc(2 * var(--width)); @@ -2964,6 +3072,12 @@ error: DashedIdent 24 | width: calc(2 * var(--width)); | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:25:5 + | +25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:25:5 | @@ -2988,7 +3102,7 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:12 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3006,7 +3120,7 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:17 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3054,7 +3168,7 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:21 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3102,7 +3216,7 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:25 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3210,7 +3324,7 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:35 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3222,7 +3336,7 @@ error: Delimiter 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:37 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3264,7 +3378,7 @@ error: Number 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:39 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3276,7 +3390,7 @@ error: Delimiter 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:25:41 | 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); @@ -3396,6 +3510,12 @@ error: Ident 25 | width: calc(pow(pow(30px / 1px, 3), 1/3) * 1px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:26:5 + | +26 | width: calc(infinity); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:26:5 | @@ -3420,7 +3540,7 @@ error: Ident 26 | width: calc(infinity); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:26:12 | 26 | width: calc(infinity); @@ -3438,7 +3558,7 @@ error: Ident 26 | width: calc(infinity); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:26:17 | 26 | width: calc(infinity); @@ -3480,6 +3600,12 @@ error: Ident 26 | width: calc(infinity); | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:27:5 + | +27 | width: calc(InFiNiTy); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:27:5 | @@ -3504,7 +3630,7 @@ error: Ident 27 | width: calc(InFiNiTy); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:27:12 | 27 | width: calc(InFiNiTy); @@ -3522,7 +3648,7 @@ error: Ident 27 | width: calc(InFiNiTy); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:27:17 | 27 | width: calc(InFiNiTy); @@ -3564,6 +3690,12 @@ error: Ident 27 | width: calc(InFiNiTy); | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:28:5 + | +28 | width: calc(-InFiNiTy); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:28:5 | @@ -3588,7 +3720,7 @@ error: Ident 28 | width: calc(-InFiNiTy); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:28:12 | 28 | width: calc(-InFiNiTy); @@ -3606,7 +3738,7 @@ error: Ident 28 | width: calc(-InFiNiTy); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:28:17 | 28 | width: calc(-InFiNiTy); @@ -3648,6 +3780,12 @@ error: Ident 28 | width: calc(-InFiNiTy); | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:29:5 + | +29 | width: calc(NaN); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:29:5 | @@ -3672,7 +3810,7 @@ error: Ident 29 | width: calc(NaN); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:29:12 | 29 | width: calc(NaN); @@ -3690,7 +3828,7 @@ error: Ident 29 | width: calc(NaN); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:29:17 | 29 | width: calc(NaN); @@ -3732,6 +3870,12 @@ error: Ident 29 | width: calc(NaN); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:30:5 + | +30 | width: calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:30:5 | @@ -3756,7 +3900,7 @@ error: Ident 30 | width: calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:30:12 | 30 | width: calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px); @@ -3774,7 +3918,7 @@ error: Ident 30 | width: calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:30:17 | 30 | width: calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px); @@ -4327,6 +4471,12 @@ error: SimpleBlock 40 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:34:5 + | +34 | font-size: calc(1rem * pow(1.5, -1)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:34:5 | @@ -4351,7 +4501,7 @@ error: Ident 34 | font-size: calc(1rem * pow(1.5, -1)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:34:16 | 34 | font-size: calc(1rem * pow(1.5, -1)); @@ -4369,7 +4519,7 @@ error: Ident 34 | font-size: calc(1rem * pow(1.5, -1)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:34:21 | 34 | font-size: calc(1rem * pow(1.5, -1)); @@ -4465,7 +4615,7 @@ error: Ident 34 | font-size: calc(1rem * pow(1.5, -1)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:34:32 | 34 | font-size: calc(1rem * pow(1.5, -1)); @@ -4507,7 +4657,7 @@ error: Number 34 | font-size: calc(1rem * pow(1.5, -1)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:34:35 | 34 | font-size: calc(1rem * pow(1.5, -1)); @@ -4519,7 +4669,7 @@ error: Delimiter 34 | font-size: calc(1rem * pow(1.5, -1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:34:37 | 34 | font-size: calc(1rem * pow(1.5, -1)); @@ -4561,6 +4711,12 @@ error: Number 34 | font-size: calc(1rem * pow(1.5, -1)); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:35:5 + | +35 | font-size: calc(1rem * pow(1.5, 0)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:35:5 | @@ -4585,7 +4741,7 @@ error: Ident 35 | font-size: calc(1rem * pow(1.5, 0)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:35:16 | 35 | font-size: calc(1rem * pow(1.5, 0)); @@ -4603,7 +4759,7 @@ error: Ident 35 | font-size: calc(1rem * pow(1.5, 0)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:35:21 | 35 | font-size: calc(1rem * pow(1.5, 0)); @@ -4699,7 +4855,7 @@ error: Ident 35 | font-size: calc(1rem * pow(1.5, 0)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:35:32 | 35 | font-size: calc(1rem * pow(1.5, 0)); @@ -4741,7 +4897,7 @@ error: Number 35 | font-size: calc(1rem * pow(1.5, 0)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:35:35 | 35 | font-size: calc(1rem * pow(1.5, 0)); @@ -4753,7 +4909,7 @@ error: Delimiter 35 | font-size: calc(1rem * pow(1.5, 0)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:35:37 | 35 | font-size: calc(1rem * pow(1.5, 0)); @@ -4795,6 +4951,12 @@ error: Number 35 | font-size: calc(1rem * pow(1.5, 0)); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:36:5 + | +36 | font-size: calc(1rem * pow(1.5, 1)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:36:5 | @@ -4819,7 +4981,7 @@ error: Ident 36 | font-size: calc(1rem * pow(1.5, 1)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:36:16 | 36 | font-size: calc(1rem * pow(1.5, 1)); @@ -4837,7 +4999,7 @@ error: Ident 36 | font-size: calc(1rem * pow(1.5, 1)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:36:21 | 36 | font-size: calc(1rem * pow(1.5, 1)); @@ -4933,7 +5095,7 @@ error: Ident 36 | font-size: calc(1rem * pow(1.5, 1)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:36:32 | 36 | font-size: calc(1rem * pow(1.5, 1)); @@ -4975,7 +5137,7 @@ error: Number 36 | font-size: calc(1rem * pow(1.5, 1)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:36:35 | 36 | font-size: calc(1rem * pow(1.5, 1)); @@ -4987,7 +5149,7 @@ error: Delimiter 36 | font-size: calc(1rem * pow(1.5, 1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:36:37 | 36 | font-size: calc(1rem * pow(1.5, 1)); @@ -5029,6 +5191,12 @@ error: Number 36 | font-size: calc(1rem * pow(1.5, 1)); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:37:5 + | +37 | font-size: calc(1rem * pow(1.5, 2)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:37:5 | @@ -5053,7 +5221,7 @@ error: Ident 37 | font-size: calc(1rem * pow(1.5, 2)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:37:16 | 37 | font-size: calc(1rem * pow(1.5, 2)); @@ -5071,7 +5239,7 @@ error: Ident 37 | font-size: calc(1rem * pow(1.5, 2)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:37:21 | 37 | font-size: calc(1rem * pow(1.5, 2)); @@ -5167,7 +5335,7 @@ error: Ident 37 | font-size: calc(1rem * pow(1.5, 2)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:37:32 | 37 | font-size: calc(1rem * pow(1.5, 2)); @@ -5209,7 +5377,7 @@ error: Number 37 | font-size: calc(1rem * pow(1.5, 2)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:37:35 | 37 | font-size: calc(1rem * pow(1.5, 2)); @@ -5221,7 +5389,7 @@ error: Delimiter 37 | font-size: calc(1rem * pow(1.5, 2)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:37:37 | 37 | font-size: calc(1rem * pow(1.5, 2)); @@ -5263,6 +5431,12 @@ error: Number 37 | font-size: calc(1rem * pow(1.5, 2)); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:38:5 + | +38 | font-size: calc(1rem * pow(1.5, 3)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:38:5 | @@ -5287,7 +5461,7 @@ error: Ident 38 | font-size: calc(1rem * pow(1.5, 3)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:38:16 | 38 | font-size: calc(1rem * pow(1.5, 3)); @@ -5305,7 +5479,7 @@ error: Ident 38 | font-size: calc(1rem * pow(1.5, 3)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:38:21 | 38 | font-size: calc(1rem * pow(1.5, 3)); @@ -5401,7 +5575,7 @@ error: Ident 38 | font-size: calc(1rem * pow(1.5, 3)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:38:32 | 38 | font-size: calc(1rem * pow(1.5, 3)); @@ -5443,7 +5617,7 @@ error: Number 38 | font-size: calc(1rem * pow(1.5, 3)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:38:35 | 38 | font-size: calc(1rem * pow(1.5, 3)); @@ -5455,7 +5629,7 @@ error: Delimiter 38 | font-size: calc(1rem * pow(1.5, 3)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:38:37 | 38 | font-size: calc(1rem * pow(1.5, 3)); @@ -5497,6 +5671,12 @@ error: Number 38 | font-size: calc(1rem * pow(1.5, 3)); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:39:5 + | +39 | font-size: calc(1rem * pow(1.5, 4)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:39:5 | @@ -5521,7 +5701,7 @@ error: Ident 39 | font-size: calc(1rem * pow(1.5, 4)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:39:16 | 39 | font-size: calc(1rem * pow(1.5, 4)); @@ -5539,7 +5719,7 @@ error: Ident 39 | font-size: calc(1rem * pow(1.5, 4)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:39:21 | 39 | font-size: calc(1rem * pow(1.5, 4)); @@ -5635,7 +5815,7 @@ error: Ident 39 | font-size: calc(1rem * pow(1.5, 4)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:39:32 | 39 | font-size: calc(1rem * pow(1.5, 4)); @@ -5677,7 +5857,7 @@ error: Number 39 | font-size: calc(1rem * pow(1.5, 4)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:39:35 | 39 | font-size: calc(1rem * pow(1.5, 4)); @@ -5689,7 +5869,7 @@ error: Delimiter 39 | font-size: calc(1rem * pow(1.5, 4)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:39:37 | 39 | font-size: calc(1rem * pow(1.5, 4)); @@ -5792,6 +5972,12 @@ error: SimpleBlock 44 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:43:5 + | +43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:43:5 | @@ -5816,7 +6002,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:23 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5834,7 +6020,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:39 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5846,7 +6032,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:46 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5864,7 +6050,7 @@ error: Number 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:48 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5876,7 +6062,7 @@ error: Delimiter 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:50 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5888,7 +6074,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:56 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5918,7 +6104,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:60 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5930,7 +6116,7 @@ error: Delimiter 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:62 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5942,7 +6128,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:68 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -5960,7 +6146,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:73 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -6068,7 +6254,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:85 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -6080,7 +6266,7 @@ error: Delimiter 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:87 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -6092,7 +6278,7 @@ error: Ident 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:43:94 | 43 | background-image: linear-gradient(silver 0%, white 20px, white calc(100% - 20px), silver 100%); @@ -6240,6 +6426,12 @@ error: SimpleBlock 50 | div { width: calc(100% / 4); } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:50:7 + | +50 | div { width: calc(100% / 4); } + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:50:7 | @@ -6264,7 +6456,7 @@ error: Ident 50 | div { width: calc(100% / 4); } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:50:14 | 50 | div { width: calc(100% / 4); } @@ -6282,7 +6474,7 @@ error: Ident 50 | div { width: calc(100% / 4); } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:50:19 | 50 | div { width: calc(100% / 4); } @@ -6420,6 +6612,12 @@ error: SimpleBlock 51 | div { margin-top: calc(-120% - 4px); } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:51:7 + | +51 | div { margin-top: calc(-120% - 4px); } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:51:7 | @@ -6444,7 +6642,7 @@ error: Ident 51 | div { margin-top: calc(-120% - 4px); } | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:51:19 | 51 | div { margin-top: calc(-120% - 4px); } @@ -6462,7 +6660,7 @@ error: Ident 51 | div { margin-top: calc(-120% - 4px); } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:51:24 | 51 | div { margin-top: calc(-120% - 4px); } @@ -6630,6 +6828,12 @@ error: SimpleBlock 52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:52:7 + | +52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:52:7 | @@ -6654,7 +6858,7 @@ error: Ident 52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:52:14 | 52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } @@ -6672,7 +6876,7 @@ error: Ident 52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:52:19 | 52 | div { width: calc(50% - ( ( 4% ) * 0.5 ) ); } @@ -6922,6 +7126,13 @@ error: SimpleBlock 57 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:55:5 + | +55 | / background-image: linear-gradient(silver 0%, white 20px, +56 | | white calc(100% - 20px), silver 100%); + | |_________________________________________^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:55:5 | @@ -6948,7 +7159,7 @@ error: Ident 55 | background-image: linear-gradient(silver 0%, white 20px, | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:23 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -6970,7 +7181,7 @@ error: Ident 55 | background-image: linear-gradient(silver 0%, white 20px, | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:39 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -6982,7 +7193,7 @@ error: Ident 55 | background-image: linear-gradient(silver 0%, white 20px, | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:46 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -7000,7 +7211,7 @@ error: Number 55 | background-image: linear-gradient(silver 0%, white 20px, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:48 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -7012,7 +7223,7 @@ error: Delimiter 55 | background-image: linear-gradient(silver 0%, white 20px, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:50 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -7024,7 +7235,7 @@ error: Ident 55 | background-image: linear-gradient(silver 0%, white 20px, | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:56 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -7054,7 +7265,7 @@ error: Ident 55 | background-image: linear-gradient(silver 0%, white 20px, | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:55:60 | 55 | background-image: linear-gradient(silver 0%, white 20px, @@ -7066,7 +7277,7 @@ error: Delimiter 55 | background-image: linear-gradient(silver 0%, white 20px, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:5 | 56 | white calc(100% - 20px), silver 100%); @@ -7078,7 +7289,7 @@ error: Ident 56 | white calc(100% - 20px), silver 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:11 | 56 | white calc(100% - 20px), silver 100%); @@ -7096,7 +7307,7 @@ error: Ident 56 | white calc(100% - 20px), silver 100%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:16 | 56 | white calc(100% - 20px), silver 100%); @@ -7204,7 +7415,7 @@ error: Ident 56 | white calc(100% - 20px), silver 100%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:28 | 56 | white calc(100% - 20px), silver 100%); @@ -7216,7 +7427,7 @@ error: Delimiter 56 | white calc(100% - 20px), silver 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:30 | 56 | white calc(100% - 20px), silver 100%); @@ -7228,7 +7439,7 @@ error: Ident 56 | white calc(100% - 20px), silver 100%); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:56:37 | 56 | white calc(100% - 20px), silver 100%); @@ -7313,6 +7524,12 @@ error: SimpleBlock 63 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:62:5 + | +62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:62:5 | @@ -7337,7 +7554,7 @@ error: Ident 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:62:16 | 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); @@ -7355,7 +7572,7 @@ error: Ident 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:62:20 | 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); @@ -7565,7 +7782,7 @@ error: Number 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:62:40 | 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); @@ -7577,7 +7794,7 @@ error: Delimiter 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:62:42 | 62 | font-size: max(10 * (1vw + 1vh) / 2, 12px); @@ -7701,6 +7918,12 @@ error: SimpleBlock 68 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:67:5 + | +67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:67:5 | @@ -7725,7 +7948,7 @@ error: Ident 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:16 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -7743,7 +7966,7 @@ error: Ident 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:22 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -7803,7 +8026,7 @@ error: Ident 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:26 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -7815,7 +8038,7 @@ error: Delimiter 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:28 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -8025,7 +8248,7 @@ error: Number 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:48 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -8037,7 +8260,7 @@ error: Delimiter 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:67:50 | 67 | font-size: clamp(12px, 10 * (1vw + 1vh) / 2, 100px); @@ -8170,6 +8393,12 @@ error: SimpleBlock 89 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:71:5 + | +71 | width: mod(18px, 5px); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:71:5 | @@ -8194,7 +8423,7 @@ error: Ident 71 | width: mod(18px, 5px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:71:12 | 71 | width: mod(18px, 5px); @@ -8212,7 +8441,7 @@ error: Ident 71 | width: mod(18px, 5px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:71:16 | 71 | width: mod(18px, 5px); @@ -8272,7 +8501,7 @@ error: Ident 71 | width: mod(18px, 5px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:71:20 | 71 | width: mod(18px, 5px); @@ -8284,7 +8513,7 @@ error: Delimiter 71 | width: mod(18px, 5px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:71:22 | 71 | width: mod(18px, 5px); @@ -8344,6 +8573,12 @@ error: Ident 71 | width: mod(18px, 5px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:72:5 + | +72 | transform: rotate(mod(-140deg, -90deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:72:5 | @@ -8368,7 +8603,7 @@ error: Ident 72 | transform: rotate(mod(-140deg, -90deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:72:16 | 72 | transform: rotate(mod(-140deg, -90deg)); @@ -8386,7 +8621,7 @@ error: Ident 72 | transform: rotate(mod(-140deg, -90deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:72:23 | 72 | transform: rotate(mod(-140deg, -90deg)); @@ -8404,7 +8639,7 @@ error: Ident 72 | transform: rotate(mod(-140deg, -90deg)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:72:27 | 72 | transform: rotate(mod(-140deg, -90deg)); @@ -8464,7 +8699,7 @@ error: Ident 72 | transform: rotate(mod(-140deg, -90deg)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:72:34 | 72 | transform: rotate(mod(-140deg, -90deg)); @@ -8476,7 +8711,7 @@ error: Delimiter 72 | transform: rotate(mod(-140deg, -90deg)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:72:36 | 72 | transform: rotate(mod(-140deg, -90deg)); @@ -8536,6 +8771,12 @@ error: Ident 72 | transform: rotate(mod(-140deg, -90deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:73:5 + | +73 | transform: rotate(atan2(1, -1)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:73:5 | @@ -8560,7 +8801,7 @@ error: Ident 73 | transform: rotate(atan2(1, -1)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:73:16 | 73 | transform: rotate(atan2(1, -1)); @@ -8578,7 +8819,7 @@ error: Ident 73 | transform: rotate(atan2(1, -1)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:73:23 | 73 | transform: rotate(atan2(1, -1)); @@ -8596,7 +8837,7 @@ error: Ident 73 | transform: rotate(atan2(1, -1)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:73:29 | 73 | transform: rotate(atan2(1, -1)); @@ -8638,7 +8879,7 @@ error: Number 73 | transform: rotate(atan2(1, -1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:73:30 | 73 | transform: rotate(atan2(1, -1)); @@ -8650,7 +8891,7 @@ error: Delimiter 73 | transform: rotate(atan2(1, -1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:73:32 | 73 | transform: rotate(atan2(1, -1)); @@ -8692,6 +8933,12 @@ error: Number 73 | transform: rotate(atan2(1, -1)); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:74:5 + | +74 | transform: rotate(tan(90deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:74:5 | @@ -8716,7 +8963,7 @@ error: Ident 74 | transform: rotate(tan(90deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:74:16 | 74 | transform: rotate(tan(90deg)); @@ -8734,7 +8981,7 @@ error: Ident 74 | transform: rotate(tan(90deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:74:23 | 74 | transform: rotate(tan(90deg)); @@ -8752,7 +8999,7 @@ error: Ident 74 | transform: rotate(tan(90deg)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:74:27 | 74 | transform: rotate(tan(90deg)); @@ -8812,6 +9059,12 @@ error: Ident 74 | transform: rotate(tan(90deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:75:5 + | +75 | transform: rotate(atan(tan(90deg))); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:75:5 | @@ -8836,7 +9089,7 @@ error: Ident 75 | transform: rotate(atan(tan(90deg))); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:75:16 | 75 | transform: rotate(atan(tan(90deg))); @@ -8854,7 +9107,7 @@ error: Ident 75 | transform: rotate(atan(tan(90deg))); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:75:23 | 75 | transform: rotate(atan(tan(90deg))); @@ -8872,7 +9125,7 @@ error: Ident 75 | transform: rotate(atan(tan(90deg))); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:75:28 | 75 | transform: rotate(atan(tan(90deg))); @@ -8920,7 +9173,7 @@ error: Ident 75 | transform: rotate(atan(tan(90deg))); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:75:32 | 75 | transform: rotate(atan(tan(90deg))); @@ -8980,6 +9233,12 @@ error: Ident 75 | transform: rotate(atan(tan(90deg))); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:76:5 + | +76 | font-size: hypot(2em); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:76:5 | @@ -9004,7 +9263,7 @@ error: Ident 76 | font-size: hypot(2em); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:76:16 | 76 | font-size: hypot(2em); @@ -9022,7 +9281,7 @@ error: Ident 76 | font-size: hypot(2em); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:76:22 | 76 | font-size: hypot(2em); @@ -9082,6 +9341,12 @@ error: Ident 76 | font-size: hypot(2em); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:77:5 + | +77 | font-size: hypot(-2em); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:77:5 | @@ -9106,7 +9371,7 @@ error: Ident 77 | font-size: hypot(-2em); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:77:16 | 77 | font-size: hypot(-2em); @@ -9124,7 +9389,7 @@ error: Ident 77 | font-size: hypot(-2em); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:77:22 | 77 | font-size: hypot(-2em); @@ -9184,6 +9449,12 @@ error: Ident 77 | font-size: hypot(-2em); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:78:5 + | +78 | font-size: hypot(30px, 40px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:78:5 | @@ -9208,7 +9479,7 @@ error: Ident 78 | font-size: hypot(30px, 40px); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:78:16 | 78 | font-size: hypot(30px, 40px); @@ -9226,7 +9497,7 @@ error: Ident 78 | font-size: hypot(30px, 40px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:78:22 | 78 | font-size: hypot(30px, 40px); @@ -9286,7 +9557,7 @@ error: Ident 78 | font-size: hypot(30px, 40px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:78:26 | 78 | font-size: hypot(30px, 40px); @@ -9298,7 +9569,7 @@ error: Delimiter 78 | font-size: hypot(30px, 40px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:78:28 | 78 | font-size: hypot(30px, 40px); @@ -9358,6 +9629,12 @@ error: Ident 78 | font-size: hypot(30px, 40px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:79:5 + | +79 | background-position: sign(10%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:79:5 | @@ -9382,7 +9659,7 @@ error: Ident 79 | background-position: sign(10%); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:79:26 | 79 | background-position: sign(10%); @@ -9400,7 +9677,7 @@ error: Ident 79 | background-position: sign(10%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:79:31 | 79 | background-position: sign(10%); @@ -9448,6 +9725,12 @@ error: Number 79 | background-position: sign(10%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:80:5 + | +80 | width: calc(pow(e, pi) - pi); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:80:5 | @@ -9472,7 +9755,7 @@ error: Ident 80 | width: calc(pow(e, pi) - pi); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:80:12 | 80 | width: calc(pow(e, pi) - pi); @@ -9490,7 +9773,7 @@ error: Ident 80 | width: calc(pow(e, pi) - pi); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:80:17 | 80 | width: calc(pow(e, pi) - pi); @@ -9538,7 +9821,7 @@ error: Ident 80 | width: calc(pow(e, pi) - pi); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:80:21 | 80 | width: calc(pow(e, pi) - pi); @@ -9580,7 +9863,7 @@ error: Ident 80 | width: calc(pow(e, pi) - pi); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:80:22 | 80 | width: calc(pow(e, pi) - pi); @@ -9592,7 +9875,7 @@ error: Delimiter 80 | width: calc(pow(e, pi) - pi); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:80:24 | 80 | width: calc(pow(e, pi) - pi); @@ -9676,6 +9959,12 @@ error: Ident 80 | width: calc(pow(e, pi) - pi); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:81:5 + | +81 | width: min(pi, 5, e); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:81:5 | @@ -9700,7 +9989,7 @@ error: Ident 81 | width: min(pi, 5, e); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:12 | 81 | width: min(pi, 5, e); @@ -9718,7 +10007,7 @@ error: Ident 81 | width: min(pi, 5, e); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:16 | 81 | width: min(pi, 5, e); @@ -9760,7 +10049,7 @@ error: Ident 81 | width: min(pi, 5, e); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:18 | 81 | width: min(pi, 5, e); @@ -9772,7 +10061,7 @@ error: Delimiter 81 | width: min(pi, 5, e); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:20 | 81 | width: min(pi, 5, e); @@ -9814,7 +10103,7 @@ error: Number 81 | width: min(pi, 5, e); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:21 | 81 | width: min(pi, 5, e); @@ -9826,7 +10115,7 @@ error: Delimiter 81 | width: min(pi, 5, e); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:81:23 | 81 | width: min(pi, 5, e); @@ -9868,6 +10157,12 @@ error: Ident 81 | width: min(pi, 5, e); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:82:5 + | +82 | width: log(5); + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:82:5 | @@ -9892,7 +10187,7 @@ error: Ident 82 | width: log(5); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:82:12 | 82 | width: log(5); @@ -9910,7 +10205,7 @@ error: Ident 82 | width: log(5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:82:16 | 82 | width: log(5); @@ -9952,6 +10247,12 @@ error: Number 82 | width: log(5); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:83:5 + | +83 | width: log(5, 5); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:83:5 | @@ -9976,7 +10277,7 @@ error: Ident 83 | width: log(5, 5); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:83:12 | 83 | width: log(5, 5); @@ -9994,7 +10295,7 @@ error: Ident 83 | width: log(5, 5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:83:16 | 83 | width: log(5, 5); @@ -10036,7 +10337,7 @@ error: Number 83 | width: log(5, 5); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:83:17 | 83 | width: log(5, 5); @@ -10048,7 +10349,7 @@ error: Delimiter 83 | width: log(5, 5); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:83:19 | 83 | width: log(5, 5); @@ -10090,6 +10391,12 @@ error: Number 83 | width: log(5, 5); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:84:5 + | +84 | width: round(var(--width), 50px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:84:5 | @@ -10114,7 +10421,7 @@ error: Ident 84 | width: round(var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:84:12 | 84 | width: round(var(--width), 50px); @@ -10132,7 +10439,7 @@ error: Ident 84 | width: round(var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:84:18 | 84 | width: round(var(--width), 50px); @@ -10180,7 +10487,7 @@ error: Ident 84 | width: round(var(--width), 50px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:84:22 | 84 | width: round(var(--width), 50px); @@ -10192,7 +10499,7 @@ error: DashedIdent 84 | width: round(var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:84:30 | 84 | width: round(var(--width), 50px); @@ -10204,7 +10511,7 @@ error: Delimiter 84 | width: round(var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:84:32 | 84 | width: round(var(--width), 50px); @@ -10264,6 +10571,12 @@ error: Ident 84 | width: round(var(--width), 50px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:85:5 + | +85 | width: round(nearest, var(--width), 50px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:85:5 | @@ -10288,7 +10601,7 @@ error: Ident 85 | width: round(nearest, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:12 | 85 | width: round(nearest, var(--width), 50px); @@ -10306,7 +10619,7 @@ error: Ident 85 | width: round(nearest, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:18 | 85 | width: round(nearest, var(--width), 50px); @@ -10318,7 +10631,7 @@ error: Ident 85 | width: round(nearest, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:25 | 85 | width: round(nearest, var(--width), 50px); @@ -10330,7 +10643,7 @@ error: Delimiter 85 | width: round(nearest, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:27 | 85 | width: round(nearest, var(--width), 50px); @@ -10378,7 +10691,7 @@ error: Ident 85 | width: round(nearest, var(--width), 50px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:31 | 85 | width: round(nearest, var(--width), 50px); @@ -10390,7 +10703,7 @@ error: DashedIdent 85 | width: round(nearest, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:39 | 85 | width: round(nearest, var(--width), 50px); @@ -10402,7 +10715,7 @@ error: Delimiter 85 | width: round(nearest, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:85:41 | 85 | width: round(nearest, var(--width), 50px); @@ -10462,6 +10775,12 @@ error: Ident 85 | width: round(nearest, var(--width), 50px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:86:5 + | +86 | width: round(up, var(--width), 50px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:86:5 | @@ -10486,7 +10805,7 @@ error: Ident 86 | width: round(up, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:12 | 86 | width: round(up, var(--width), 50px); @@ -10504,7 +10823,7 @@ error: Ident 86 | width: round(up, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:18 | 86 | width: round(up, var(--width), 50px); @@ -10516,7 +10835,7 @@ error: Ident 86 | width: round(up, var(--width), 50px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:20 | 86 | width: round(up, var(--width), 50px); @@ -10528,7 +10847,7 @@ error: Delimiter 86 | width: round(up, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:22 | 86 | width: round(up, var(--width), 50px); @@ -10576,7 +10895,7 @@ error: Ident 86 | width: round(up, var(--width), 50px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:26 | 86 | width: round(up, var(--width), 50px); @@ -10588,7 +10907,7 @@ error: DashedIdent 86 | width: round(up, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:34 | 86 | width: round(up, var(--width), 50px); @@ -10600,7 +10919,7 @@ error: Delimiter 86 | width: round(up, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:86:36 | 86 | width: round(up, var(--width), 50px); @@ -10660,6 +10979,12 @@ error: Ident 86 | width: round(up, var(--width), 50px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:87:5 + | +87 | width: round(down, var(--width), 50px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:87:5 | @@ -10684,7 +11009,7 @@ error: Ident 87 | width: round(down, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:12 | 87 | width: round(down, var(--width), 50px); @@ -10702,7 +11027,7 @@ error: Ident 87 | width: round(down, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:18 | 87 | width: round(down, var(--width), 50px); @@ -10714,7 +11039,7 @@ error: Ident 87 | width: round(down, var(--width), 50px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:22 | 87 | width: round(down, var(--width), 50px); @@ -10726,7 +11051,7 @@ error: Delimiter 87 | width: round(down, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:24 | 87 | width: round(down, var(--width), 50px); @@ -10774,7 +11099,7 @@ error: Ident 87 | width: round(down, var(--width), 50px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:28 | 87 | width: round(down, var(--width), 50px); @@ -10786,7 +11111,7 @@ error: DashedIdent 87 | width: round(down, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:36 | 87 | width: round(down, var(--width), 50px); @@ -10798,7 +11123,7 @@ error: Delimiter 87 | width: round(down, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:87:38 | 87 | width: round(down, var(--width), 50px); @@ -10858,6 +11183,12 @@ error: Ident 87 | width: round(down, var(--width), 50px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:88:5 + | +88 | width: round(to-zero, var(--width), 50px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:88:5 | @@ -10882,7 +11213,7 @@ error: Ident 88 | width: round(to-zero, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:12 | 88 | width: round(to-zero, var(--width), 50px); @@ -10900,7 +11231,7 @@ error: Ident 88 | width: round(to-zero, var(--width), 50px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:18 | 88 | width: round(to-zero, var(--width), 50px); @@ -10912,7 +11243,7 @@ error: Ident 88 | width: round(to-zero, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:25 | 88 | width: round(to-zero, var(--width), 50px); @@ -10924,7 +11255,7 @@ error: Delimiter 88 | width: round(to-zero, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:27 | 88 | width: round(to-zero, var(--width), 50px); @@ -10972,7 +11303,7 @@ error: Ident 88 | width: round(to-zero, var(--width), 50px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:31 | 88 | width: round(to-zero, var(--width), 50px); @@ -10984,7 +11315,7 @@ error: DashedIdent 88 | width: round(to-zero, var(--width), 50px); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:39 | 88 | width: round(to-zero, var(--width), 50px); @@ -10996,7 +11327,7 @@ error: Delimiter 88 | width: round(to-zero, var(--width), 50px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:88:41 | 88 | width: round(to-zero, var(--width), 50px); @@ -11123,6 +11454,12 @@ error: SimpleBlock 95 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:92:5 + | +92 | width: min(10px, 20px, 40px, 100px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:92:5 | @@ -11147,7 +11484,7 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:12 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11165,7 +11502,7 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:16 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11225,7 +11562,7 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:20 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11237,7 +11574,7 @@ error: Delimiter 92 | width: min(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:22 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11297,7 +11634,7 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:26 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11309,7 +11646,7 @@ error: Delimiter 92 | width: min(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:28 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11369,7 +11706,7 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:32 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11381,7 +11718,7 @@ error: Delimiter 92 | width: min(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:92:34 | 92 | width: min(10px, 20px, 40px, 100px); @@ -11441,6 +11778,12 @@ error: Ident 92 | width: min(10px, 20px, 40px, 100px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:93:5 + | +93 | width: max(10px, 20px, 40px, 100px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:93:5 | @@ -11465,7 +11808,7 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:12 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11483,7 +11826,7 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:16 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11543,7 +11886,7 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:20 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11555,7 +11898,7 @@ error: Delimiter 93 | width: max(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:22 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11615,7 +11958,7 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:26 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11627,7 +11970,7 @@ error: Delimiter 93 | width: max(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:28 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11687,7 +12030,7 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:32 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11699,7 +12042,7 @@ error: Delimiter 93 | width: max(10px, 20px, 40px, 100px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:93:34 | 93 | width: max(10px, 20px, 40px, 100px); @@ -11759,6 +12102,12 @@ error: Ident 93 | width: max(10px, 20px, 40px, 100px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:94:5 + | +94 | width: min( 10px , 20px , 40px , 100px ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:94:5 | @@ -11783,7 +12132,7 @@ error: Ident 94 | width: min( 10px , 20px , 40px , 100px ); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:12 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -11801,7 +12150,7 @@ error: Ident 94 | width: min( 10px , 20px , 40px , 100px ); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:19 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -11861,7 +12210,7 @@ error: Ident 94 | width: min( 10px , 20px , 40px , 100px ); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:26 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -11873,7 +12222,7 @@ error: Delimiter 94 | width: min( 10px , 20px , 40px , 100px ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:30 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -11933,7 +12282,7 @@ error: Ident 94 | width: min( 10px , 20px , 40px , 100px ); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:37 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -11945,7 +12294,7 @@ error: Delimiter 94 | width: min( 10px , 20px , 40px , 100px ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:41 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -12005,7 +12354,7 @@ error: Ident 94 | width: min( 10px , 20px , 40px , 100px ); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:48 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -12017,7 +12366,7 @@ error: Delimiter 94 | width: min( 10px , 20px , 40px , 100px ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:94:52 | 94 | width: min( 10px , 20px , 40px , 100px ); @@ -12138,6 +12487,12 @@ error: SimpleBlock 99 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:98:5 + | +98 | width: rem(-18px, 5px); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:98:5 | @@ -12162,7 +12517,7 @@ error: Ident 98 | width: rem(-18px, 5px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:98:12 | 98 | width: rem(-18px, 5px); @@ -12180,7 +12535,7 @@ error: Ident 98 | width: rem(-18px, 5px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:98:16 | 98 | width: rem(-18px, 5px); @@ -12240,7 +12595,7 @@ error: Ident 98 | width: rem(-18px, 5px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:98:21 | 98 | width: rem(-18px, 5px); @@ -12252,7 +12607,7 @@ error: Delimiter 98 | width: rem(-18px, 5px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:98:23 | 98 | width: rem(-18px, 5px); @@ -12376,6 +12731,12 @@ error: SimpleBlock 104 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:102:5 + | +102 | transform: rotate(sin(45deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:102:5 | @@ -12400,7 +12761,7 @@ error: Ident 102 | transform: rotate(sin(45deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:102:16 | 102 | transform: rotate(sin(45deg)); @@ -12418,7 +12779,7 @@ error: Ident 102 | transform: rotate(sin(45deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:102:23 | 102 | transform: rotate(sin(45deg)); @@ -12436,7 +12797,7 @@ error: Ident 102 | transform: rotate(sin(45deg)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:102:27 | 102 | transform: rotate(sin(45deg)); @@ -12496,6 +12857,12 @@ error: Ident 102 | transform: rotate(sin(45deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:103:5 + | +103 | transform: rotate(sin(3.14159 / 4)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:103:5 | @@ -12520,7 +12887,7 @@ error: Ident 103 | transform: rotate(sin(3.14159 / 4)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:103:16 | 103 | transform: rotate(sin(3.14159 / 4)); @@ -12538,7 +12905,7 @@ error: Ident 103 | transform: rotate(sin(3.14159 / 4)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:103:23 | 103 | transform: rotate(sin(3.14159 / 4)); @@ -12556,7 +12923,7 @@ error: Ident 103 | transform: rotate(sin(3.14159 / 4)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:103:27 | 103 | transform: rotate(sin(3.14159 / 4)); @@ -12692,6 +13059,12 @@ error: SimpleBlock 109 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:107:5 + | +107 | transform: rotate(cos(45deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:107:5 | @@ -12716,7 +13089,7 @@ error: Ident 107 | transform: rotate(cos(45deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:107:16 | 107 | transform: rotate(cos(45deg)); @@ -12734,7 +13107,7 @@ error: Ident 107 | transform: rotate(cos(45deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:107:23 | 107 | transform: rotate(cos(45deg)); @@ -12752,7 +13125,7 @@ error: Ident 107 | transform: rotate(cos(45deg)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:107:27 | 107 | transform: rotate(cos(45deg)); @@ -12812,6 +13185,12 @@ error: Ident 107 | transform: rotate(cos(45deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:108:5 + | +108 | transform: rotate(cos(3.14159 / 4)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:108:5 | @@ -12836,7 +13215,7 @@ error: Ident 108 | transform: rotate(cos(3.14159 / 4)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:108:16 | 108 | transform: rotate(cos(3.14159 / 4)); @@ -12854,7 +13233,7 @@ error: Ident 108 | transform: rotate(cos(3.14159 / 4)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:108:23 | 108 | transform: rotate(cos(3.14159 / 4)); @@ -12872,7 +13251,7 @@ error: Ident 108 | transform: rotate(cos(3.14159 / 4)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:108:27 | 108 | transform: rotate(cos(3.14159 / 4)); @@ -13008,6 +13387,12 @@ error: SimpleBlock 114 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:112:5 + | +112 | transform: rotate(asin(45deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:112:5 | @@ -13032,7 +13417,7 @@ error: Ident 112 | transform: rotate(asin(45deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:112:16 | 112 | transform: rotate(asin(45deg)); @@ -13050,7 +13435,7 @@ error: Ident 112 | transform: rotate(asin(45deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:112:23 | 112 | transform: rotate(asin(45deg)); @@ -13068,7 +13453,7 @@ error: Ident 112 | transform: rotate(asin(45deg)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:112:28 | 112 | transform: rotate(asin(45deg)); @@ -13128,6 +13513,12 @@ error: Ident 112 | transform: rotate(asin(45deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:113:5 + | +113 | transform: rotate(asin(pi / 4)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:113:5 | @@ -13152,7 +13543,7 @@ error: Ident 113 | transform: rotate(asin(pi / 4)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:113:16 | 113 | transform: rotate(asin(pi / 4)); @@ -13170,7 +13561,7 @@ error: Ident 113 | transform: rotate(asin(pi / 4)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:113:23 | 113 | transform: rotate(asin(pi / 4)); @@ -13188,7 +13579,7 @@ error: Ident 113 | transform: rotate(asin(pi / 4)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:113:28 | 113 | transform: rotate(asin(pi / 4)); @@ -13324,6 +13715,12 @@ error: SimpleBlock 119 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:117:5 + | +117 | transform: rotate(acos(45deg)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:117:5 | @@ -13348,7 +13745,7 @@ error: Ident 117 | transform: rotate(acos(45deg)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:117:16 | 117 | transform: rotate(acos(45deg)); @@ -13366,7 +13763,7 @@ error: Ident 117 | transform: rotate(acos(45deg)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:117:23 | 117 | transform: rotate(acos(45deg)); @@ -13384,7 +13781,7 @@ error: Ident 117 | transform: rotate(acos(45deg)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:117:28 | 117 | transform: rotate(acos(45deg)); @@ -13444,6 +13841,12 @@ error: Ident 117 | transform: rotate(acos(45deg)); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:118:5 + | +118 | transform: rotate(acos(pi / 4)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:118:5 | @@ -13468,7 +13871,7 @@ error: Ident 118 | transform: rotate(acos(pi / 4)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:118:16 | 118 | transform: rotate(acos(pi / 4)); @@ -13486,7 +13889,7 @@ error: Ident 118 | transform: rotate(acos(pi / 4)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:118:23 | 118 | transform: rotate(acos(pi / 4)); @@ -13504,7 +13907,7 @@ error: Ident 118 | transform: rotate(acos(pi / 4)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:118:28 | 118 | transform: rotate(acos(pi / 4)); @@ -13637,6 +14040,12 @@ error: SimpleBlock 123 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:122:5 + | +122 | transform: rotate(atan(1 / -1)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:122:5 | @@ -13661,7 +14070,7 @@ error: Ident 122 | transform: rotate(atan(1 / -1)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:122:16 | 122 | transform: rotate(atan(1 / -1)); @@ -13679,7 +14088,7 @@ error: Ident 122 | transform: rotate(atan(1 / -1)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:122:23 | 122 | transform: rotate(atan(1 / -1)); @@ -13697,7 +14106,7 @@ error: Ident 122 | transform: rotate(atan(1 / -1)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:122:28 | 122 | transform: rotate(atan(1 / -1)); @@ -13830,6 +14239,12 @@ error: SimpleBlock 127 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:126:5 + | +126 | transform: rotate(atan2(1, -1)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:126:5 | @@ -13854,7 +14269,7 @@ error: Ident 126 | transform: rotate(atan2(1, -1)); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:126:16 | 126 | transform: rotate(atan2(1, -1)); @@ -13872,7 +14287,7 @@ error: Ident 126 | transform: rotate(atan2(1, -1)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:126:23 | 126 | transform: rotate(atan2(1, -1)); @@ -13890,7 +14305,7 @@ error: Ident 126 | transform: rotate(atan2(1, -1)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:126:29 | 126 | transform: rotate(atan2(1, -1)); @@ -13932,7 +14347,7 @@ error: Number 126 | transform: rotate(atan2(1, -1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:126:30 | 126 | transform: rotate(atan2(1, -1)); @@ -13944,7 +14359,7 @@ error: Delimiter 126 | transform: rotate(atan2(1, -1)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:126:32 | 126 | transform: rotate(atan2(1, -1)); @@ -14047,6 +14462,12 @@ error: SimpleBlock 131 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:130:5 + | +130 | size: sqrt(250); + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:130:5 | @@ -14071,7 +14492,7 @@ error: Ident 130 | size: sqrt(250); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:130:11 | 130 | size: sqrt(250); @@ -14089,7 +14510,7 @@ error: Ident 130 | size: sqrt(250); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:130:16 | 130 | size: sqrt(250); @@ -14192,6 +14613,12 @@ error: SimpleBlock 135 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:134:5 + | +134 | size: exp(250 * 2); + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:134:5 | @@ -14216,7 +14643,7 @@ error: Ident 134 | size: exp(250 * 2); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:134:11 | 134 | size: exp(250 * 2); @@ -14234,7 +14661,7 @@ error: Ident 134 | size: exp(250 * 2); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:134:15 | 134 | size: exp(250 * 2); @@ -14367,6 +14794,12 @@ error: SimpleBlock 139 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:138:5 + | +138 | background-position: calc(10% * abs(-10%)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:138:5 | @@ -14391,7 +14824,7 @@ error: Ident 138 | background-position: calc(10% * abs(-10%)); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:138:26 | 138 | background-position: calc(10% * abs(-10%)); @@ -14409,7 +14842,7 @@ error: Ident 138 | background-position: calc(10% * abs(-10%)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:138:31 | 138 | background-position: calc(10% * abs(-10%)); @@ -14493,7 +14926,7 @@ error: Ident 138 | background-position: calc(10% * abs(-10%)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:138:41 | 138 | background-position: calc(10% * abs(-10%)); @@ -14614,6 +15047,12 @@ error: SimpleBlock 149 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:142:5 + | +142 | background-position: sign(10%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:142:5 | @@ -14638,7 +15077,7 @@ error: Ident 142 | background-position: sign(10%); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:142:26 | 142 | background-position: sign(10%); @@ -14656,7 +15095,7 @@ error: Ident 142 | background-position: sign(10%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:142:31 | 142 | background-position: sign(10%); @@ -14704,6 +15143,12 @@ error: Number 142 | background-position: sign(10%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:143:5 + | +143 | background-position: sign(10% * 2); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:143:5 | @@ -14728,7 +15173,7 @@ error: Ident 143 | background-position: sign(10% * 2); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:143:26 | 143 | background-position: sign(10% * 2); @@ -14746,7 +15191,7 @@ error: Ident 143 | background-position: sign(10% * 2); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:143:31 | 143 | background-position: sign(10% * 2); @@ -14824,6 +15269,12 @@ error: Number 143 | background-position: sign(10% * 2); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:144:5 + | +144 | background-position: sign( 10% * 2 ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:144:5 | @@ -14848,7 +15299,7 @@ error: Ident 144 | background-position: sign( 10% * 2 ); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:144:26 | 144 | background-position: sign( 10% * 2 ); @@ -14866,7 +15317,7 @@ error: Ident 144 | background-position: sign( 10% * 2 ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:144:34 | 144 | background-position: sign( 10% * 2 ); @@ -14944,6 +15395,12 @@ error: Number 144 | background-position: sign( 10% * 2 ); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:145:5 + | +145 | background-position: sign(10%*2); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:145:5 | @@ -14968,7 +15425,7 @@ error: Ident 145 | background-position: sign(10%*2); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:145:26 | 145 | background-position: sign(10%*2); @@ -14986,7 +15443,7 @@ error: Ident 145 | background-position: sign(10%*2); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:145:31 | 145 | background-position: sign(10%*2); @@ -15064,6 +15521,12 @@ error: Number 145 | background-position: sign(10%*2); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:146:5 + | +146 | background-position: sign( 10 + 10 ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:146:5 | @@ -15088,7 +15551,7 @@ error: Ident 146 | background-position: sign( 10 + 10 ); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:146:26 | 146 | background-position: sign( 10 + 10 ); @@ -15106,7 +15569,7 @@ error: Ident 146 | background-position: sign( 10 + 10 ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:146:34 | 146 | background-position: sign( 10 + 10 ); @@ -15190,6 +15653,12 @@ error: Number 146 | background-position: sign( 10 + 10 ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:147:5 + | +147 | background-position: sign( 10% ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:147:5 | @@ -15214,7 +15683,7 @@ error: Ident 147 | background-position: sign( 10% ); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:147:26 | 147 | background-position: sign( 10% ); @@ -15232,7 +15701,7 @@ error: Ident 147 | background-position: sign( 10% ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:147:34 | 147 | background-position: sign( 10% ); @@ -15280,6 +15749,12 @@ error: Number 147 | background-position: sign( 10% ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/calc/input.css:148:5 + | +148 | width: calc( ( 100px + 100px ) * 2 ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/calc/input.css:148:5 | @@ -15304,7 +15779,7 @@ error: Ident 148 | width: calc( ( 100px + 100px ) * 2 ); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:148:12 | 148 | width: calc( ( 100px + 100px ) * 2 ); @@ -15322,7 +15797,7 @@ error: Ident 148 | width: calc( ( 100px + 100px ) * 2 ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/calc/input.css:148:20 | 148 | width: calc( ( 100px + 100px ) * 2 ); diff --git a/crates/swc_css_parser/tests/fixture/function/mix/span.rust-debug b/crates/swc_css_parser/tests/fixture/function/mix/span.rust-debug index b61243b06dd..fe9a770ea5b 100644 --- a/crates/swc_css_parser/tests/fixture/function/mix/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/function/mix/span.rust-debug @@ -81,6 +81,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/mix/input.css:3:5 + | +3 | opacity: mix( 70% by ease ; 0% ; 100% ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/mix/input.css:3:5 | @@ -105,7 +111,7 @@ error: Ident 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:14 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -123,7 +129,7 @@ error: Ident 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:19 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -141,7 +147,7 @@ error: Number 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:23 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -153,7 +159,7 @@ error: Ident 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:26 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -165,7 +171,7 @@ error: Ident 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:31 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -177,7 +183,7 @@ error: Delimiter 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:33 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -195,7 +201,7 @@ error: Number 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:36 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -207,7 +213,7 @@ error: Delimiter 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:3:38 | 3 | opacity: mix( 70% by ease ; 0% ; 100% ); @@ -225,6 +231,12 @@ error: Number 3 | opacity: mix( 70% by ease ; 0% ; 100% ); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/mix/input.css:4:5 + | +4 | opacity: mix(70%;0%;100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/mix/input.css:4:5 | @@ -249,7 +261,7 @@ error: Ident 4 | opacity: mix(70%;0%;100%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:14 | 4 | opacity: mix(70%;0%;100%); @@ -267,7 +279,7 @@ error: Ident 4 | opacity: mix(70%;0%;100%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:18 | 4 | opacity: mix(70%;0%;100%); @@ -285,7 +297,7 @@ error: Number 4 | opacity: mix(70%;0%;100%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:21 | 4 | opacity: mix(70%;0%;100%); @@ -297,7 +309,7 @@ error: Delimiter 4 | opacity: mix(70%;0%;100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:22 | 4 | opacity: mix(70%;0%;100%); @@ -315,7 +327,7 @@ error: Number 4 | opacity: mix(70%;0%;100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:24 | 4 | opacity: mix(70%;0%;100%); @@ -327,7 +339,7 @@ error: Delimiter 4 | opacity: mix(70%;0%;100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/mix/input.css:4:25 | 4 | opacity: mix(70%;0%;100%); diff --git a/crates/swc_css_parser/tests/fixture/function/unknown/span.rust-debug b/crates/swc_css_parser/tests/fixture/function/unknown/span.rust-debug index 17ef88ffdcb..f4cb1c949f6 100644 --- a/crates/swc_css_parser/tests/fixture/function/unknown/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/function/unknown/span.rust-debug @@ -81,6 +81,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/unknown/input.css:2:5 + | +2 | prod: fn(100px); + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/unknown/input.css:2:5 | @@ -105,7 +111,7 @@ error: Ident 2 | prod: fn(100px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:2:11 | 2 | prod: fn(100px); @@ -123,7 +129,7 @@ error: Ident 2 | prod: fn(100px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:2:14 | 2 | prod: fn(100px); @@ -153,6 +159,12 @@ error: Ident 2 | prod: fn(100px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/unknown/input.css:3:5 + | +3 | prod: --fn(100px); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/unknown/input.css:3:5 | @@ -177,7 +189,7 @@ error: Ident 3 | prod: --fn(100px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:3:11 | 3 | prod: --fn(100px); @@ -195,7 +207,7 @@ error: Ident 3 | prod: --fn(100px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:3:16 | 3 | prod: --fn(100px); @@ -225,6 +237,12 @@ error: Ident 3 | prod: --fn(100px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/unknown/input.css:4:5 + | +4 | prod: --fn--fn(100px); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/unknown/input.css:4:5 | @@ -249,7 +267,7 @@ error: Ident 4 | prod: --fn--fn(100px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:4:11 | 4 | prod: --fn--fn(100px); @@ -267,7 +285,7 @@ error: Ident 4 | prod: --fn--fn(100px); | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/unknown/input.css:4:20 | 4 | prod: --fn--fn(100px); diff --git a/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug b/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug index 251210df910..4ca6fb283e0 100644 --- a/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 49 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:2:5 + | +2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:2:23 | 2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); @@ -143,6 +149,12 @@ error: UrlValueRaw 2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:3:5 + | +3 | background-image: url("./image (1).jpg"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:3:5 | @@ -167,7 +179,7 @@ error: Ident 3 | background-image: url("./image (1).jpg"); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:3:23 | 3 | background-image: url("./image (1).jpg"); @@ -197,6 +209,12 @@ error: Str 3 | background-image: url("./image (1).jpg"); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:4:5 + | +4 | background-image: url('./image (1).jpg'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:4:5 | @@ -221,7 +239,7 @@ error: Ident 4 | background-image: url('./image (1).jpg'); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:4:23 | 4 | background-image: url('./image (1).jpg'); @@ -251,6 +269,12 @@ error: Str 4 | background-image: url('./image (1).jpg'); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:5:5 + | +5 | background-image: URL('./image (1).jpg'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:5:5 | @@ -275,7 +299,7 @@ error: Ident 5 | background-image: URL('./image (1).jpg'); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:5:23 | 5 | background-image: URL('./image (1).jpg'); @@ -305,6 +329,12 @@ error: Str 5 | background-image: URL('./image (1).jpg'); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:6:5 + | +6 | background-image: url( './image (1).jpg'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:6:5 | @@ -329,7 +359,7 @@ error: Ident 6 | background-image: url( './image (1).jpg'); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:6:23 | 6 | background-image: url( './image (1).jpg'); @@ -359,6 +389,12 @@ error: Str 6 | background-image: url( './image (1).jpg'); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:7:5 + | +7 | background-image: url('./image (1).jpg' ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:7:5 | @@ -383,7 +419,7 @@ error: Ident 7 | background-image: url('./image (1).jpg' ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:7:23 | 7 | background-image: url('./image (1).jpg' ); @@ -413,6 +449,12 @@ error: Str 7 | background-image: url('./image (1).jpg' ); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:8:5 + | +8 | background-image: url( './image (1).jpg' ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:8:5 | @@ -437,7 +479,7 @@ error: Ident 8 | background-image: url( './image (1).jpg' ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:8:23 | 8 | background-image: url( './image (1).jpg' ); @@ -467,6 +509,14 @@ error: Str 8 | background-image: url( './image (1).jpg' ); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:9:5 + | +9 | / background-image: url( +10 | | './image (1).jpg' +11 | | ); + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:9:5 | @@ -495,7 +545,7 @@ error: Ident 9 | background-image: url( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:9:23 | 9 | background-image: url( @@ -531,6 +581,12 @@ error: Str 10 | './image (1).jpg' | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:12:5 + | +12 | background-image: url(); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:12:5 | @@ -555,7 +611,7 @@ error: Ident 12 | background-image: url(); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:12:23 | 12 | background-image: url(); @@ -585,6 +641,12 @@ error: UrlValueRaw 12 | background-image: url(); | ^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:13:5 + | +13 | background-image: url( ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:13:5 | @@ -609,7 +671,7 @@ error: Ident 13 | background-image: url( ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:13:23 | 13 | background-image: url( ); @@ -639,6 +701,12 @@ error: UrlValueRaw 13 | background-image: url( ); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:14:5 + | +14 | background-image: url(""); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:14:5 | @@ -663,7 +731,7 @@ error: Ident 14 | background-image: url(""); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:14:23 | 14 | background-image: url(""); @@ -693,6 +761,12 @@ error: Str 14 | background-image: url(""); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:15:5 + | +15 | background-image: url( "" ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:15:5 | @@ -717,7 +791,7 @@ error: Ident 15 | background-image: url( "" ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:15:23 | 15 | background-image: url( "" ); @@ -747,6 +821,12 @@ error: Str 15 | background-image: url( "" ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:16:5 + | +16 | background-image: url(''); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:16:5 | @@ -771,7 +851,7 @@ error: Ident 16 | background-image: url(''); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:16:23 | 16 | background-image: url(''); @@ -801,6 +881,12 @@ error: Str 16 | background-image: url(''); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:17:5 + | +17 | background-image: url( '' ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:17:5 | @@ -825,7 +911,7 @@ error: Ident 17 | background-image: url( '' ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:17:23 | 17 | background-image: url( '' ); @@ -855,6 +941,12 @@ error: Str 17 | background-image: url( '' ); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:18:5 + | +18 | background-image: url( ' ' ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:18:5 | @@ -879,7 +971,7 @@ error: Ident 18 | background-image: url( ' ' ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:18:23 | 18 | background-image: url( ' ' ); @@ -909,6 +1001,12 @@ error: Str 18 | background-image: url( ' ' ); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:19:5 + | +19 | background-image: url(./image.png); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:19:5 | @@ -933,7 +1031,7 @@ error: Ident 19 | background-image: url(./image.png); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:19:23 | 19 | background-image: url(./image.png); @@ -963,6 +1061,12 @@ error: UrlValueRaw 19 | background-image: url(./image.png); | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:20:5 + | +20 | background-image: url( ./image.png ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:20:5 | @@ -987,7 +1091,7 @@ error: Ident 20 | background-image: url( ./image.png ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:20:23 | 20 | background-image: url( ./image.png ); @@ -1017,6 +1121,12 @@ error: UrlValueRaw 20 | background-image: url( ./image.png ); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:21:5 + | +21 | background-image: url( ./image\32.png ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:21:5 | @@ -1041,7 +1151,7 @@ error: Ident 21 | background-image: url( ./image\32.png ); | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:21:23 | 21 | background-image: url( ./image\32.png ); @@ -1071,6 +1181,14 @@ error: UrlValueRaw 21 | background-image: url( ./image\32.png ); | ^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:22:5 + | +22 | / background-image: url( +23 | | ./image\32.png +24 | | ); + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:22:5 | @@ -1099,7 +1217,7 @@ error: Ident 22 | background-image: url( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:22:23 | 22 | background-image: url( @@ -1141,6 +1259,18 @@ error: UrlValueRaw 24 | | ); | |____^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:25:5 + | +25 | / background-image: url( +26 | | +27 | | +28 | | +... | +32 | | +33 | | ); + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:25:5 | @@ -1177,7 +1307,7 @@ error: Ident 25 | background-image: url( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:25:23 | 25 | background-image: url( @@ -1235,6 +1365,18 @@ error: UrlValueRaw 33 | | ); | |____^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:34:5 + | +34 | / background-image: url( +35 | | +36 | | +37 | | +... | +41 | | +42 | | ); + | |________^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:34:5 | @@ -1271,7 +1413,7 @@ error: Ident 34 | background-image: url( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:34:23 | 34 | background-image: url( @@ -1329,6 +1471,12 @@ error: UrlValueRaw 42 | | ); | |_______^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:43:5 + | +43 | background: url(image.png\0001); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:43:5 | @@ -1353,7 +1501,7 @@ error: Ident 43 | background: url(image.png\0001); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:43:17 | 43 | background: url(image.png\0001); @@ -1383,6 +1531,12 @@ error: UrlValueRaw 43 | background: url(image.png\0001); | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:44:5 + | +44 | background: url(image.png\1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:44:5 | @@ -1407,7 +1561,7 @@ error: Ident 44 | background: url(image.png\1); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:44:17 | 44 | background: url(image.png\1); @@ -1437,6 +1591,12 @@ error: UrlValueRaw 44 | background: url(image.png\1); | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:45:5 + | +45 | background: url(image.png\D799); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:45:5 | @@ -1461,7 +1621,7 @@ error: Ident 45 | background: url(image.png\D799); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:45:17 | 45 | background: url(image.png\D799); @@ -1491,6 +1651,12 @@ error: UrlValueRaw 45 | background: url(image.png\D799); | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:46:5 + | +46 | background: url(image.png\E000); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:46:5 | @@ -1515,7 +1681,7 @@ error: Ident 46 | background: url(image.png\E000); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:46:17 | 46 | background: url(image.png\E000); @@ -1545,6 +1711,12 @@ error: UrlValueRaw 46 | background: url(image.png\E000); | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:47:5 + | +47 | background: url(image.png\10FFFF); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:47:5 | @@ -1569,7 +1741,7 @@ error: Ident 47 | background: url(image.png\10FFFF); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:47:17 | 47 | background: url(image.png\10FFFF); @@ -1599,6 +1771,12 @@ error: UrlValueRaw 47 | background: url(image.png\10FFFF); | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/function/url/input.css:48:5 + | +48 | background: url(18); + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/function/url/input.css:48:5 | @@ -1623,7 +1801,7 @@ error: Ident 48 | background: url(18); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/function/url/input.css:48:17 | 48 | background: url(18); diff --git a/crates/swc_css_parser/tests/fixture/hacks/span.rust-debug b/crates/swc_css_parser/tests/fixture/hacks/span.rust-debug index 36a51a8bc70..38b877cf3a9 100644 --- a/crates/swc_css_parser/tests/fixture/hacks/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/hacks/span.rust-debug @@ -316,6 +316,12 @@ error: SimpleBlock 4 | .selector { _property: value; } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hacks/input.css:4:13 + | +4 | .selector { _property: value; } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hacks/input.css:4:13 | @@ -340,7 +346,7 @@ error: Ident 4 | .selector { _property: value; } | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hacks/input.css:4:24 | 4 | .selector { _property: value; } @@ -406,6 +412,12 @@ error: SimpleBlock 5 | .selector { -property: value; } | ^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hacks/input.css:5:13 + | +5 | .selector { -property: value; } + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hacks/input.css:5:13 | @@ -430,7 +442,7 @@ error: Ident 5 | .selector { -property: value; } | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hacks/input.css:5:24 | 5 | .selector { -property: value; } @@ -496,6 +508,12 @@ error: SimpleBlock 6 | .selector { property: value\9; } | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hacks/input.css:6:13 + | +6 | .selector { property: value\9; } + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hacks/input.css:6:13 | @@ -520,7 +538,7 @@ error: Ident 6 | .selector { property: value\9; } | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hacks/input.css:6:23 | 6 | .selector { property: value\9; } @@ -586,6 +604,12 @@ error: SimpleBlock 7 | .selector { property/*\**/: value\9; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hacks/input.css:7:13 + | +7 | .selector { property/*\**/: value\9; } + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hacks/input.css:7:13 | @@ -610,7 +634,7 @@ error: Ident 7 | .selector { property/*\**/: value\9; } | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hacks/input.css:7:29 | 7 | .selector { property/*\**/: value\9; } diff --git a/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug b/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug index 27d108b66ec..ce7042fbe2c 100644 --- a/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 17 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:2:3 + | +2 | color: #000000; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:2:3 | @@ -113,7 +119,7 @@ error: Ident 2 | color: #000000; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:2:10 | 2 | color: #000000; @@ -131,6 +137,12 @@ error: HexColor 2 | color: #000000; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:3:3 + | +3 | color: #ffffff; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:3:3 | @@ -155,7 +167,7 @@ error: Ident 3 | color: #ffffff; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:3:10 | 3 | color: #ffffff; @@ -173,6 +185,12 @@ error: HexColor 3 | color: #ffffff; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:4:3 + | +4 | color: #FFFFFF; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:4:3 | @@ -197,7 +215,7 @@ error: Ident 4 | color: #FFFFFF; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:4:10 | 4 | color: #FFFFFF; @@ -215,6 +233,12 @@ error: HexColor 4 | color: #FFFFFF; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:5:3 + | +5 | color: #0000ffcc; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:5:3 | @@ -239,7 +263,7 @@ error: Ident 5 | color: #0000ffcc; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:5:10 | 5 | color: #0000ffcc; @@ -257,6 +281,12 @@ error: HexColor 5 | color: #0000ffcc; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:6:3 + | +6 | color: #0000FFCC; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:6:3 | @@ -281,7 +311,7 @@ error: Ident 6 | color: #0000FFCC; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:6:10 | 6 | color: #0000FFCC; @@ -299,6 +329,12 @@ error: HexColor 6 | color: #0000FFCC; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:7:3 + | +7 | color: #000; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:7:3 | @@ -323,7 +359,7 @@ error: Ident 7 | color: #000; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:7:10 | 7 | color: #000; @@ -341,6 +377,12 @@ error: HexColor 7 | color: #000; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:8:3 + | +8 | color: #fff; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:8:3 | @@ -365,7 +407,7 @@ error: Ident 8 | color: #fff; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:8:10 | 8 | color: #fff; @@ -383,6 +425,12 @@ error: HexColor 8 | color: #fff; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:9:3 + | +9 | color: #FFF; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:9:3 | @@ -407,7 +455,7 @@ error: Ident 9 | color: #FFF; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:9:10 | 9 | color: #FFF; @@ -425,6 +473,12 @@ error: HexColor 9 | color: #FFF; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:10:3 + | +10 | color: #0000; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:10:3 | @@ -449,7 +503,7 @@ error: Ident 10 | color: #0000; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:10:10 | 10 | color: #0000; @@ -467,6 +521,12 @@ error: HexColor 10 | color: #0000; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:11:3 + | +11 | color: #ffff; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:11:3 | @@ -491,7 +551,7 @@ error: Ident 11 | color: #ffff; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:11:10 | 11 | color: #ffff; @@ -509,6 +569,12 @@ error: HexColor 11 | color: #ffff; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:12:3 + | +12 | color: #FFFF; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:12:3 | @@ -533,7 +599,7 @@ error: Ident 12 | color: #FFFF; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:12:10 | 12 | color: #FFFF; @@ -551,6 +617,12 @@ error: HexColor 12 | color: #FFFF; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:13:3 + | +13 | color: #1; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:13:3 | @@ -575,7 +647,7 @@ error: Ident 13 | color: #1; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:13:10 | 13 | color: #1; @@ -593,6 +665,12 @@ error: HexColor 13 | color: #1; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:14:3 + | +14 | color: #FF; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:14:3 | @@ -617,7 +695,7 @@ error: Ident 14 | color: #FF; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:14:10 | 14 | color: #FF; @@ -635,6 +713,12 @@ error: HexColor 14 | color: #FF; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:15:3 + | +15 | color: #123456789; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:15:3 | @@ -659,7 +743,7 @@ error: Ident 15 | color: #123456789; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:15:10 | 15 | color: #123456789; @@ -677,6 +761,12 @@ error: HexColor 15 | color: #123456789; | ^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/hex-colors/input.css:16:3 + | +16 | color: #xyz; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/hex-colors/input.css:16:3 | @@ -701,7 +791,7 @@ error: Ident 16 | color: #xyz; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/hex-colors/input.css:16:10 | 16 | color: #xyz; diff --git a/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug b/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug index 89fa37936e6..732f1f0483d 100644 --- a/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 19 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:2:5 + | +2 | prop: important; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:2:5 | @@ -107,7 +113,7 @@ error: Ident 2 | prop: important; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:2:11 | 2 | prop: important; @@ -119,6 +125,12 @@ error: Ident 2 | prop: important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:3:5 + | +3 | color: red important; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:3:5 | @@ -143,7 +155,7 @@ error: Ident 3 | color: red important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:3:12 | 3 | color: red important; @@ -155,7 +167,7 @@ error: Ident 3 | color: red important; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:3:16 | 3 | color: red important; @@ -167,6 +179,12 @@ error: Ident 3 | color: red important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:4:5 + | +4 | width: 1px!important; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:4:5 | @@ -191,7 +209,7 @@ error: Ident 4 | width: 1px!important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:4:12 | 4 | width: 1px!important; @@ -233,6 +251,12 @@ error: Ident 4 | width: 1px!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:5:5 + | +5 | color: red!important; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:5:5 | @@ -257,7 +281,7 @@ error: Ident 5 | color: red!important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:5:12 | 5 | color: red!important; @@ -281,6 +305,12 @@ error: Ident 5 | color: red!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:6:5 + | +6 | color: red !important; + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:6:5 | @@ -305,7 +335,7 @@ error: Ident 6 | color: red !important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:6:12 | 6 | color: red !important; @@ -329,6 +359,12 @@ error: Ident 6 | color: red !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:7:5 + | +7 | color: red !important; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:7:5 | @@ -353,7 +389,7 @@ error: Ident 7 | color: red !important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:7:12 | 7 | color: red !important; @@ -377,6 +413,12 @@ error: Ident 7 | color: red !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:8:5 + | +8 | color: red ! important ; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:8:5 | @@ -401,7 +443,7 @@ error: Ident 8 | color: red ! important ; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:8:12 | 8 | color: red ! important ; @@ -425,6 +467,12 @@ error: Ident 8 | color: red ! important ; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:9:5 + | +9 | color: blue !IMPORTANT; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:9:5 | @@ -449,7 +497,7 @@ error: Ident 9 | color: blue !IMPORTANT; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:9:12 | 9 | color: blue !IMPORTANT; @@ -473,6 +521,12 @@ error: Ident 9 | color: blue !IMPORTANT; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:10:5 + | +10 | color: white ! IMPORTANT ; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:10:5 | @@ -497,7 +551,7 @@ error: Ident 10 | color: white ! IMPORTANT ; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:10:12 | 10 | color: white ! IMPORTANT ; @@ -521,6 +575,12 @@ error: Ident 10 | color: white ! IMPORTANT ; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:11:5 + | +11 | margin: 10px ! important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:11:5 | @@ -545,7 +605,7 @@ error: Ident 11 | margin: 10px ! important; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:11:13 | 11 | margin: 10px ! important; @@ -587,6 +647,12 @@ error: Ident 11 | margin: 10px ! important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:12:5 + | +12 | padding: 20px ! /* test */ important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:12:5 | @@ -611,7 +677,7 @@ error: Ident 12 | padding: 20px ! /* test */ important; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:12:14 | 12 | padding: 20px ! /* test */ important; @@ -653,6 +719,12 @@ error: Ident 12 | padding: 20px ! /* test */ important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:13:5 + | +13 | width: 100px ! /*! test */ important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:13:5 | @@ -677,7 +749,7 @@ error: Ident 13 | width: 100px ! /*! test */ important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:13:12 | 13 | width: 100px ! /*! test */ important; @@ -719,6 +791,12 @@ error: Ident 13 | width: 100px ! /*! test */ important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:14:5 + | +14 | height: 100px /*! test */ important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:14:5 | @@ -743,7 +821,7 @@ error: Ident 14 | height: 100px /*! test */ important; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:14:13 | 14 | height: 100px /*! test */ important; @@ -773,7 +851,7 @@ error: Ident 14 | height: 100px /*! test */ important; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:14:31 | 14 | height: 100px /*! test */ important; @@ -785,6 +863,12 @@ error: Ident 14 | height: 100px /*! test */ important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:15:5 + | +15 | z-index: 1 ""! important; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:15:5 | @@ -809,7 +893,7 @@ error: Ident 15 | z-index: 1 ""! important; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:15:14 | 15 | z-index: 1 ""! important; @@ -821,7 +905,7 @@ error: Integer 15 | z-index: 1 ""! important; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:15:16 | 15 | z-index: 1 ""! important; @@ -845,6 +929,12 @@ error: Ident 15 | z-index: 1 ""! important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:16:5 + | +16 | padding: 1px/* sep */!important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:16:5 | @@ -869,7 +959,7 @@ error: Ident 16 | padding: 1px/* sep */!important; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:16:14 | 16 | padding: 1px/* sep */!important; @@ -911,6 +1001,12 @@ error: Ident 16 | padding: 1px/* sep */!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:17:5 + | +17 | prop: red !iMpOrTaNt; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:17:5 | @@ -935,7 +1031,7 @@ error: Ident 17 | prop: red !iMpOrTaNt; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:17:11 | 17 | prop: red !iMpOrTaNt; @@ -959,6 +1055,12 @@ error: Ident 17 | prop: red !iMpOrTaNt; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/important/basic/input.css:18:5 + | +18 | color: red !imp\ortant; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/important/basic/input.css:18:5 | @@ -983,7 +1085,7 @@ error: Ident 18 | color: red !imp\ortant; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/important/basic/input.css:18:12 | 18 | color: red !imp\ortant; diff --git a/crates/swc_css_parser/tests/fixture/number/span.rust-debug b/crates/swc_css_parser/tests/fixture/number/span.rust-debug index 4257c54ebf2..7ac397260ba 100644 --- a/crates/swc_css_parser/tests/fixture/number/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/number/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 59 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:2:5 + | +2 | property: 10; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | property: 10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:2:15 | 2 | property: 10; @@ -125,6 +131,12 @@ error: Integer 2 | property: 10; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:3:5 + | +3 | property: +10; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:3:5 | @@ -149,7 +161,7 @@ error: Ident 3 | property: +10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:3:15 | 3 | property: +10; @@ -161,6 +173,12 @@ error: Integer 3 | property: +10; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:4:5 + | +4 | property: -10; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:4:5 | @@ -185,7 +203,7 @@ error: Ident 4 | property: -10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:4:15 | 4 | property: -10; @@ -197,6 +215,12 @@ error: Integer 4 | property: -10; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:5:5 + | +5 | property: 0.1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:5:5 | @@ -221,7 +245,7 @@ error: Ident 5 | property: 0.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:5:15 | 5 | property: 0.1; @@ -233,6 +257,12 @@ error: Number 5 | property: 0.1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:6:5 + | +6 | property: +0.1; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:6:5 | @@ -257,7 +287,7 @@ error: Ident 6 | property: +0.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:6:15 | 6 | property: +0.1; @@ -269,6 +299,12 @@ error: Number 6 | property: +0.1; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:7:5 + | +7 | property: -0.1; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:7:5 | @@ -293,7 +329,7 @@ error: Ident 7 | property: -0.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:7:15 | 7 | property: -0.1; @@ -305,6 +341,12 @@ error: Number 7 | property: -0.1; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:8:5 + | +8 | property: -.1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:8:5 | @@ -329,7 +371,7 @@ error: Ident 8 | property: -.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:8:15 | 8 | property: -.1; @@ -341,6 +383,12 @@ error: Number 8 | property: -.1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:9:5 + | +9 | property: +.1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:9:5 | @@ -365,7 +413,7 @@ error: Ident 9 | property: +.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:9:15 | 9 | property: +.1; @@ -377,6 +425,12 @@ error: Number 9 | property: +.1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:10:5 + | +10 | property: 0; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:10:5 | @@ -401,7 +455,7 @@ error: Ident 10 | property: 0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:10:15 | 10 | property: 0; @@ -413,6 +467,12 @@ error: Integer 10 | property: 0; | ^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:11:5 + | +11 | property: 10; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:11:5 | @@ -437,7 +497,7 @@ error: Ident 11 | property: 10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:11:15 | 11 | property: 10; @@ -449,6 +509,12 @@ error: Integer 11 | property: 10; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:12:5 + | +12 | property: .10; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:12:5 | @@ -473,7 +539,7 @@ error: Ident 12 | property: .10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:12:15 | 12 | property: .10; @@ -485,6 +551,12 @@ error: Number 12 | property: .10; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:13:5 + | +13 | property: 12.34; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:13:5 | @@ -509,7 +581,7 @@ error: Ident 13 | property: 12.34; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:13:15 | 13 | property: 12.34; @@ -521,6 +593,12 @@ error: Number 13 | property: 12.34; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:14:5 + | +14 | property: 0.1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:14:5 | @@ -545,7 +623,7 @@ error: Ident 14 | property: 0.1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:14:15 | 14 | property: 0.1; @@ -557,6 +635,12 @@ error: Number 14 | property: 0.1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:15:5 + | +15 | property: 1.0; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:15:5 | @@ -581,7 +665,7 @@ error: Ident 15 | property: 1.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:15:15 | 15 | property: 1.0; @@ -593,6 +677,12 @@ error: Number 15 | property: 1.0; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:16:5 + | +16 | property: 0.0; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:16:5 | @@ -617,7 +707,7 @@ error: Ident 16 | property: 0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:16:15 | 16 | property: 0.0; @@ -629,6 +719,12 @@ error: Number 16 | property: 0.0; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:17:5 + | +17 | property: +0.0; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:17:5 | @@ -653,7 +749,7 @@ error: Ident 17 | property: +0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:17:15 | 17 | property: +0.0; @@ -665,6 +761,12 @@ error: Number 17 | property: +0.0; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:18:5 + | +18 | property: -0.0; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:18:5 | @@ -689,7 +791,7 @@ error: Ident 18 | property: -0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:18:15 | 18 | property: -0.0; @@ -701,6 +803,12 @@ error: Number 18 | property: -0.0; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:19:5 + | +19 | property: .0; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:19:5 | @@ -725,7 +833,7 @@ error: Ident 19 | property: .0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:19:15 | 19 | property: .0; @@ -737,6 +845,12 @@ error: Number 19 | property: .0; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:20:5 + | +20 | property: 1.200000; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:20:5 | @@ -761,7 +875,7 @@ error: Ident 20 | property: 1.200000; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:20:15 | 20 | property: 1.200000; @@ -773,6 +887,12 @@ error: Number 20 | property: 1.200000; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:21:5 + | +21 | property: 1.2e2; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:21:5 | @@ -797,7 +917,7 @@ error: Ident 21 | property: 1.2e2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:21:15 | 21 | property: 1.2e2; @@ -809,6 +929,12 @@ error: Number 21 | property: 1.2e2; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:22:5 + | +22 | property: 1e2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:22:5 | @@ -833,7 +959,7 @@ error: Ident 22 | property: 1e2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:22:15 | 22 | property: 1e2; @@ -845,6 +971,12 @@ error: Number 22 | property: 1e2; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:23:5 + | +23 | property: .2e2; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:23:5 | @@ -869,7 +1001,7 @@ error: Ident 23 | property: .2e2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:23:15 | 23 | property: .2e2; @@ -881,6 +1013,12 @@ error: Number 23 | property: .2e2; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:24:5 + | +24 | property: 1.2E2; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:24:5 | @@ -905,7 +1043,7 @@ error: Ident 24 | property: 1.2E2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:24:15 | 24 | property: 1.2E2; @@ -917,6 +1055,12 @@ error: Number 24 | property: 1.2E2; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:25:5 + | +25 | property: 1.2e+2; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:25:5 | @@ -941,7 +1085,7 @@ error: Ident 25 | property: 1.2e+2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:25:15 | 25 | property: 1.2e+2; @@ -953,6 +1097,12 @@ error: Number 25 | property: 1.2e+2; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:26:5 + | +26 | property: 1.2e-2; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:26:5 | @@ -977,7 +1127,7 @@ error: Ident 26 | property: 1.2e-2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:26:15 | 26 | property: 1.2e-2; @@ -989,6 +1139,12 @@ error: Number 26 | property: 1.2e-2; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:27:5 + | +27 | property: -1; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:27:5 | @@ -1013,7 +1169,7 @@ error: Ident 27 | property: -1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:27:15 | 27 | property: -1; @@ -1025,6 +1181,12 @@ error: Integer 27 | property: -1; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:28:5 + | +28 | property: -1.2; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:28:5 | @@ -1049,7 +1211,7 @@ error: Ident 28 | property: -1.2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:28:15 | 28 | property: -1.2; @@ -1061,6 +1223,12 @@ error: Number 28 | property: -1.2; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:29:5 + | +29 | property: .2; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:29:5 | @@ -1085,7 +1253,7 @@ error: Ident 29 | property: .2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:29:15 | 29 | property: .2; @@ -1097,6 +1265,12 @@ error: Number 29 | property: .2; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:30:5 + | +30 | property: -.2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:30:5 | @@ -1121,7 +1295,7 @@ error: Ident 30 | property: -.2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:30:15 | 30 | property: -.2; @@ -1133,6 +1307,12 @@ error: Number 30 | property: -.2; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:31:5 + | +31 | property: +.2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:31:5 | @@ -1157,7 +1337,7 @@ error: Ident 31 | property: +.2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:31:15 | 31 | property: +.2; @@ -1169,6 +1349,12 @@ error: Number 31 | property: +.2; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:32:5 + | +32 | property: -1.2e3; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:32:5 | @@ -1193,7 +1379,7 @@ error: Ident 32 | property: -1.2e3; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:32:15 | 32 | property: -1.2e3; @@ -1205,6 +1391,12 @@ error: Number 32 | property: -1.2e3; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:33:5 + | +33 | property: 1.75; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:33:5 | @@ -1229,7 +1421,7 @@ error: Ident 33 | property: 1.75; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:33:15 | 33 | property: 1.75; @@ -1241,6 +1433,12 @@ error: Number 33 | property: 1.75; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:34:5 + | +34 | property: +1.75; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:34:5 | @@ -1265,7 +1463,7 @@ error: Ident 34 | property: +1.75; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:34:15 | 34 | property: +1.75; @@ -1277,6 +1475,12 @@ error: Number 34 | property: +1.75; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:35:5 + | +35 | property: 1e0; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:35:5 | @@ -1301,7 +1505,7 @@ error: Ident 35 | property: 1e0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:35:15 | 35 | property: 1e0; @@ -1313,6 +1517,12 @@ error: Number 35 | property: 1e0; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:36:5 + | +36 | property: 1e1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:36:5 | @@ -1337,7 +1547,7 @@ error: Ident 36 | property: 1e1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:36:15 | 36 | property: 1e1; @@ -1349,6 +1559,12 @@ error: Number 36 | property: 1e1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:37:5 + | +37 | property: 1e+1; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:37:5 | @@ -1373,7 +1589,7 @@ error: Ident 37 | property: 1e+1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:37:15 | 37 | property: 1e+1; @@ -1385,6 +1601,12 @@ error: Number 37 | property: 1e+1; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:38:5 + | +38 | property: 1e-1; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:38:5 | @@ -1409,7 +1631,7 @@ error: Ident 38 | property: 1e-1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:38:15 | 38 | property: 1e-1; @@ -1421,6 +1643,12 @@ error: Number 38 | property: 1e-1; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:39:5 + | +39 | property: 1e-10; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:39:5 | @@ -1445,7 +1673,7 @@ error: Ident 39 | property: 1e-10; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:39:15 | 39 | property: 1e-10; @@ -1457,6 +1685,12 @@ error: Number 39 | property: 1e-10; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:40:5 + | +40 | property: 1+2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:40:5 | @@ -1481,7 +1715,7 @@ error: Ident 40 | property: 1+2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:40:15 | 40 | property: 1+2; @@ -1493,7 +1727,7 @@ error: Integer 40 | property: 1+2; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:40:16 | 40 | property: 1+2; @@ -1505,6 +1739,12 @@ error: Integer 40 | property: 1+2; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:41:5 + | +41 | property: 1-2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:41:5 | @@ -1529,7 +1769,7 @@ error: Ident 41 | property: 1-2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:41:15 | 41 | property: 1-2; @@ -1541,7 +1781,7 @@ error: Integer 41 | property: 1-2; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:41:16 | 41 | property: 1-2; @@ -1553,6 +1793,12 @@ error: Integer 41 | property: 1-2; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:42:5 + | +42 | property: 4.01; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:42:5 | @@ -1577,7 +1823,7 @@ error: Ident 42 | property: 4.01; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:42:15 | 42 | property: 4.01; @@ -1589,6 +1835,12 @@ error: Number 42 | property: 4.01; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:43:5 + | +43 | property: -456.8; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:43:5 | @@ -1613,7 +1865,7 @@ error: Ident 43 | property: -456.8; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:43:15 | 43 | property: -456.8; @@ -1625,6 +1877,12 @@ error: Number 43 | property: -456.8; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:44:5 + | +44 | property: .60; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:44:5 | @@ -1649,7 +1907,7 @@ error: Ident 44 | property: .60; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:44:15 | 44 | property: .60; @@ -1661,6 +1919,12 @@ error: Number 44 | property: .60; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:45:5 + | +45 | property: .0060; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:45:5 | @@ -1685,7 +1949,7 @@ error: Ident 45 | property: .0060; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:45:15 | 45 | property: .0060; @@ -1697,6 +1961,12 @@ error: Number 45 | property: .0060; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:46:5 + | +46 | property: 10e3; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:46:5 | @@ -1721,7 +1991,7 @@ error: Ident 46 | property: 10e3; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:46:15 | 46 | property: 10e3; @@ -1733,6 +2003,12 @@ error: Number 46 | property: 10e3; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:47:5 + | +47 | property: -3.4e-2; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:47:5 | @@ -1757,7 +2033,7 @@ error: Ident 47 | property: -3.4e-2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:47:15 | 47 | property: -3.4e-2; @@ -1769,6 +2045,12 @@ error: Number 47 | property: -3.4e-2; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:48:5 + | +48 | property: 0.5600000000; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:48:5 | @@ -1793,7 +2075,7 @@ error: Ident 48 | property: 0.5600000000; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:48:15 | 48 | property: 0.5600000000; @@ -1805,6 +2087,12 @@ error: Number 48 | property: 0.5600000000; | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:49:5 + | +49 | property: 10e6; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:49:5 | @@ -1829,7 +2117,7 @@ error: Ident 49 | property: 10e6; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:49:15 | 49 | property: 10e6; @@ -1841,6 +2129,12 @@ error: Number 49 | property: 10e6; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:50:5 + | +50 | property: 10000000; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:50:5 | @@ -1865,7 +2159,7 @@ error: Ident 50 | property: 10000000; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:50:15 | 50 | property: 10000000; @@ -1877,6 +2171,12 @@ error: Integer 50 | property: 10000000; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:51:5 + | +51 | property: 0.0; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:51:5 | @@ -1901,7 +2201,7 @@ error: Ident 51 | property: 0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:51:15 | 51 | property: 0.0; @@ -1913,6 +2213,12 @@ error: Number 51 | property: 0.0; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:52:5 + | +52 | property: -0.0; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:52:5 | @@ -1937,7 +2243,7 @@ error: Ident 52 | property: -0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:52:15 | 52 | property: -0.0; @@ -1949,6 +2255,12 @@ error: Number 52 | property: -0.0; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:53:5 + | +53 | property: +0.0; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:53:5 | @@ -1973,7 +2285,7 @@ error: Ident 53 | property: +0.0; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:53:15 | 53 | property: +0.0; @@ -1985,6 +2297,12 @@ error: Number 53 | property: +0.0; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:54:5 + | +54 | property: 1e1; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:54:5 | @@ -2009,7 +2327,7 @@ error: Ident 54 | property: 1e1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:54:15 | 54 | property: 1e1; @@ -2021,6 +2339,12 @@ error: Number 54 | property: 1e1; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:55:5 + | +55 | property: 1e2; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:55:5 | @@ -2045,7 +2369,7 @@ error: Ident 55 | property: 1e2; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:55:15 | 55 | property: 1e2; @@ -2057,6 +2381,12 @@ error: Number 55 | property: 1e2; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:56:5 + | +56 | property: 1e3; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:56:5 | @@ -2081,7 +2411,7 @@ error: Ident 56 | property: 1e3; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:56:15 | 56 | property: 1e3; @@ -2093,6 +2423,12 @@ error: Number 56 | property: 1e3; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:57:5 + | +57 | property: 1e4; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:57:5 | @@ -2117,7 +2453,7 @@ error: Ident 57 | property: 1e4; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:57:15 | 57 | property: 1e4; @@ -2129,6 +2465,12 @@ error: Number 57 | property: 1e4; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/number/input.css:58:5 + | +58 | property: 100.1e-6; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/number/input.css:58:5 | @@ -2153,7 +2495,7 @@ error: Ident 58 | property: 100.1e-6; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/number/input.css:58:15 | 58 | property: 100.1e-6; diff --git a/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug b/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug index 0c4a2191dd4..023f28af868 100644 --- a/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug @@ -73,6 +73,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/property/escaped/input.css:2:5 + | +2 | colo\r: \red; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/property/escaped/input.css:2:5 | @@ -97,7 +103,7 @@ error: Ident 2 | colo\r: \red; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/property/escaped/input.css:2:13 | 2 | colo\r: \red; diff --git a/crates/swc_css_parser/tests/fixture/rome/at-page/page-margin-properties/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/at-page/page-margin-properties/span.rust-debug index e49670e4f3e..11ddd605216 100644 --- a/crates/swc_css_parser/tests/fixture/rome/at-page/page-margin-properties/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/at-page/page-margin-properties/span.rust-debug @@ -50,6 +50,15 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/page-margin-properties/input.css:2:2 + | +2 | @top-center { + | _____^ +3 | | display: none; +4 | | } + | |_____^ + error: AtRule --> $DIR/tests/fixture/rome/at-page/page-margin-properties/input.css:2:2 | @@ -83,6 +92,12 @@ error: SimpleBlock 4 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/page-margin-properties/input.css:3:3 + | +3 | display: none; + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/page-margin-properties/input.css:3:3 | @@ -101,7 +116,7 @@ error: Ident 3 | display: none; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/page-margin-properties/input.css:3:12 | 3 | display: none; diff --git a/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties-case-insensitive/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties-case-insensitive/span.rust-debug index def3f842ba4..39dcd3d28b6 100644 --- a/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties-case-insensitive/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties-case-insensitive/span.rust-debug @@ -39,6 +39,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/page-properties-case-insensitive/input.css:2:2 + | +2 | DISPLAY: none; + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/page-properties-case-insensitive/input.css:2:2 | @@ -57,7 +63,7 @@ error: Ident 2 | DISPLAY: none; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/page-properties-case-insensitive/input.css:2:11 | 2 | DISPLAY: none; diff --git a/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties/span.rust-debug index df416ca4fef..17e15d3cf2e 100644 --- a/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/at-page/page-properties/span.rust-debug @@ -39,6 +39,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/page-properties/input.css:2:2 + | +2 | display: none; + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/page-properties/input.css:2:2 | @@ -57,7 +63,7 @@ error: Ident 2 | display: none; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/page-properties/input.css:2:11 | 2 | display: none; diff --git a/crates/swc_css_parser/tests/fixture/rome/at-page/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/at-page/span.rust-debug index c2a29c64964..db3113338a9 100644 --- a/crates/swc_css_parser/tests/fixture/rome/at-page/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/at-page/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:2:2 + | +2 | @top-center { content: none } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/rome/at-page/input.css:2:2 | @@ -107,6 +113,12 @@ error: SimpleBlock 2 | @top-center { content: none } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:2:16 + | +2 | @top-center { content: none } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:2:16 | @@ -125,7 +137,7 @@ error: Ident 2 | @top-center { content: none } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:2:25 | 2 | @top-center { content: none } @@ -137,6 +149,12 @@ error: Ident 2 | @top-center { content: none } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:3:2 + | +3 | margin-left: 4cm; + | ^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:3:2 | @@ -155,7 +173,7 @@ error: Ident 3 | margin-left: 4cm; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:3:15 | 3 | margin-left: 4cm; @@ -246,6 +264,12 @@ error: SimpleBlock 9 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:7:2 + | +7 | @top-center { content: none } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/rome/at-page/input.css:7:2 | @@ -270,6 +294,12 @@ error: SimpleBlock 7 | @top-center { content: none } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:7:16 + | +7 | @top-center { content: none } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:7:16 | @@ -288,7 +318,7 @@ error: Ident 7 | @top-center { content: none } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:7:25 | 7 | @top-center { content: none } @@ -300,6 +330,12 @@ error: Ident 7 | @top-center { content: none } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:8:2 + | +8 | margin-left: 4cm; + | ^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:8:2 | @@ -318,7 +354,7 @@ error: Ident 8 | margin-left: 4cm; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:8:15 | 8 | margin-left: 4cm; @@ -385,6 +421,12 @@ error: SimpleBlock 14 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:12:2 + | +12 | @top-center { content: none } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/rome/at-page/input.css:12:2 | @@ -409,6 +451,12 @@ error: SimpleBlock 12 | @top-center { content: none } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:12:16 + | +12 | @top-center { content: none } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:12:16 | @@ -427,7 +475,7 @@ error: Ident 12 | @top-center { content: none } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:12:25 | 12 | @top-center { content: none } @@ -439,6 +487,12 @@ error: Ident 12 | @top-center { content: none } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:13:2 + | +13 | margin-left: 4cm; + | ^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:13:2 | @@ -457,7 +511,7 @@ error: Ident 13 | margin-left: 4cm; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:13:15 | 13 | margin-left: 4cm; @@ -524,6 +578,12 @@ error: SimpleBlock 19 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:17:2 + | +17 | @top-center { CONTENT: none } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: AtRule --> $DIR/tests/fixture/rome/at-page/input.css:17:2 | @@ -548,6 +608,12 @@ error: SimpleBlock 17 | @top-center { CONTENT: none } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:17:16 + | +17 | @top-center { CONTENT: none } + | ^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:17:16 | @@ -566,7 +632,7 @@ error: Ident 17 | @top-center { CONTENT: none } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:17:25 | 17 | @top-center { CONTENT: none } @@ -578,6 +644,12 @@ error: Ident 17 | @top-center { CONTENT: none } | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/at-page/input.css:18:2 + | +18 | MARGIN-LEFT: 4cm; + | ^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/at-page/input.css:18:2 | @@ -596,7 +668,7 @@ error: Ident 18 | MARGIN-LEFT: 4cm; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/at-page/input.css:18:15 | 18 | MARGIN-LEFT: 4cm; diff --git a/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug index 6a793f89e79..72fdaf9b7de 100644 --- a/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 10 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:2:2 + | +2 | width: calc(2px); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:2:2 | @@ -107,7 +113,7 @@ error: Ident 2 | width: calc(2px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:2:9 | 2 | width: calc(2px); @@ -125,7 +131,7 @@ error: Ident 2 | width: calc(2px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:2:14 | 2 | width: calc(2px); @@ -185,6 +191,12 @@ error: Ident 2 | width: calc(2px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:3:2 + | +3 | width: calc(2px + 1px); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:3:2 | @@ -209,7 +221,7 @@ error: Ident 3 | width: calc(2px + 1px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:3:9 | 3 | width: calc(2px + 1px); @@ -227,7 +239,7 @@ error: Ident 3 | width: calc(2px + 1px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:3:14 | 3 | width: calc(2px + 1px); @@ -347,6 +359,12 @@ error: Ident 3 | width: calc(2px + 1px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:4:2 + | +4 | width: calc(2em + 1%); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:4:2 | @@ -371,7 +389,7 @@ error: Ident 4 | width: calc(2em + 1%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:4:9 | 4 | width: calc(2em + 1%); @@ -389,7 +407,7 @@ error: Ident 4 | width: calc(2em + 1%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:4:14 | 4 | width: calc(2em + 1%); @@ -497,6 +515,12 @@ error: Number 4 | width: calc(2em + 1%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:5:2 + | +5 | width: calc(2em * 2% * 3px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:5:2 | @@ -521,7 +545,7 @@ error: Ident 5 | width: calc(2em * 2% * 3px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:5:9 | 5 | width: calc(2em * 2% * 3px); @@ -539,7 +563,7 @@ error: Ident 5 | width: calc(2em * 2% * 3px); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:5:14 | 5 | width: calc(2em * 2% * 3px); @@ -683,6 +707,12 @@ error: Ident 5 | width: calc(2em * 2% * 3px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:6:2 + | +6 | width: calc(2em / 2 / 3); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:6:2 | @@ -707,7 +737,7 @@ error: Ident 6 | width: calc(2em / 2 / 3); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:6:9 | 6 | width: calc(2em / 2 / 3); @@ -725,7 +755,7 @@ error: Ident 6 | width: calc(2em / 2 / 3); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:6:14 | 6 | width: calc(2em / 2 / 3); @@ -845,6 +875,12 @@ error: Number 6 | width: calc(2em / 2 / 3); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:7:2 + | +7 | width: calc(2em / (2 - 3) / (2 - 6)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:7:2 | @@ -869,7 +905,7 @@ error: Ident 7 | width: calc(2em / (2 - 3) / (2 - 6)); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:7:9 | 7 | width: calc(2em / (2 - 3) / (2 - 6)); @@ -887,7 +923,7 @@ error: Ident 7 | width: calc(2em / (2 - 3) / (2 - 6)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:7:14 | 7 | width: calc(2em / (2 - 3) / (2 - 6)); @@ -1151,6 +1187,12 @@ error: Number 7 | width: calc(2em / (2 - 3) / (2 - 6)); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:8:2 + | +8 | width: calc(2em * 2 + 3); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:8:2 | @@ -1175,7 +1217,7 @@ error: Ident 8 | width: calc(2em * 2 + 3); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:8:9 | 8 | width: calc(2em * 2 + 3); @@ -1193,7 +1235,7 @@ error: Ident 8 | width: calc(2em * 2 + 3); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:8:14 | 8 | width: calc(2em * 2 + 3); @@ -1325,6 +1367,12 @@ error: Number 8 | width: calc(2em * 2 + 3); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/calc/input.css:9:2 + | +9 | width: calc(2em * 2 - 3 + 3em / 5); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/calc/input.css:9:2 | @@ -1349,7 +1397,7 @@ error: Ident 9 | width: calc(2em * 2 - 3 + 3em / 5); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:9:9 | 9 | width: calc(2em * 2 - 3 + 3em / 5); @@ -1367,7 +1415,7 @@ error: Ident 9 | width: calc(2em * 2 - 3 + 3em / 5); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/calc/input.css:9:14 | 9 | width: calc(2em * 2 - 3 + 3em / 5); diff --git a/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug index 55b93fd7476..2a60aa9cc8e 100644 --- a/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug @@ -78,6 +78,12 @@ error: SimpleBlock 7 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/comment/input.css:6:2 + | +6 | color: white; /* comment */ + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/comment/input.css:6:2 | @@ -102,7 +108,7 @@ error: Ident 6 | color: white; /* comment */ | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/comment/input.css:6:9 | 6 | color: white; /* comment */ @@ -181,6 +187,12 @@ error: SimpleBlock 11 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/comment/input.css:10:2 + | +10 | color: /* comment */ white; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/comment/input.css:10:2 | @@ -205,7 +217,7 @@ error: Ident 10 | color: /* comment */ white; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/comment/input.css:10:23 | 10 | color: /* comment */ white; @@ -284,6 +296,12 @@ error: SimpleBlock 15 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/comment/input.css:14:2 + | +14 | color: white; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/comment/input.css:14:2 | @@ -308,7 +326,7 @@ error: Ident 14 | color: white; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/comment/input.css:14:9 | 14 | color: white; diff --git a/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug index 26dc0a6e9b1..75338d81f96 100644 --- a/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 23 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:2:2 + | +2 | --foo: 'bar'; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:2:2 | @@ -107,7 +113,7 @@ error: DashedIdent 2 | --foo: 'bar'; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:2:9 | 2 | --foo: 'bar'; @@ -119,6 +125,12 @@ error: String { value: Atom('bar' type=inline), raw: Atom(''bar'' type=inline) } 2 | --foo: 'bar'; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:3:2 + | +3 | --lore-ipsum: "foo"; + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:3:2 | @@ -143,7 +155,7 @@ error: DashedIdent 3 | --lore-ipsum: "foo"; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:3:16 | 3 | --lore-ipsum: "foo"; @@ -155,6 +167,12 @@ error: String { value: Atom('foo' type=inline), raw: Atom('"foo"' type=inline) } 3 | --lore-ipsum: "foo"; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:4:2 + | +4 | --FANCY: "abort"; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:4:2 | @@ -179,7 +197,7 @@ error: DashedIdent 4 | --FANCY: "abort"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:4:11 | 4 | --FANCY: "abort"; @@ -191,6 +209,12 @@ error: String { value: Atom('abort' type=inline), raw: Atom('"abort"' type=inlin 4 | --FANCY: "abort"; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:5:2 + | +5 | --test: 1987; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:5:2 | @@ -215,7 +239,7 @@ error: DashedIdent 5 | --test: 1987; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:5:10 | 5 | --test: 1987; @@ -227,6 +251,12 @@ error: Number { value: 1987.0, raw: Atom('1987' type=inline), type_flag: Integer 5 | --test: 1987; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:6:2 + | +6 | --percentage: 25%; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:6:2 | @@ -251,7 +281,7 @@ error: DashedIdent 6 | --percentage: 25%; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:6:16 | 6 | --percentage: 25%; @@ -263,6 +293,12 @@ error: Percentage { value: 25.0, raw: Atom('25' type=inline) } 6 | --percentage: 25%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:7:2 + | +7 | --number: 37; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:7:2 | @@ -287,7 +323,7 @@ error: DashedIdent 7 | --number: 37; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:7:12 | 7 | --number: 37; @@ -299,6 +335,12 @@ error: Number { value: 37.0, raw: Atom('37' type=inline), type_flag: Integer } 7 | --number: 37; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:8:2 + | +8 | --length: 12em; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:8:2 | @@ -323,7 +365,7 @@ error: DashedIdent 8 | --length: 12em; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:8:12 | 8 | --length: 12em; @@ -335,6 +377,12 @@ error: Dimension { value: 12.0, raw_value: Atom('12' type=inline), unit: Atom('e 8 | --length: 12em; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:9:2 + | +9 | --time: 75ms; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:9:2 | @@ -359,7 +407,7 @@ error: DashedIdent 9 | --time: 75ms; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:9:10 | 9 | --time: 75ms; @@ -371,6 +419,12 @@ error: Dimension { value: 75.0, raw_value: Atom('75' type=inline), unit: Atom('m 9 | --time: 75ms; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:10:2 + | +10 | --function: foo(); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:10:2 | @@ -395,7 +449,7 @@ error: DashedIdent 10 | --function: foo(); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:10:14 | 10 | --function: foo(); @@ -407,7 +461,7 @@ error: Function { value: Atom('foo' type=inline), raw: Atom('foo' type=inline) } 10 | --function: foo(); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:10:18 | 10 | --function: foo(); @@ -419,6 +473,12 @@ error: RParen 10 | --function: foo(); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:11:2 + | +11 | --nested-function: foo(bar()); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:11:2 | @@ -443,7 +503,7 @@ error: DashedIdent 11 | --nested-function: foo(bar()); | ^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:11:21 | 11 | --nested-function: foo(bar()); @@ -455,7 +515,7 @@ error: Function { value: Atom('foo' type=inline), raw: Atom('foo' type=inline) } 11 | --nested-function: foo(bar()); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:11:25 | 11 | --nested-function: foo(bar()); @@ -467,7 +527,7 @@ error: Function { value: Atom('bar' type=inline), raw: Atom('bar' type=inline) } 11 | --nested-function: foo(bar()); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:11:29 | 11 | --nested-function: foo(bar()); @@ -479,7 +539,7 @@ error: RParen 11 | --nested-function: foo(bar()); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:11:30 | 11 | --nested-function: foo(bar()); @@ -491,6 +551,12 @@ error: RParen 11 | --nested-function: foo(bar()); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:12:2 + | +12 | --parentheses: ( ); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:12:2 | @@ -515,7 +581,7 @@ error: DashedIdent 12 | --parentheses: ( ); | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:12:17 | 12 | --parentheses: ( ); @@ -527,7 +593,7 @@ error: LParen 12 | --parentheses: ( ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:12:18 | 12 | --parentheses: ( ); @@ -539,7 +605,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 12 | --parentheses: ( ); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:12:19 | 12 | --parentheses: ( ); @@ -551,6 +617,12 @@ error: RParen 12 | --parentheses: ( ); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:13:2 + | +13 | --braces: { }; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:13:2 | @@ -575,7 +647,7 @@ error: DashedIdent 13 | --braces: { }; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:13:12 | 13 | --braces: { }; @@ -587,7 +659,7 @@ error: LBrace 13 | --braces: { }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:13:13 | 13 | --braces: { }; @@ -599,7 +671,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 13 | --braces: { }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:13:14 | 13 | --braces: { }; @@ -611,6 +683,12 @@ error: RBrace 13 | --braces: { }; | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:14:2 + | +14 | --brackets: [ ]; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:14:2 | @@ -635,7 +713,7 @@ error: DashedIdent 14 | --brackets: [ ]; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:14:14 | 14 | --brackets: [ ]; @@ -647,7 +725,7 @@ error: LBracket 14 | --brackets: [ ]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:14:15 | 14 | --brackets: [ ]; @@ -659,7 +737,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 14 | --brackets: [ ]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:14:16 | 14 | --brackets: [ ]; @@ -671,6 +749,12 @@ error: RBracket 14 | --brackets: [ ]; | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:15:2 + | +15 | --at-keyword-unknown: @foobar; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:15:2 | @@ -695,7 +779,7 @@ error: DashedIdent 15 | --at-keyword-unknown: @foobar; | ^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:15:24 | 15 | --at-keyword-unknown: @foobar; @@ -707,6 +791,12 @@ error: AtKeyword { value: Atom('foobar' type=inline), raw: Atom('foobar' type=in 15 | --at-keyword-unknown: @foobar; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:16:2 + | +16 | --at-keyword-known: @media; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:16:2 | @@ -731,7 +821,7 @@ error: DashedIdent 16 | --at-keyword-known: @media; | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:16:22 | 16 | --at-keyword-known: @media; @@ -743,6 +833,12 @@ error: AtKeyword { value: Atom('media' type=inline), raw: Atom('media' type=inli 16 | --at-keyword-known: @media; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:17:2 + | +17 | --at-keyword-unknown-block: @foobar {}; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:17:2 | @@ -767,7 +863,7 @@ error: DashedIdent 17 | --at-keyword-unknown-block: @foobar {}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:17:30 | 17 | --at-keyword-unknown-block: @foobar {}; @@ -779,7 +875,7 @@ error: AtKeyword { value: Atom('foobar' type=inline), raw: Atom('foobar' type=in 17 | --at-keyword-unknown-block: @foobar {}; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:17:37 | 17 | --at-keyword-unknown-block: @foobar {}; @@ -791,7 +887,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 17 | --at-keyword-unknown-block: @foobar {}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:17:38 | 17 | --at-keyword-unknown-block: @foobar {}; @@ -803,7 +899,7 @@ error: LBrace 17 | --at-keyword-unknown-block: @foobar {}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:17:39 | 17 | --at-keyword-unknown-block: @foobar {}; @@ -815,6 +911,12 @@ error: RBrace 17 | --at-keyword-unknown-block: @foobar {}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:18:2 + | +18 | --at-keyword-known-block: @media {}; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:18:2 | @@ -839,7 +941,7 @@ error: DashedIdent 18 | --at-keyword-known-block: @media {}; | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:18:28 | 18 | --at-keyword-known-block: @media {}; @@ -851,7 +953,7 @@ error: AtKeyword { value: Atom('media' type=inline), raw: Atom('media' type=inli 18 | --at-keyword-known-block: @media {}; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:18:34 | 18 | --at-keyword-known-block: @media {}; @@ -863,7 +965,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 18 | --at-keyword-known-block: @media {}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:18:35 | 18 | --at-keyword-known-block: @media {}; @@ -875,7 +977,7 @@ error: LBrace 18 | --at-keyword-known-block: @media {}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:18:36 | 18 | --at-keyword-known-block: @media {}; @@ -887,6 +989,12 @@ error: RBrace 18 | --at-keyword-known-block: @media {}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:19:2 + | +19 | --cdo-at-top-level: $DIR/tests/fixture/rome/custom-properties/input.css:19:2 | @@ -911,7 +1019,7 @@ error: DashedIdent 19 | --cdo-at-top-level: $DIR/tests/fixture/rome/custom-properties/input.css:19:22 | 19 | --cdo-at-top-level: $DIR/tests/fixture/rome/custom-properties/input.css:20:2 + | +20 | --cdc-at-top-level: -->; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:20:2 | @@ -947,7 +1061,7 @@ error: DashedIdent 20 | --cdc-at-top-level: -->; | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:20:22 | 20 | --cdc-at-top-level: -->; @@ -959,6 +1073,12 @@ error: CDC 20 | --cdc-at-top-level: -->; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/custom-properties/input.css:21:2 + | +21 | --cdo-not-top-level: ( $DIR/tests/fixture/rome/custom-properties/input.css:21:2 | @@ -983,7 +1103,7 @@ error: DashedIdent 21 | --cdo-not-top-level: ( $DIR/tests/fixture/rome/custom-properties/input.css:21:23 | 21 | --cdo-not-top-level: ( $DIR/tests/fixture/rome/custom-properties/input.css:21:24 | 21 | --cdo-not-top-level: ( $DIR/tests/fixture/rome/custom-properties/input.css:21:28 | 21 | --cdo-not-top-level: ( $DIR/tests/fixture/rome/custom-properties/input.css:22:2 + | +22 | --cdc-not-top-level: (-->); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/custom-properties/input.css:22:2 | @@ -1043,7 +1169,7 @@ error: DashedIdent 22 | --cdc-not-top-level: (-->); | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:22:23 | 22 | --cdc-not-top-level: (-->); @@ -1055,7 +1181,7 @@ error: LParen 22 | --cdc-not-top-level: (-->); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:22:24 | 22 | --cdc-not-top-level: (-->); @@ -1067,7 +1193,7 @@ error: CDC 22 | --cdc-not-top-level: (-->); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/custom-properties/input.css:22:27 | 22 | --cdc-not-top-level: (-->); diff --git a/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug index 935bdb875e2..266126cf867 100644 --- a/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/fit-content/input.css:2:2 + | +2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/fit-content/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/fit-content/input.css:2:25 | 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/fit-content/input.css:2:37 | 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; @@ -139,7 +145,7 @@ error: Ident 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/fit-content/input.css:2:42 | 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; @@ -157,7 +163,7 @@ error: Ident 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/fit-content/input.css:2:54 | 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; @@ -187,7 +193,7 @@ error: Ident 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/fit-content/input.css:2:59 | 2 | grid-template-columns: fit-content(8ch) fit-content(8ch) 1fr; diff --git a/crates/swc_css_parser/tests/fixture/rome/font/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/font/span.rust-debug index 3e9dfcf3bff..bf11f448c29 100644 --- a/crates/swc_css_parser/tests/fixture/rome/font/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/font/span.rust-debug @@ -39,6 +39,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/font/input.css:2:2 + | +2 | src: url(""); + | ^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/font/input.css:2:2 | @@ -57,7 +63,7 @@ error: Ident 2 | src: url(""); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/font/input.css:2:7 | 2 | src: url(""); diff --git a/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug index e45c65caeed..f1b6a8fb5dd 100644 --- a/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:2:2 + | +2 | --fancy: 2px; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:2:2 | @@ -107,7 +113,7 @@ error: DashedIdent 2 | --fancy: 2px; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:2:11 | 2 | --fancy: 2px; @@ -119,6 +125,12 @@ error: Dimension { value: 2.0, raw_value: Atom('2' type=inline), unit: Atom('px' 2 | --fancy: 2px; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:3:2 + | +3 | border: var(--fancy); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:3:2 | @@ -143,7 +155,7 @@ error: Ident 3 | border: var(--fancy); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:3:10 | 3 | border: var(--fancy); @@ -161,7 +173,7 @@ error: Ident 3 | border: var(--fancy); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:3:14 | 3 | border: var(--fancy); @@ -173,6 +185,12 @@ error: DashedIdent 3 | border: var(--fancy); | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:4:2 + | +4 | font-size: calc(10px + 5rem); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:4:2 | @@ -197,7 +215,7 @@ error: Ident 4 | font-size: calc(10px + 5rem); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:4:13 | 4 | font-size: calc(10px + 5rem); @@ -215,7 +233,7 @@ error: Ident 4 | font-size: calc(10px + 5rem); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:4:18 | 4 | font-size: calc(10px + 5rem); @@ -335,6 +353,12 @@ error: Ident 4 | font-size: calc(10px + 5rem); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:5:2 + | +5 | background: url(""); + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:5:2 | @@ -359,7 +383,7 @@ error: Ident 5 | background: url(""); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:5:14 | 5 | background: url(""); @@ -389,6 +413,12 @@ error: Str 5 | background: url(""); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:6:2 + | +6 | background: url("something"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:6:2 | @@ -413,7 +443,7 @@ error: Ident 6 | background: url("something"); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:6:14 | 6 | background: url("something"); @@ -443,6 +473,12 @@ error: Str 6 | background: url("something"); | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/functions/input.css:7:2 + | +7 | background: url("./something"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/functions/input.css:7:2 | @@ -467,7 +503,7 @@ error: Ident 7 | background: url("./something"); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/functions/input.css:7:14 | 7 | background: url("./something"); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug index 38497d9f32f..da1e49d63ea 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:2 + | +2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:25 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:32 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -121,7 +127,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:43 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:45 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -163,7 +169,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:52 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -181,7 +187,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:59 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -211,7 +217,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:64 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -223,7 +229,7 @@ error: Delimiter 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:66 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -253,7 +259,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:71 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -271,7 +277,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:78 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -283,7 +289,7 @@ error: Ident 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:89 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); @@ -295,7 +301,7 @@ error: Delimiter 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/minmax/input.css:2:91 | 2 | grid-template-columns: minmax(min-content, 300px) minmax(200px, 1fr) minmax(max-content, max-content); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug index c873ed6eaac..f2babb07c49 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:2 + | +2 | grid-template-columns: repeat(4, fit-content(300px)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: repeat(4, fit-content(300px)); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:25 | 2 | grid-template-columns: repeat(4, fit-content(300px)); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: repeat(4, fit-content(300px)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:32 | 2 | grid-template-columns: repeat(4, fit-content(300px)); @@ -121,7 +127,7 @@ error: Integer 2 | grid-template-columns: repeat(4, fit-content(300px)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:33 | 2 | grid-template-columns: repeat(4, fit-content(300px)); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, fit-content(300px)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:35 | 2 | grid-template-columns: repeat(4, fit-content(300px)); @@ -151,7 +157,7 @@ error: Ident 2 | grid-template-columns: repeat(4, fit-content(300px)); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:2:47 | 2 | grid-template-columns: repeat(4, fit-content(300px)); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug index c55e257599d..952d9514e6e 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:2 + | +2 | grid-template-columns: repeat(4, 1fr); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: repeat(4, 1fr); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:25 | 2 | grid-template-columns: repeat(4, 1fr); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: repeat(4, 1fr); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:32 | 2 | grid-template-columns: repeat(4, 1fr); @@ -121,7 +127,7 @@ error: Integer 2 | grid-template-columns: repeat(4, 1fr); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:33 | 2 | grid-template-columns: repeat(4, 1fr); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, 1fr); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:2:35 | 2 | grid-template-columns: repeat(4, 1fr); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug index 73dfbc7202d..c8ed63e8b60 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:2 + | +2 | grid-template-columns: repeat(4, [col-start]); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start]); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:25 | 2 | grid-template-columns: repeat(4, [col-start]); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start]); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:32 | 2 | grid-template-columns: repeat(4, [col-start]); @@ -121,7 +127,7 @@ error: Integer 2 | grid-template-columns: repeat(4, [col-start]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:33 | 2 | grid-template-columns: repeat(4, [col-start]); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, [col-start]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:35 | 2 | grid-template-columns: repeat(4, [col-start]); @@ -145,7 +151,7 @@ error: SimpleBlock 2 | grid-template-columns: repeat(4, [col-start]); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:2:36 | 2 | grid-template-columns: repeat(4, [col-start]); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug index b4520378e5c..57f534c2b6d 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:2 + | +2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:25 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:32 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -121,7 +127,7 @@ error: Integer 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:33 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:35 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -151,7 +157,7 @@ error: Ident 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:42 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -163,7 +169,7 @@ error: Ident 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:53 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); @@ -175,7 +181,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:2:55 | 2 | grid-template-columns: repeat(4, minmax(min-content, 300px)); diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug index 313f2a40be5..708ef98dd95 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:2 + | +2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:2 | @@ -91,7 +97,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:25 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -109,7 +115,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:32 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -121,7 +127,7 @@ error: Integer 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:33 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -133,7 +139,7 @@ error: Delimiter 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:35 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -145,7 +151,7 @@ error: SimpleBlock 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:36 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -157,7 +163,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:47 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -169,7 +175,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:59 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -181,7 +187,7 @@ error: SimpleBlock 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:60 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -193,7 +199,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:72 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -205,7 +211,7 @@ error: Ident 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:84 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); @@ -217,7 +223,7 @@ error: SimpleBlock 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:2:85 | 2 | grid-template-columns: repeat(4, [col-start] min-content [col-middle] max-content [col-end]); diff --git a/crates/swc_css_parser/tests/fixture/rome/keyframe/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/keyframe/span.rust-debug index 250a5b7abdb..9468561c7e8 100644 --- a/crates/swc_css_parser/tests/fixture/rome/keyframe/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/keyframe/span.rust-debug @@ -65,6 +65,14 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:2:5 + | +2 | / from { +3 | | margin-top: 50px !important; +4 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:2:5 | @@ -94,6 +102,12 @@ error: SimpleBlock 4 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:3:9 + | +3 | margin-top: 50px !important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/keyframe/input.css:3:9 | @@ -112,7 +126,7 @@ error: Ident 3 | margin-top: 50px !important; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/keyframe/input.css:3:21 | 3 | margin-top: 50px !important; @@ -154,6 +168,14 @@ error: Ident 3 | margin-top: 50px !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:5:5 + | +5 | / to { +6 | | margin-top: 100px !important; +7 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:5:5 | @@ -183,6 +205,12 @@ error: SimpleBlock 7 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:6:9 + | +6 | margin-top: 100px !important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/rome/keyframe/input.css:6:9 | @@ -201,7 +229,7 @@ error: Ident 6 | margin-top: 100px !important; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/keyframe/input.css:6:21 | 6 | margin-top: 100px !important; @@ -298,6 +326,13 @@ error: SimpleBlock 21 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:11:5 + | +11 | / from { +12 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:11:5 | @@ -325,6 +360,13 @@ error: SimpleBlock 12 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:13:5 + | +13 | / to { +14 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:13:5 | @@ -352,6 +394,13 @@ error: SimpleBlock 14 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:15:5 + | +15 | / 15% { +16 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:15:5 | @@ -385,6 +434,13 @@ error: SimpleBlock 16 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:17:5 + | +17 | / 0% { +18 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:17:5 | @@ -418,6 +474,13 @@ error: SimpleBlock 18 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/keyframe/input.css:19:5 + | +19 | / 100% { +20 | | } + | |_____^ + error: KeyframeBlock --> $DIR/tests/fixture/rome/keyframe/input.css:19:5 | diff --git a/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug index 70265bf3af6..77e80874ec1 100644 --- a/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug @@ -1643,6 +1643,15 @@ error: SimpleBlock 14 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/media/condition/input.css:8:2 + | +8 | a { + | _____^ +9 | | +10 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/rome/media/condition/input.css:8:2 | @@ -1712,6 +1721,15 @@ error: SimpleBlock 10 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/media/condition/input.css:11:2 + | +11 | .style { + | _____^ +12 | | +13 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/rome/media/condition/input.css:11:2 | @@ -2070,6 +2088,15 @@ error: SimpleBlock 22 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/media/condition/input.css:16:2 + | +16 | a { + | _____^ +17 | | +18 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/rome/media/condition/input.css:16:2 | @@ -2139,6 +2166,15 @@ error: SimpleBlock 18 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/rome/media/condition/input.css:19:2 + | +19 | .style { + | _____^ +20 | | +21 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/rome/media/condition/input.css:19:2 | diff --git a/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug index ab5f4a0b50c..118e41c5f81 100644 --- a/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 12 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:2:2 + | +2 | width: max(500px); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:2:2 | @@ -107,7 +113,7 @@ error: Ident 2 | width: max(500px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:2:9 | 2 | width: max(500px); @@ -125,7 +131,7 @@ error: Ident 2 | width: max(500px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:2:13 | 2 | width: max(500px); @@ -185,6 +191,12 @@ error: Ident 2 | width: max(500px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:3:2 + | +3 | width: max(500px, 6 / 4); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:3:2 | @@ -209,7 +221,7 @@ error: Ident 3 | width: max(500px, 6 / 4); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:3:9 | 3 | width: max(500px, 6 / 4); @@ -227,7 +239,7 @@ error: Ident 3 | width: max(500px, 6 / 4); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:3:13 | 3 | width: max(500px, 6 / 4); @@ -287,7 +299,7 @@ error: Ident 3 | width: max(500px, 6 / 4); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:3:18 | 3 | width: max(500px, 6 / 4); @@ -299,7 +311,7 @@ error: Delimiter 3 | width: max(500px, 6 / 4); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:3:20 | 3 | width: max(500px, 6 / 4); @@ -371,6 +383,12 @@ error: Number 3 | width: max(500px, 6 / 4); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:4:2 + | +4 | width: max(500px, 40px + 5%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:4:2 | @@ -395,7 +413,7 @@ error: Ident 4 | width: max(500px, 40px + 5%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:4:9 | 4 | width: max(500px, 40px + 5%); @@ -413,7 +431,7 @@ error: Ident 4 | width: max(500px, 40px + 5%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:4:13 | 4 | width: max(500px, 40px + 5%); @@ -473,7 +491,7 @@ error: Ident 4 | width: max(500px, 40px + 5%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:4:18 | 4 | width: max(500px, 40px + 5%); @@ -485,7 +503,7 @@ error: Delimiter 4 | width: max(500px, 40px + 5%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:4:20 | 4 | width: max(500px, 40px + 5%); @@ -593,6 +611,12 @@ error: Number 4 | width: max(500px, 40px + 5%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:5:2 + | +5 | width: max(500px, 5% * 400px + 2px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:5:2 | @@ -617,7 +641,7 @@ error: Ident 5 | width: max(500px, 5% * 400px + 2px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:5:9 | 5 | width: max(500px, 5% * 400px + 2px); @@ -635,7 +659,7 @@ error: Ident 5 | width: max(500px, 5% * 400px + 2px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:5:13 | 5 | width: max(500px, 5% * 400px + 2px); @@ -695,7 +719,7 @@ error: Ident 5 | width: max(500px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:5:18 | 5 | width: max(500px, 5% * 400px + 2px); @@ -707,7 +731,7 @@ error: Delimiter 5 | width: max(500px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:5:20 | 5 | width: max(500px, 5% * 400px + 2px); @@ -863,6 +887,12 @@ error: Ident 5 | width: max(500px, 5% * 400px + 2px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:6:2 + | +6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:6:2 | @@ -887,7 +917,7 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:9 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -905,7 +935,7 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:13 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -965,7 +995,7 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:18 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -977,7 +1007,7 @@ error: Delimiter 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:20 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -1133,7 +1163,7 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:36 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -1145,7 +1175,7 @@ error: Delimiter 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:38 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -1301,7 +1331,7 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:54 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -1313,7 +1343,7 @@ error: Delimiter 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:6:56 | 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -1469,6 +1499,12 @@ error: Ident 6 | width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:7:2 + | +7 | width: min(500px); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:7:2 | @@ -1493,7 +1529,7 @@ error: Ident 7 | width: min(500px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:7:9 | 7 | width: min(500px); @@ -1511,7 +1547,7 @@ error: Ident 7 | width: min(500px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:7:13 | 7 | width: min(500px); @@ -1571,6 +1607,12 @@ error: Ident 7 | width: min(500px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:8:2 + | +8 | width: min(500px, 6 / 4); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:8:2 | @@ -1595,7 +1637,7 @@ error: Ident 8 | width: min(500px, 6 / 4); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:8:9 | 8 | width: min(500px, 6 / 4); @@ -1613,7 +1655,7 @@ error: Ident 8 | width: min(500px, 6 / 4); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:8:13 | 8 | width: min(500px, 6 / 4); @@ -1673,7 +1715,7 @@ error: Ident 8 | width: min(500px, 6 / 4); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:8:18 | 8 | width: min(500px, 6 / 4); @@ -1685,7 +1727,7 @@ error: Delimiter 8 | width: min(500px, 6 / 4); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:8:20 | 8 | width: min(500px, 6 / 4); @@ -1757,6 +1799,12 @@ error: Number 8 | width: min(500px, 6 / 4); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:9:2 + | +9 | width: min(500px, 40px + 5%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:9:2 | @@ -1781,7 +1829,7 @@ error: Ident 9 | width: min(500px, 40px + 5%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:9:9 | 9 | width: min(500px, 40px + 5%); @@ -1799,7 +1847,7 @@ error: Ident 9 | width: min(500px, 40px + 5%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:9:13 | 9 | width: min(500px, 40px + 5%); @@ -1859,7 +1907,7 @@ error: Ident 9 | width: min(500px, 40px + 5%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:9:18 | 9 | width: min(500px, 40px + 5%); @@ -1871,7 +1919,7 @@ error: Delimiter 9 | width: min(500px, 40px + 5%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:9:20 | 9 | width: min(500px, 40px + 5%); @@ -1979,6 +2027,12 @@ error: Number 9 | width: min(500px, 40px + 5%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:10:2 + | +10 | width: min(500px, 5% * 400px + 2px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:10:2 | @@ -2003,7 +2057,7 @@ error: Ident 10 | width: min(500px, 5% * 400px + 2px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:10:9 | 10 | width: min(500px, 5% * 400px + 2px); @@ -2021,7 +2075,7 @@ error: Ident 10 | width: min(500px, 5% * 400px + 2px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:10:13 | 10 | width: min(500px, 5% * 400px + 2px); @@ -2081,7 +2135,7 @@ error: Ident 10 | width: min(500px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:10:18 | 10 | width: min(500px, 5% * 400px + 2px); @@ -2093,7 +2147,7 @@ error: Delimiter 10 | width: min(500px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:10:20 | 10 | width: min(500px, 5% * 400px + 2px); @@ -2249,6 +2303,12 @@ error: Ident 10 | width: min(500px, 5% * 400px + 2px); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/min-and-max/input.css:11:2 + | +11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/min-and-max/input.css:11:2 | @@ -2273,7 +2333,7 @@ error: Ident 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:9 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2291,7 +2351,7 @@ error: Ident 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:13 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2351,7 +2411,7 @@ error: Ident 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:18 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2363,7 +2423,7 @@ error: Delimiter 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:20 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2519,7 +2579,7 @@ error: Ident 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:36 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2531,7 +2591,7 @@ error: Delimiter 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:38 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2687,7 +2747,7 @@ error: Ident 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:54 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); @@ -2699,7 +2759,7 @@ error: Delimiter 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/min-and-max/input.css:11:56 | 11 | width: min(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px); diff --git a/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug index 73fe789830d..fd8ce28197b 100644 --- a/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug @@ -512,6 +512,12 @@ error: SimpleBlock 15 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/selectors/input.css:14:3 + | +14 | color: purple; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/selectors/input.css:14:3 | @@ -536,7 +542,7 @@ error: Ident 14 | color: purple; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/selectors/input.css:14:10 | 14 | color: purple; @@ -657,6 +663,12 @@ error: SimpleBlock 19 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/selectors/input.css:18:3 + | +18 | color: purple; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/selectors/input.css:18:3 | @@ -681,7 +693,7 @@ error: Ident 18 | color: purple; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/selectors/input.css:18:10 | 18 | color: purple; @@ -814,6 +826,12 @@ error: SimpleBlock 23 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/selectors/input.css:22:3 + | +22 | color: purple; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/selectors/input.css:22:3 | @@ -838,7 +856,7 @@ error: Ident 22 | color: purple; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/selectors/input.css:22:10 | 22 | color: purple; @@ -1013,6 +1031,12 @@ error: SimpleBlock 27 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/selectors/input.css:26:2 + | +26 | color: purple; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/selectors/input.css:26:2 | @@ -1037,7 +1061,7 @@ error: Ident 26 | color: purple; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/selectors/input.css:26:9 | 26 | color: purple; diff --git a/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug index 5d6e3fcc14c..e11324eb69d 100644 --- a/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug @@ -81,6 +81,12 @@ error: SimpleBlock 5 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/smoke/input.css:3:5 + | +3 | background: red; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/smoke/input.css:3:5 | @@ -105,7 +111,7 @@ error: Ident 3 | background: red; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/smoke/input.css:3:17 | 3 | background: red; @@ -117,6 +123,12 @@ error: Ident 3 | background: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/smoke/input.css:4:5 + | +4 | width: calc(1px + 2%); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/smoke/input.css:4:5 | @@ -141,7 +153,7 @@ error: Ident 4 | width: calc(1px + 2%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/smoke/input.css:4:12 | 4 | width: calc(1px + 2%); @@ -159,7 +171,7 @@ error: Ident 4 | width: calc(1px + 2%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/smoke/input.css:4:17 | 4 | width: calc(1px + 2%); diff --git a/crates/swc_css_parser/tests/fixture/rome/supports/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/supports/span.rust-debug index 9ca0eda01cd..4e61807c307 100644 --- a/crates/swc_css_parser/tests/fixture/rome/supports/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/supports/span.rust-debug @@ -79,7 +79,7 @@ error: Ident 1 | @supports not (display: flex) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:1:25 | 1 | @supports not (display: flex) { @@ -172,7 +172,7 @@ error: Ident 4 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:4:25 | 4 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -184,7 +184,7 @@ error: Integer 4 | @supports ( box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:4:27 | 4 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -196,7 +196,7 @@ error: Integer 4 | @supports ( box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:4:29 | 4 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -226,7 +226,7 @@ error: Ident 4 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:4:33 | 4 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -238,7 +238,7 @@ error: Ident 4 | @supports ( box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:4:39 | 4 | @supports ( box-shadow: 0 0 2px black inset ) or @@ -296,7 +296,7 @@ error: Ident 5 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:5:30 | 5 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -308,7 +308,7 @@ error: Integer 5 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:5:32 | 5 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -320,7 +320,7 @@ error: Integer 5 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:5:34 | 5 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -350,7 +350,7 @@ error: Ident 5 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:5:38 | 5 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -362,7 +362,7 @@ error: Ident 5 | ( -moz-box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:5:44 | 5 | ( -moz-box-shadow: 0 0 2px black inset ) or @@ -420,7 +420,7 @@ error: Ident 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:6:33 | 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -432,7 +432,7 @@ error: Integer 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:6:35 | 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -444,7 +444,7 @@ error: Integer 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:6:37 | 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -474,7 +474,7 @@ error: Ident 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:6:41 | 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -486,7 +486,7 @@ error: Ident 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:6:47 | 6 | ( -webkit-box-shadow: 0 0 2px black inset ) or @@ -544,7 +544,7 @@ error: Ident 7 | ( -o-box-shadow: 0 0 2px black inset ) {} | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:7:28 | 7 | ( -o-box-shadow: 0 0 2px black inset ) {} @@ -556,7 +556,7 @@ error: Integer 7 | ( -o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:7:30 | 7 | ( -o-box-shadow: 0 0 2px black inset ) {} @@ -568,7 +568,7 @@ error: Integer 7 | ( -o-box-shadow: 0 0 2px black inset ) {} | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:7:32 | 7 | ( -o-box-shadow: 0 0 2px black inset ) {} @@ -598,7 +598,7 @@ error: Ident 7 | ( -o-box-shadow: 0 0 2px black inset ) {} | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:7:36 | 7 | ( -o-box-shadow: 0 0 2px black inset ) {} @@ -610,7 +610,7 @@ error: Ident 7 | ( -o-box-shadow: 0 0 2px black inset ) {} | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:7:42 | 7 | ( -o-box-shadow: 0 0 2px black inset ) {} @@ -721,7 +721,7 @@ error: Ident 10 | @supports ((transition-property: color) or | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:10:34 | 10 | @supports ((transition-property: color) or @@ -779,7 +779,7 @@ error: Ident 11 | (animation-name: foo)) and | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:11:29 | 11 | (animation-name: foo)) and @@ -837,7 +837,7 @@ error: Ident 12 | (transform: rotate(10deg)) {} | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:12:23 | 12 | (transform: rotate(10deg)) {} @@ -855,7 +855,7 @@ error: Ident 12 | (transform: rotate(10deg)) {} | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/supports/input.css:12:30 | 12 | (transform: rotate(10deg)) {} diff --git a/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug index 02b86a35d6a..db45b28cb0a 100644 --- a/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug @@ -95,6 +95,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:2:2 + | +2 | content: ' content '; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:2:2 | @@ -119,7 +125,7 @@ error: Ident 2 | content: ' content '; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:2:11 | 2 | content: ' content '; @@ -201,6 +207,12 @@ error: SimpleBlock 10 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:6:2 + | +6 | opacity: 1e-3; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:6:2 | @@ -225,7 +237,7 @@ error: Ident 6 | opacity: 1e-3; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:6:11 | 6 | opacity: 1e-3; @@ -237,6 +249,12 @@ error: Number 6 | opacity: 1e-3; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:7:2 + | +7 | line-height: 0.2; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:7:2 | @@ -261,7 +279,7 @@ error: Ident 7 | line-height: 0.2; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:7:15 | 7 | line-height: 0.2; @@ -273,6 +291,12 @@ error: Number 7 | line-height: 0.2; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:8:2 + | +8 | width: 20%; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:8:2 | @@ -297,7 +321,7 @@ error: Ident 8 | width: 20%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:8:9 | 8 | width: 20%; @@ -315,6 +339,12 @@ error: Number 8 | width: 20%; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:9:2 + | +9 | margin-top: -5%; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:9:2 | @@ -339,7 +369,7 @@ error: Ident 9 | margin-top: -5%; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:9:14 | 9 | margin-top: -5%; @@ -424,6 +454,12 @@ error: SimpleBlock 14 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:13:2 + | +13 | color: yellow + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:13:2 | @@ -448,7 +484,7 @@ error: Ident 13 | color: yellow | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:13:9 | 13 | color: yellow @@ -530,6 +566,12 @@ error: SimpleBlock 19 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:17:2 + | +17 | color: yellow; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:17:2 | @@ -554,7 +596,7 @@ error: Ident 17 | color: yellow; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:17:9 | 17 | color: yellow; @@ -566,6 +608,12 @@ error: Ident 17 | color: yellow; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/rome/values/input.css:18:2 + | +18 | background: none + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/rome/values/input.css:18:2 | @@ -590,7 +638,7 @@ error: Ident 18 | background: none | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/rome/values/input.css:18:14 | 18 | background: none diff --git a/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug index 09fc4c89428..02edbde85c4 100644 --- a/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug @@ -107,6 +107,16 @@ error: SimpleBlock 13 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:2:5 + | +2 | / & td { +3 | | text-align: center; +4 | | &.c { text-transform:uppercase } +5 | | &:first-child, &:first-child + td { border:1px solid black } +6 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:2:5 | @@ -198,6 +208,12 @@ error: SimpleBlock 6 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:3:9 + | +3 | text-align: center; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:3:9 | @@ -222,7 +238,7 @@ error: Ident 3 | text-align: center; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:3:21 | 3 | text-align: center; @@ -234,6 +250,12 @@ error: Ident 3 | text-align: center; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:4:9 + | +4 | &.c { text-transform:uppercase } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:4:9 | @@ -294,6 +316,12 @@ error: SimpleBlock 4 | &.c { text-transform:uppercase } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:4:15 + | +4 | &.c { text-transform:uppercase } + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:4:15 | @@ -318,7 +346,7 @@ error: Ident 4 | &.c { text-transform:uppercase } | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:4:30 | 4 | &.c { text-transform:uppercase } @@ -330,6 +358,12 @@ error: Ident 4 | &.c { text-transform:uppercase } | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:5:9 + | +5 | &:first-child, &:first-child + td { border:1px solid black } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:5:9 | @@ -462,6 +496,12 @@ error: SimpleBlock 5 | &:first-child, &:first-child + td { border:1px solid black } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:5:45 + | +5 | &:first-child, &:first-child + td { border:1px solid black } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:5:45 | @@ -486,7 +526,7 @@ error: Ident 5 | &:first-child, &:first-child + td { border:1px solid black } | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:5:52 | 5 | &:first-child, &:first-child + td { border:1px solid black } @@ -516,7 +556,7 @@ error: Ident 5 | &:first-child, &:first-child + td { border:1px solid black } | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:5:56 | 5 | &:first-child, &:first-child + td { border:1px solid black } @@ -528,7 +568,7 @@ error: Ident 5 | &:first-child, &:first-child + td { border:1px solid black } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:5:62 | 5 | &:first-child, &:first-child + td { border:1px solid black } @@ -540,6 +580,16 @@ error: Ident 5 | &:first-child, &:first-child + td { border:1px solid black } | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:8:5 + | +8 | / & th { +9 | | text-align:center; +10 | | background:black; +11 | | color:white; +12 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:8:5 | @@ -631,6 +681,12 @@ error: SimpleBlock 12 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:9:7 + | +9 | text-align:center; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:9:7 | @@ -655,7 +711,7 @@ error: Ident 9 | text-align:center; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:9:18 | 9 | text-align:center; @@ -667,6 +723,12 @@ error: Ident 9 | text-align:center; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:10:7 + | +10 | background:black; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:10:7 | @@ -691,7 +753,7 @@ error: Ident 10 | background:black; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:10:18 | 10 | background:black; @@ -703,6 +765,12 @@ error: Ident 10 | background:black; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:11:7 + | +11 | color:white; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:11:7 | @@ -727,7 +795,7 @@ error: Ident 11 | color:white; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:11:13 | 11 | color:white; @@ -803,6 +871,12 @@ error: SimpleBlock 18 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:16:5 + | +16 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:16:5 | @@ -827,7 +901,7 @@ error: Ident 16 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:16:12 | 16 | color: blue; @@ -839,6 +913,12 @@ error: Ident 16 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:17:5 + | +17 | & > .bar { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:17:5 | @@ -911,6 +991,12 @@ error: SimpleBlock 17 | & > .bar { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:17:16 + | +17 | & > .bar { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:17:16 | @@ -935,7 +1021,7 @@ error: Ident 17 | & > .bar { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:17:23 | 17 | & > .bar { color: red; } @@ -1011,6 +1097,12 @@ error: SimpleBlock 23 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:21:5 + | +21 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:21:5 | @@ -1035,7 +1127,7 @@ error: Ident 21 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:21:12 | 21 | color: blue; @@ -1047,6 +1139,12 @@ error: Ident 21 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:22:5 + | +22 | &.bar { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:22:5 | @@ -1107,6 +1205,12 @@ error: SimpleBlock 22 | &.bar { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:22:13 + | +22 | &.bar { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:22:13 | @@ -1131,7 +1235,7 @@ error: Ident 22 | &.bar { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:22:20 | 22 | &.bar { color: red; } @@ -1237,6 +1341,12 @@ error: SimpleBlock 28 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:26:5 + | +26 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:26:5 | @@ -1261,7 +1371,7 @@ error: Ident 26 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:26:12 | 26 | color: blue; @@ -1273,6 +1383,12 @@ error: Ident 26 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:27:5 + | +27 | & + .baz, &.qux { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:27:5 | @@ -1381,6 +1497,12 @@ error: SimpleBlock 27 | & + .baz, &.qux { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:27:23 + | +27 | & + .baz, &.qux { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:27:23 | @@ -1405,7 +1527,7 @@ error: Ident 27 | & + .baz, &.qux { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:27:30 | 27 | & + .baz, &.qux { color: red; } @@ -1481,6 +1603,12 @@ error: SimpleBlock 33 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:31:5 + | +31 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:31:5 | @@ -1505,7 +1633,7 @@ error: Ident 31 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:31:12 | 31 | color: blue; @@ -1517,6 +1645,12 @@ error: Ident 31 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:32:5 + | +32 | & .bar & .baz & .qux { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:32:5 | @@ -1685,6 +1819,12 @@ error: SimpleBlock 32 | & .bar & .baz & .qux { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:32:28 + | +32 | & .bar & .baz & .qux { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:32:28 | @@ -1709,7 +1849,7 @@ error: Ident 32 | & .bar & .baz & .qux { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:32:35 | 32 | & .bar & .baz & .qux { color: red; } @@ -1785,6 +1925,12 @@ error: SimpleBlock 38 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:36:5 + | +36 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:36:5 | @@ -1809,7 +1955,7 @@ error: Ident 36 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:36:12 | 36 | color: blue; @@ -1821,6 +1967,12 @@ error: Ident 36 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:37:5 + | +37 | & { padding: 2ch; } + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:37:5 | @@ -1863,6 +2015,12 @@ error: SimpleBlock 37 | & { padding: 2ch; } | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:37:9 + | +37 | & { padding: 2ch; } + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:37:9 | @@ -1887,7 +2045,7 @@ error: Ident 37 | & { padding: 2ch; } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:37:18 | 37 | & { padding: 2ch; } @@ -2008,6 +2166,12 @@ error: SimpleBlock 48 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:47:5 + | +47 | &:hover > .baz { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:47:5 | @@ -2098,6 +2262,12 @@ error: SimpleBlock 47 | &:hover > .baz { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:47:22 + | +47 | &:hover > .baz { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:47:22 | @@ -2122,7 +2292,7 @@ error: Ident 47 | &:hover > .baz { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:47:29 | 47 | &:hover > .baz { color: red; } @@ -2195,6 +2365,12 @@ error: SimpleBlock 52 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:51:5 + | +51 | &:is(.bar, &.baz) { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:51:5 | @@ -2333,6 +2509,12 @@ error: SimpleBlock 51 | &:is(.bar, &.baz) { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:51:25 + | +51 | &:is(.bar, &.baz) { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:51:25 | @@ -2357,7 +2539,7 @@ error: Ident 51 | &:is(.bar, &.baz) { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:51:32 | 51 | &:is(.bar, &.baz) { color: red; } @@ -2448,6 +2630,12 @@ error: SimpleBlock 64 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:55:5 + | +55 | margin: 0; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:55:5 | @@ -2472,7 +2660,7 @@ error: Ident 55 | margin: 0; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:55:13 | 55 | margin: 0; @@ -2484,6 +2672,18 @@ error: Integer 55 | margin: 0; | ^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:57:5 + | +57 | / & > figcaption { +58 | | background: hsl(0 0% 0% / 50%); +59 | | +60 | | & > p { +61 | | font-size: .9rem; +62 | | } +63 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:57:5 | @@ -2581,6 +2781,12 @@ error: SimpleBlock 63 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:58:9 + | +58 | background: hsl(0 0% 0% / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:58:9 | @@ -2605,7 +2811,7 @@ error: Ident 58 | background: hsl(0 0% 0% / 50%); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:21 | 58 | background: hsl(0 0% 0% / 50%); @@ -2629,7 +2835,7 @@ error: Ident 58 | background: hsl(0 0% 0% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:25 | 58 | background: hsl(0 0% 0% / 50%); @@ -2641,7 +2847,7 @@ error: Integer 58 | background: hsl(0 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:27 | 58 | background: hsl(0 0% 0% / 50%); @@ -2659,7 +2865,7 @@ error: Number 58 | background: hsl(0 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:30 | 58 | background: hsl(0 0% 0% / 50%); @@ -2677,7 +2883,7 @@ error: Number 58 | background: hsl(0 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:33 | 58 | background: hsl(0 0% 0% / 50%); @@ -2689,7 +2895,7 @@ error: Delimiter 58 | background: hsl(0 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:58:35 | 58 | background: hsl(0 0% 0% / 50%); @@ -2707,6 +2913,14 @@ error: Number 58 | background: hsl(0 0% 0% / 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:60:9 + | +60 | / & > p { +61 | | font-size: .9rem; +62 | | } + | |_________^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:60:9 | @@ -2792,6 +3006,12 @@ error: SimpleBlock 62 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:61:15 + | +61 | font-size: .9rem; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:61:15 | @@ -2816,7 +3036,7 @@ error: Ident 61 | font-size: .9rem; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:61:26 | 61 | font-size: .9rem; @@ -2910,6 +3130,12 @@ error: SimpleBlock 69 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:67:5 + | +67 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:67:5 | @@ -2934,7 +3160,7 @@ error: Ident 67 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:67:12 | 67 | color: blue; @@ -2946,6 +3172,12 @@ error: Ident 67 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:68:5 + | +68 | &__bar { color: red; } + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:68:5 | @@ -3012,6 +3244,12 @@ error: SimpleBlock 68 | &__bar { color: red; } | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/selector/nesting/input.css:68:14 + | +68 | &__bar { color: red; } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/nesting/input.css:68:14 | @@ -3036,7 +3274,7 @@ error: Ident 68 | &__bar { color: red; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/nesting/input.css:68:21 | 68 | &__bar { color: red; } diff --git a/crates/swc_css_parser/tests/fixture/selector/pseudo-class/any/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/pseudo-class/any/span.rust-debug index fb5555e55a2..4a91956292e 100644 --- a/crates/swc_css_parser/tests/fixture/selector/pseudo-class/any/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/pseudo-class/any/span.rust-debug @@ -1598,6 +1598,12 @@ error: SimpleBlock 14 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:13:5 + | +13 | background-color: blue; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:13:5 | @@ -1622,7 +1628,7 @@ error: Ident 13 | background-color: blue; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:13:23 | 13 | background-color: blue; @@ -2136,6 +2142,12 @@ error: SimpleBlock 21 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:20:5 + | +20 | background-color: green; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:20:5 | @@ -2160,7 +2172,7 @@ error: Ident 20 | background-color: green; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/pseudo-class/any/input.css:20:23 | 20 | background-color: green; diff --git a/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug index cf1370dfac3..05452156578 100644 --- a/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug @@ -1885,6 +1885,12 @@ error: SimpleBlock 30 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/selector/type/input.css:29:5 + | +29 | color: \\; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/selector/type/input.css:29:5 | @@ -1909,7 +1915,7 @@ error: Ident 29 | color: \\; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/selector/type/input.css:29:12 | 29 | color: \\; diff --git a/crates/swc_css_parser/tests/fixture/style-block/span.rust-debug b/crates/swc_css_parser/tests/fixture/style-block/span.rust-debug index 24feb096c18..654c524f59a 100644 --- a/crates/swc_css_parser/tests/fixture/style-block/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/style-block/span.rust-debug @@ -64,6 +64,12 @@ error: SimpleBlock 1 | .foo { display: grid; } | ^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:1:8 + | +1 | .foo { display: grid; } + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:1:8 | @@ -88,7 +94,7 @@ error: Ident 1 | .foo { display: grid; } | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:1:17 | 1 | .foo { display: grid; } @@ -173,6 +179,12 @@ error: SimpleBlock 9 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:4:5 + | +4 | display: grid; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:4:5 | @@ -197,7 +209,7 @@ error: Ident 4 | display: grid; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:4:14 | 4 | display: grid; @@ -209,6 +221,14 @@ error: Ident 4 | display: grid; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:6:5 + | +6 | / @media (orientation: landscape) { +7 | | grid-auto-flow: column; +8 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:6:5 | @@ -308,6 +328,12 @@ error: SimpleBlock 8 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:7:9 + | +7 | grid-auto-flow: column; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:7:9 | @@ -332,7 +358,7 @@ error: Ident 7 | grid-auto-flow: column; | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:7:25 | 7 | grid-auto-flow: column; @@ -417,6 +443,12 @@ error: SimpleBlock 21 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:12:5 + | +12 | display: grid; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:12:5 | @@ -441,7 +473,7 @@ error: Ident 12 | display: grid; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:12:14 | 12 | display: grid; @@ -453,6 +485,18 @@ error: Ident 12 | display: grid; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:14:5 + | +14 | / @media (orientation: landscape) { +15 | | grid-auto-flow: column; +16 | | +17 | | @media (min-inline-size > 1024px) { +18 | | max-inline-size: 1024px; +19 | | } +20 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:14:5 | @@ -568,6 +612,12 @@ error: SimpleBlock 20 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:15:9 + | +15 | grid-auto-flow: column; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:15:9 | @@ -592,7 +642,7 @@ error: Ident 15 | grid-auto-flow: column; | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:15:25 | 15 | grid-auto-flow: column; @@ -604,6 +654,14 @@ error: Ident 15 | grid-auto-flow: column; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:17:9 + | +17 | / @media (min-inline-size > 1024px) { +18 | | max-inline-size: 1024px; +19 | | } + | |_________^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:17:9 | @@ -721,6 +779,12 @@ error: SimpleBlock 19 | | } | |_________^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:18:13 + | +18 | max-inline-size: 1024px; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:18:13 | @@ -745,7 +809,7 @@ error: Ident 18 | max-inline-size: 1024px; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:18:30 | 18 | max-inline-size: 1024px; @@ -882,6 +946,14 @@ error: SimpleBlock 27 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:24:5 + | +24 | / & { +25 | | grid-auto-flow: column; +26 | | } + | |_____^ + error: Rule --> $DIR/tests/fixture/style-block/input.css:24:5 | @@ -931,6 +1003,12 @@ error: SimpleBlock 26 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:25:9 + | +25 | grid-auto-flow: column; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:25:9 | @@ -955,7 +1033,7 @@ error: Ident 25 | grid-auto-flow: column; | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:25:25 | 25 | grid-auto-flow: column; @@ -1040,6 +1118,12 @@ error: SimpleBlock 35 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:30:5 + | +30 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:30:5 | @@ -1064,7 +1148,7 @@ error: Ident 30 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:30:12 | 30 | color: red; @@ -1076,6 +1160,14 @@ error: Ident 30 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:32:5 + | +32 | / @media (min-width: 480px) { +33 | | & h1, & h2 { color: blue; } +34 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:32:5 | @@ -1193,6 +1285,12 @@ error: SimpleBlock 34 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:33:9 + | +33 | & h1, & h2 { color: blue; } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:33:9 | @@ -1325,6 +1423,12 @@ error: SimpleBlock 33 | & h1, & h2 { color: blue; } | ^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:33:22 + | +33 | & h1, & h2 { color: blue; } + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:33:22 | @@ -1349,7 +1453,7 @@ error: Ident 33 | & h1, & h2 { color: blue; } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:33:29 | 33 | & h1, & h2 { color: blue; } @@ -1434,6 +1538,16 @@ error: SimpleBlock 43 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:38:5 + | +38 | / @supports not (display: grid) { +39 | | float: right; +40 | | +41 | | & .class { color: red } +42 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:38:5 | @@ -1512,7 +1626,7 @@ error: Ident 38 | @supports not (display: grid) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:38:29 | 38 | @supports not (display: grid) { @@ -1535,6 +1649,12 @@ error: SimpleBlock 42 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:39:9 + | +39 | float: right; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:39:9 | @@ -1559,7 +1679,7 @@ error: Ident 39 | float: right; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:39:16 | 39 | float: right; @@ -1571,6 +1691,12 @@ error: Ident 39 | float: right; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:41:9 + | +41 | & .class { color: red } + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:41:9 | @@ -1643,6 +1769,12 @@ error: SimpleBlock 41 | & .class { color: red } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:41:20 + | +41 | & .class { color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:41:20 | @@ -1667,7 +1799,7 @@ error: Ident 41 | & .class { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:41:27 | 41 | & .class { color: red } @@ -1752,6 +1884,12 @@ error: SimpleBlock 53 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:46:5 + | +46 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:46:5 | @@ -1776,7 +1914,7 @@ error: Ident 46 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:46:12 | 46 | color: blue; @@ -1788,6 +1926,16 @@ error: Ident 46 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:48:5 + | +48 | / @supports not (display: grid) { +49 | | float: right; +50 | | +51 | | & .class { color: red } +52 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:48:5 | @@ -1866,7 +2014,7 @@ error: Ident 48 | @supports not (display: grid) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:48:29 | 48 | @supports not (display: grid) { @@ -1889,6 +2037,12 @@ error: SimpleBlock 52 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:49:9 + | +49 | float: right; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:49:9 | @@ -1913,7 +2067,7 @@ error: Ident 49 | float: right; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:49:16 | 49 | float: right; @@ -1925,6 +2079,12 @@ error: Ident 49 | float: right; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:51:9 + | +51 | & .class { color: red } + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:51:9 | @@ -1997,6 +2157,12 @@ error: SimpleBlock 51 | & .class { color: red } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:51:20 + | +51 | & .class { color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:51:20 | @@ -2021,7 +2187,7 @@ error: Ident 51 | & .class { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:51:27 | 51 | & .class { color: red } @@ -2106,6 +2272,12 @@ error: SimpleBlock 67 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:56:5 + | +56 | color: blue; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:56:5 | @@ -2130,7 +2302,7 @@ error: Ident 56 | color: blue; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:56:12 | 56 | color: blue; @@ -2142,6 +2314,14 @@ error: Ident 56 | color: blue; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:58:5 + | +58 | / &.foo { +59 | | color: green; +60 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:58:5 | @@ -2209,6 +2389,12 @@ error: SimpleBlock 60 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:59:7 + | +59 | color: green; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:59:7 | @@ -2233,7 +2419,7 @@ error: Ident 59 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:59:14 | 59 | color: green; @@ -2245,6 +2431,16 @@ error: Ident 59 | color: green; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:62:5 + | +62 | / @supports not (display: grid) { +63 | | float: right; +64 | | +65 | | & .class { color: red } +66 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:62:5 | @@ -2323,7 +2519,7 @@ error: Ident 62 | @supports not (display: grid) { | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:62:29 | 62 | @supports not (display: grid) { @@ -2346,6 +2542,12 @@ error: SimpleBlock 66 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:63:9 + | +63 | float: right; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:63:9 | @@ -2370,7 +2572,7 @@ error: Ident 63 | float: right; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:63:16 | 63 | float: right; @@ -2382,6 +2584,12 @@ error: Ident 63 | float: right; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:65:9 + | +65 | & .class { color: red } + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:65:9 | @@ -2454,6 +2662,12 @@ error: SimpleBlock 65 | & .class { color: red } | ^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:65:20 + | +65 | & .class { color: red } + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:65:20 | @@ -2478,7 +2692,7 @@ error: Ident 65 | & .class { color: red } | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:65:27 | 65 | & .class { color: red } @@ -2563,6 +2777,12 @@ error: SimpleBlock 76 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:71:5 + | +71 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:71:5 | @@ -2587,7 +2807,7 @@ error: Ident 71 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:71:12 | 71 | color: red; @@ -2599,6 +2819,14 @@ error: Ident 71 | color: red; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:73:5 + | +73 | / @document url("https://www.example.com/") { +74 | | color: green; +75 | | } + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:73:5 | @@ -2662,6 +2890,12 @@ error: SimpleBlock 75 | | } | |_____^ +error: ComponentValue + --> $DIR/tests/fixture/style-block/input.css:74:9 + | +74 | color: green; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/style-block/input.css:74:9 | @@ -2686,7 +2920,7 @@ error: Ident 74 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/style-block/input.css:74:16 | 74 | color: green; diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug index f089033863a..c153df5c811 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug @@ -139,6 +139,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/styled-jsx/selector/1/input.css:2:5 + | +2 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/styled-jsx/selector/1/input.css:2:5 | @@ -163,7 +169,7 @@ error: Ident 2 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/styled-jsx/selector/1/input.css:2:12 | 2 | color: red; diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug index f8220d03e21..20cc5142dd7 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug @@ -175,6 +175,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/styled-jsx/selector/2/input.css:2:5 + | +2 | color: green; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/styled-jsx/selector/2/input.css:2:5 | @@ -199,7 +205,7 @@ error: Ident 2 | color: green; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/styled-jsx/selector/2/input.css:2:12 | 2 | color: green; diff --git a/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug b/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug index b1918d9b757..51e4af7a3ba 100644 --- a/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug @@ -73,6 +73,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/stylis/comma/01/input.css:2:5 + | +2 | cursor: image-set(url(foo.jpg) 2x), pointer; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/stylis/comma/01/input.css:2:5 | @@ -97,7 +103,7 @@ error: Ident 2 | cursor: image-set(url(foo.jpg) 2x), pointer; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/stylis/comma/01/input.css:2:13 | 2 | cursor: image-set(url(foo.jpg) 2x), pointer; @@ -115,7 +121,7 @@ error: Ident 2 | cursor: image-set(url(foo.jpg) 2x), pointer; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/stylis/comma/01/input.css:2:23 | 2 | cursor: image-set(url(foo.jpg) 2x), pointer; @@ -145,7 +151,7 @@ error: UrlValueRaw 2 | cursor: image-set(url(foo.jpg) 2x), pointer; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/stylis/comma/01/input.css:2:36 | 2 | cursor: image-set(url(foo.jpg) 2x), pointer; @@ -175,7 +181,7 @@ error: Ident 2 | cursor: image-set(url(foo.jpg) 2x), pointer; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/stylis/comma/01/input.css:2:39 | 2 | cursor: image-set(url(foo.jpg) 2x), pointer; @@ -187,7 +193,7 @@ error: Delimiter 2 | cursor: image-set(url(foo.jpg) 2x), pointer; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/stylis/comma/01/input.css:2:41 | 2 | cursor: image-set(url(foo.jpg) 2x), pointer; diff --git a/crates/swc_css_parser/tests/fixture/value/angle/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/angle/span.rust-debug index 0a009db0071..7da5e24b382 100644 --- a/crates/swc_css_parser/tests/fixture/value/angle/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/angle/span.rust-debug @@ -85,6 +85,12 @@ error: SimpleBlock 6 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/angle/input.css:2:5 + | +2 | transform: rotate(45deg); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/angle/input.css:2:5 | @@ -109,7 +115,7 @@ error: Ident 2 | transform: rotate(45deg); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:2:16 | 2 | transform: rotate(45deg); @@ -127,7 +133,7 @@ error: Ident 2 | transform: rotate(45deg); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:2:23 | 2 | transform: rotate(45deg); @@ -157,6 +163,12 @@ error: Ident 2 | transform: rotate(45deg); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/angle/input.css:3:5 + | +3 | transform: rotate(-50grad); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/angle/input.css:3:5 | @@ -181,7 +193,7 @@ error: Ident 3 | transform: rotate(-50grad); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:3:16 | 3 | transform: rotate(-50grad); @@ -199,7 +211,7 @@ error: Ident 3 | transform: rotate(-50grad); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:3:23 | 3 | transform: rotate(-50grad); @@ -229,6 +241,12 @@ error: Ident 3 | transform: rotate(-50grad); | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/angle/input.css:4:5 + | +4 | transform: rotate(3.1416rad); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/angle/input.css:4:5 | @@ -253,7 +271,7 @@ error: Ident 4 | transform: rotate(3.1416rad); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:4:16 | 4 | transform: rotate(3.1416rad); @@ -271,7 +289,7 @@ error: Ident 4 | transform: rotate(3.1416rad); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:4:23 | 4 | transform: rotate(3.1416rad); @@ -301,6 +319,12 @@ error: Ident 4 | transform: rotate(3.1416rad); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/angle/input.css:5:5 + | +5 | transform: rotate(1.75turn); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/angle/input.css:5:5 | @@ -325,7 +349,7 @@ error: Ident 5 | transform: rotate(1.75turn); | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:5:16 | 5 | transform: rotate(1.75turn); @@ -343,7 +367,7 @@ error: Ident 5 | transform: rotate(1.75turn); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/angle/input.css:5:23 | 5 | transform: rotate(1.75turn); diff --git a/crates/swc_css_parser/tests/fixture/value/color/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/color/span.rust-debug index c51497f0210..685ee0e0007 100644 --- a/crates/swc_css_parser/tests/fixture/value/color/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/color/span.rust-debug @@ -80,6 +80,12 @@ error: SimpleBlock 6 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:2:5 + | +2 | color: #00ff00; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:2:5 | @@ -104,7 +110,7 @@ error: Ident 2 | color: #00ff00; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:2:12 | 2 | color: #00ff00; @@ -122,6 +128,12 @@ error: HexColor 2 | color: #00ff00; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:3:5 + | +3 | color: #0000ffcc; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:3:5 | @@ -146,7 +158,7 @@ error: Ident 3 | color: #0000ffcc; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:3:12 | 3 | color: #0000ffcc; @@ -164,6 +176,12 @@ error: HexColor 3 | color: #0000ffcc; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:4:5 + | +4 | color: #123; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:4:5 | @@ -188,7 +206,7 @@ error: Ident 4 | color: #123; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:4:12 | 4 | color: #123; @@ -206,6 +224,12 @@ error: HexColor 4 | color: #123; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:5:5 + | +5 | color: #123c; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:5:5 | @@ -230,7 +254,7 @@ error: Ident 5 | color: #123c; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:5:12 | 5 | color: #123c; @@ -321,6 +345,12 @@ error: SimpleBlock 18 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:9:5 + | +9 | color: rgb(255, 165, 0); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:9:5 | @@ -345,7 +375,7 @@ error: Ident 9 | color: rgb(255, 165, 0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:12 | 9 | color: rgb(255, 165, 0); @@ -369,7 +399,7 @@ error: Ident 9 | color: rgb(255, 165, 0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:16 | 9 | color: rgb(255, 165, 0); @@ -381,7 +411,7 @@ error: Integer 9 | color: rgb(255, 165, 0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:19 | 9 | color: rgb(255, 165, 0); @@ -393,7 +423,7 @@ error: Delimiter 9 | color: rgb(255, 165, 0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:21 | 9 | color: rgb(255, 165, 0); @@ -405,7 +435,7 @@ error: Integer 9 | color: rgb(255, 165, 0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:24 | 9 | color: rgb(255, 165, 0); @@ -417,7 +447,7 @@ error: Delimiter 9 | color: rgb(255, 165, 0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:9:26 | 9 | color: rgb(255, 165, 0); @@ -429,6 +459,12 @@ error: Integer 9 | color: rgb(255, 165, 0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:10:5 + | +10 | color: rgb(255,165,0); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:10:5 | @@ -453,7 +489,7 @@ error: Ident 10 | color: rgb(255,165,0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:12 | 10 | color: rgb(255,165,0); @@ -477,7 +513,7 @@ error: Ident 10 | color: rgb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:16 | 10 | color: rgb(255,165,0); @@ -489,7 +525,7 @@ error: Integer 10 | color: rgb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:19 | 10 | color: rgb(255,165,0); @@ -501,7 +537,7 @@ error: Delimiter 10 | color: rgb(255,165,0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:20 | 10 | color: rgb(255,165,0); @@ -513,7 +549,7 @@ error: Integer 10 | color: rgb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:23 | 10 | color: rgb(255,165,0); @@ -525,7 +561,7 @@ error: Delimiter 10 | color: rgb(255,165,0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:10:24 | 10 | color: rgb(255,165,0); @@ -537,6 +573,12 @@ error: Integer 10 | color: rgb(255,165,0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:11:5 + | +11 | color: rGb(255,165,0); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:11:5 | @@ -561,7 +603,7 @@ error: Ident 11 | color: rGb(255,165,0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:12 | 11 | color: rGb(255,165,0); @@ -585,7 +627,7 @@ error: Ident 11 | color: rGb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:16 | 11 | color: rGb(255,165,0); @@ -597,7 +639,7 @@ error: Integer 11 | color: rGb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:19 | 11 | color: rGb(255,165,0); @@ -609,7 +651,7 @@ error: Delimiter 11 | color: rGb(255,165,0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:20 | 11 | color: rGb(255,165,0); @@ -621,7 +663,7 @@ error: Integer 11 | color: rGb(255,165,0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:23 | 11 | color: rGb(255,165,0); @@ -633,7 +675,7 @@ error: Delimiter 11 | color: rGb(255,165,0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:11:24 | 11 | color: rGb(255,165,0); @@ -645,6 +687,12 @@ error: Integer 11 | color: rGb(255,165,0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:12:5 + | +12 | color: rgb(0 255 0); + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:12:5 | @@ -669,7 +717,7 @@ error: Ident 12 | color: rgb(0 255 0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:12:12 | 12 | color: rgb(0 255 0); @@ -693,7 +741,7 @@ error: Ident 12 | color: rgb(0 255 0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:12:16 | 12 | color: rgb(0 255 0); @@ -705,7 +753,7 @@ error: Integer 12 | color: rgb(0 255 0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:12:18 | 12 | color: rgb(0 255 0); @@ -717,7 +765,7 @@ error: Integer 12 | color: rgb(0 255 0); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:12:22 | 12 | color: rgb(0 255 0); @@ -729,6 +777,12 @@ error: Integer 12 | color: rgb(0 255 0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:13:5 + | +13 | color: rgb(0%100%0%); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:13:5 | @@ -753,7 +807,7 @@ error: Ident 13 | color: rgb(0%100%0%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:13:12 | 13 | color: rgb(0%100%0%); @@ -777,7 +831,7 @@ error: Ident 13 | color: rgb(0%100%0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:13:16 | 13 | color: rgb(0%100%0%); @@ -795,7 +849,7 @@ error: Number 13 | color: rgb(0%100%0%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:13:18 | 13 | color: rgb(0%100%0%); @@ -813,7 +867,7 @@ error: Number 13 | color: rgb(0%100%0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:13:22 | 13 | color: rgb(0%100%0%); @@ -831,6 +885,12 @@ error: Number 13 | color: rgb(0%100%0%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:14:5 + | +14 | color: rgb(29 164 192 / 95%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:14:5 | @@ -855,7 +915,7 @@ error: Ident 14 | color: rgb(29 164 192 / 95%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:12 | 14 | color: rgb(29 164 192 / 95%); @@ -879,7 +939,7 @@ error: Ident 14 | color: rgb(29 164 192 / 95%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:16 | 14 | color: rgb(29 164 192 / 95%); @@ -891,7 +951,7 @@ error: Integer 14 | color: rgb(29 164 192 / 95%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:19 | 14 | color: rgb(29 164 192 / 95%); @@ -903,7 +963,7 @@ error: Integer 14 | color: rgb(29 164 192 / 95%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:23 | 14 | color: rgb(29 164 192 / 95%); @@ -915,7 +975,7 @@ error: Integer 14 | color: rgb(29 164 192 / 95%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:27 | 14 | color: rgb(29 164 192 / 95%); @@ -927,7 +987,7 @@ error: Delimiter 14 | color: rgb(29 164 192 / 95%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:14:29 | 14 | color: rgb(29 164 192 / 95%); @@ -945,6 +1005,12 @@ error: Number 14 | color: rgb(29 164 192 / 95%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:15:5 + | +15 | color: rgb(123 255 255 / .5); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:15:5 | @@ -969,7 +1035,7 @@ error: Ident 15 | color: rgb(123 255 255 / .5); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:12 | 15 | color: rgb(123 255 255 / .5); @@ -993,7 +1059,7 @@ error: Ident 15 | color: rgb(123 255 255 / .5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:16 | 15 | color: rgb(123 255 255 / .5); @@ -1005,7 +1071,7 @@ error: Integer 15 | color: rgb(123 255 255 / .5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:20 | 15 | color: rgb(123 255 255 / .5); @@ -1017,7 +1083,7 @@ error: Integer 15 | color: rgb(123 255 255 / .5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:24 | 15 | color: rgb(123 255 255 / .5); @@ -1029,7 +1095,7 @@ error: Integer 15 | color: rgb(123 255 255 / .5); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:28 | 15 | color: rgb(123 255 255 / .5); @@ -1041,7 +1107,7 @@ error: Delimiter 15 | color: rgb(123 255 255 / .5); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:15:30 | 15 | color: rgb(123 255 255 / .5); @@ -1053,6 +1119,12 @@ error: Number 15 | color: rgb(123 255 255 / .5); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:16:5 + | +16 | color: rgb(123 255 255 / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:16:5 | @@ -1077,7 +1149,7 @@ error: Ident 16 | color: rgb(123 255 255 / 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:12 | 16 | color: rgb(123 255 255 / 50%); @@ -1101,7 +1173,7 @@ error: Ident 16 | color: rgb(123 255 255 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:16 | 16 | color: rgb(123 255 255 / 50%); @@ -1113,7 +1185,7 @@ error: Integer 16 | color: rgb(123 255 255 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:20 | 16 | color: rgb(123 255 255 / 50%); @@ -1125,7 +1197,7 @@ error: Integer 16 | color: rgb(123 255 255 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:24 | 16 | color: rgb(123 255 255 / 50%); @@ -1137,7 +1209,7 @@ error: Integer 16 | color: rgb(123 255 255 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:28 | 16 | color: rgb(123 255 255 / 50%); @@ -1149,7 +1221,7 @@ error: Delimiter 16 | color: rgb(123 255 255 / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:16:30 | 16 | color: rgb(123 255 255 / 50%); @@ -1167,6 +1239,12 @@ error: Number 16 | color: rgb(123 255 255 / 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:17:5 + | +17 | color: rgb(48% 100% 100% / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:17:5 | @@ -1191,7 +1269,7 @@ error: Ident 17 | color: rgb(48% 100% 100% / 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:12 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1215,7 +1293,7 @@ error: Ident 17 | color: rgb(48% 100% 100% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:16 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1233,7 +1311,7 @@ error: Number 17 | color: rgb(48% 100% 100% / 50%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:20 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1251,7 +1329,7 @@ error: Number 17 | color: rgb(48% 100% 100% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:25 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1269,7 +1347,7 @@ error: Number 17 | color: rgb(48% 100% 100% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:30 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1281,7 +1359,7 @@ error: Delimiter 17 | color: rgb(48% 100% 100% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:17:32 | 17 | color: rgb(48% 100% 100% / 50%); @@ -1366,6 +1444,12 @@ error: SimpleBlock 24 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:21:5 + | +21 | color: rgba(255, 0, 0, 100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:21:5 | @@ -1390,7 +1474,7 @@ error: Ident 21 | color: rgba(255, 0, 0, 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:12 | 21 | color: rgba(255, 0, 0, 100%); @@ -1414,7 +1498,7 @@ error: Ident 21 | color: rgba(255, 0, 0, 100%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:17 | 21 | color: rgba(255, 0, 0, 100%); @@ -1426,7 +1510,7 @@ error: Integer 21 | color: rgba(255, 0, 0, 100%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:20 | 21 | color: rgba(255, 0, 0, 100%); @@ -1438,7 +1522,7 @@ error: Delimiter 21 | color: rgba(255, 0, 0, 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:22 | 21 | color: rgba(255, 0, 0, 100%); @@ -1450,7 +1534,7 @@ error: Integer 21 | color: rgba(255, 0, 0, 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:23 | 21 | color: rgba(255, 0, 0, 100%); @@ -1462,7 +1546,7 @@ error: Delimiter 21 | color: rgba(255, 0, 0, 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:25 | 21 | color: rgba(255, 0, 0, 100%); @@ -1474,7 +1558,7 @@ error: Integer 21 | color: rgba(255, 0, 0, 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:26 | 21 | color: rgba(255, 0, 0, 100%); @@ -1486,7 +1570,7 @@ error: Delimiter 21 | color: rgba(255, 0, 0, 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:21:28 | 21 | color: rgba(255, 0, 0, 100%); @@ -1504,6 +1588,12 @@ error: Number 21 | color: rgba(255, 0, 0, 100%); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:22:5 + | +22 | color: rgba(255, 255, 0, 1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:22:5 | @@ -1528,7 +1618,7 @@ error: Ident 22 | color: rgba(255, 255, 0, 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:12 | 22 | color: rgba(255, 255, 0, 1); @@ -1552,7 +1642,7 @@ error: Ident 22 | color: rgba(255, 255, 0, 1); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:17 | 22 | color: rgba(255, 255, 0, 1); @@ -1564,7 +1654,7 @@ error: Integer 22 | color: rgba(255, 255, 0, 1); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:20 | 22 | color: rgba(255, 255, 0, 1); @@ -1576,7 +1666,7 @@ error: Delimiter 22 | color: rgba(255, 255, 0, 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:22 | 22 | color: rgba(255, 255, 0, 1); @@ -1588,7 +1678,7 @@ error: Integer 22 | color: rgba(255, 255, 0, 1); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:25 | 22 | color: rgba(255, 255, 0, 1); @@ -1600,7 +1690,7 @@ error: Delimiter 22 | color: rgba(255, 255, 0, 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:27 | 22 | color: rgba(255, 255, 0, 1); @@ -1612,7 +1702,7 @@ error: Integer 22 | color: rgba(255, 255, 0, 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:28 | 22 | color: rgba(255, 255, 0, 1); @@ -1624,7 +1714,7 @@ error: Delimiter 22 | color: rgba(255, 255, 0, 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:22:30 | 22 | color: rgba(255, 255, 0, 1); @@ -1636,6 +1726,12 @@ error: Integer 22 | color: rgba(255, 255, 0, 1); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:23:5 + | +23 | color: rgba(255, 255, 0, 0.8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:23:5 | @@ -1660,7 +1756,7 @@ error: Ident 23 | color: rgba(255, 255, 0, 0.8); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:12 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1684,7 +1780,7 @@ error: Ident 23 | color: rgba(255, 255, 0, 0.8); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:17 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1696,7 +1792,7 @@ error: Integer 23 | color: rgba(255, 255, 0, 0.8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:20 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1708,7 +1804,7 @@ error: Delimiter 23 | color: rgba(255, 255, 0, 0.8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:22 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1720,7 +1816,7 @@ error: Integer 23 | color: rgba(255, 255, 0, 0.8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:25 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1732,7 +1828,7 @@ error: Delimiter 23 | color: rgba(255, 255, 0, 0.8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:27 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1744,7 +1840,7 @@ error: Integer 23 | color: rgba(255, 255, 0, 0.8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:28 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1756,7 +1852,7 @@ error: Delimiter 23 | color: rgba(255, 255, 0, 0.8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:23:30 | 23 | color: rgba(255, 255, 0, 0.8); @@ -1841,6 +1937,12 @@ error: SimpleBlock 34 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:27:5 + | +27 | color: hsl(38.824 100% 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:27:5 | @@ -1865,7 +1967,7 @@ error: Ident 27 | color: hsl(38.824 100% 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:27:12 | 27 | color: hsl(38.824 100% 50%); @@ -1889,7 +1991,7 @@ error: Ident 27 | color: hsl(38.824 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:27:16 | 27 | color: hsl(38.824 100% 50%); @@ -1901,7 +2003,7 @@ error: Number 27 | color: hsl(38.824 100% 50%); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:27:23 | 27 | color: hsl(38.824 100% 50%); @@ -1919,7 +2021,7 @@ error: Number 27 | color: hsl(38.824 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:27:28 | 27 | color: hsl(38.824 100% 50%); @@ -1937,6 +2039,12 @@ error: Number 27 | color: hsl(38.824 100% 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:28:5 + | +28 | color: HsL(39 100% 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:28:5 | @@ -1961,7 +2069,7 @@ error: Ident 28 | color: HsL(39 100% 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:28:12 | 28 | color: HsL(39 100% 50%); @@ -1985,7 +2093,7 @@ error: Ident 28 | color: HsL(39 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:28:16 | 28 | color: HsL(39 100% 50%); @@ -1997,7 +2105,7 @@ error: Integer 28 | color: HsL(39 100% 50%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:28:19 | 28 | color: HsL(39 100% 50%); @@ -2015,7 +2123,7 @@ error: Number 28 | color: HsL(39 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:28:24 | 28 | color: HsL(39 100% 50%); @@ -2033,6 +2141,12 @@ error: Number 28 | color: HsL(39 100% 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:29:5 + | +29 | color: hsl(100deg, 100%, 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:29:5 | @@ -2057,7 +2171,7 @@ error: Ident 29 | color: hsl(100deg, 100%, 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:12 | 29 | color: hsl(100deg, 100%, 50%); @@ -2081,7 +2195,7 @@ error: Ident 29 | color: hsl(100deg, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:16 | 29 | color: hsl(100deg, 100%, 50%); @@ -2111,7 +2225,7 @@ error: Ident 29 | color: hsl(100deg, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:22 | 29 | color: hsl(100deg, 100%, 50%); @@ -2123,7 +2237,7 @@ error: Delimiter 29 | color: hsl(100deg, 100%, 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:24 | 29 | color: hsl(100deg, 100%, 50%); @@ -2141,7 +2255,7 @@ error: Number 29 | color: hsl(100deg, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:28 | 29 | color: hsl(100deg, 100%, 50%); @@ -2153,7 +2267,7 @@ error: Delimiter 29 | color: hsl(100deg, 100%, 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:29:30 | 29 | color: hsl(100deg, 100%, 50%); @@ -2171,6 +2285,12 @@ error: Number 29 | color: hsl(100deg, 100%, 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:30:5 + | +30 | color: hsl(100, 100%, 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:30:5 | @@ -2195,7 +2315,7 @@ error: Ident 30 | color: hsl(100, 100%, 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:12 | 30 | color: hsl(100, 100%, 50%); @@ -2219,7 +2339,7 @@ error: Ident 30 | color: hsl(100, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:16 | 30 | color: hsl(100, 100%, 50%); @@ -2231,7 +2351,7 @@ error: Integer 30 | color: hsl(100, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:19 | 30 | color: hsl(100, 100%, 50%); @@ -2243,7 +2363,7 @@ error: Delimiter 30 | color: hsl(100, 100%, 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:21 | 30 | color: hsl(100, 100%, 50%); @@ -2261,7 +2381,7 @@ error: Number 30 | color: hsl(100, 100%, 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:25 | 30 | color: hsl(100, 100%, 50%); @@ -2273,7 +2393,7 @@ error: Delimiter 30 | color: hsl(100, 100%, 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:30:27 | 30 | color: hsl(100, 100%, 50%); @@ -2291,6 +2411,12 @@ error: Number 30 | color: hsl(100, 100%, 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:31:5 + | +31 | color: hsl(100 100% 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:31:5 | @@ -2315,7 +2441,7 @@ error: Ident 31 | color: hsl(100 100% 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:31:12 | 31 | color: hsl(100 100% 50%); @@ -2339,7 +2465,7 @@ error: Ident 31 | color: hsl(100 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:31:16 | 31 | color: hsl(100 100% 50%); @@ -2351,7 +2477,7 @@ error: Integer 31 | color: hsl(100 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:31:20 | 31 | color: hsl(100 100% 50%); @@ -2369,7 +2495,7 @@ error: Number 31 | color: hsl(100 100% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:31:25 | 31 | color: hsl(100 100% 50%); @@ -2387,6 +2513,12 @@ error: Number 31 | color: hsl(100 100% 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:32:5 + | +32 | color: hsl(100, 100%, 50%, .8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:32:5 | @@ -2411,7 +2543,7 @@ error: Ident 32 | color: hsl(100, 100%, 50%, .8); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:12 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2435,7 +2567,7 @@ error: Ident 32 | color: hsl(100, 100%, 50%, .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:16 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2447,7 +2579,7 @@ error: Integer 32 | color: hsl(100, 100%, 50%, .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:19 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2459,7 +2591,7 @@ error: Delimiter 32 | color: hsl(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:21 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2477,7 +2609,7 @@ error: Number 32 | color: hsl(100, 100%, 50%, .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:25 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2489,7 +2621,7 @@ error: Delimiter 32 | color: hsl(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:27 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2507,7 +2639,7 @@ error: Number 32 | color: hsl(100, 100%, 50%, .8); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:30 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2519,7 +2651,7 @@ error: Delimiter 32 | color: hsl(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:32:32 | 32 | color: hsl(100, 100%, 50%, .8); @@ -2531,6 +2663,12 @@ error: Number 32 | color: hsl(100, 100%, 50%, .8); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:33:5 + | +33 | color: hsl(100 100% 50% / .8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:33:5 | @@ -2555,7 +2693,7 @@ error: Ident 33 | color: hsl(100 100% 50% / .8); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:12 | 33 | color: hsl(100 100% 50% / .8); @@ -2579,7 +2717,7 @@ error: Ident 33 | color: hsl(100 100% 50% / .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:16 | 33 | color: hsl(100 100% 50% / .8); @@ -2591,7 +2729,7 @@ error: Integer 33 | color: hsl(100 100% 50% / .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:20 | 33 | color: hsl(100 100% 50% / .8); @@ -2609,7 +2747,7 @@ error: Number 33 | color: hsl(100 100% 50% / .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:25 | 33 | color: hsl(100 100% 50% / .8); @@ -2627,7 +2765,7 @@ error: Number 33 | color: hsl(100 100% 50% / .8); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:29 | 33 | color: hsl(100 100% 50% / .8); @@ -2639,7 +2777,7 @@ error: Delimiter 33 | color: hsl(100 100% 50% / .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:33:31 | 33 | color: hsl(100 100% 50% / .8); @@ -2715,6 +2853,12 @@ error: SimpleBlock 39 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:37:5 + | +37 | color: hsla(100, 100%, 50%, .8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:37:5 | @@ -2739,7 +2883,7 @@ error: Ident 37 | color: hsla(100, 100%, 50%, .8); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:12 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2763,7 +2907,7 @@ error: Ident 37 | color: hsla(100, 100%, 50%, .8); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:17 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2775,7 +2919,7 @@ error: Integer 37 | color: hsla(100, 100%, 50%, .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:20 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2787,7 +2931,7 @@ error: Delimiter 37 | color: hsla(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:22 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2805,7 +2949,7 @@ error: Number 37 | color: hsla(100, 100%, 50%, .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:26 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2817,7 +2961,7 @@ error: Delimiter 37 | color: hsla(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:28 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2835,7 +2979,7 @@ error: Number 37 | color: hsla(100, 100%, 50%, .8); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:31 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2847,7 +2991,7 @@ error: Delimiter 37 | color: hsla(100, 100%, 50%, .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:37:33 | 37 | color: hsla(100, 100%, 50%, .8); @@ -2859,6 +3003,12 @@ error: Number 37 | color: hsla(100, 100%, 50%, .8); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:38:5 + | +38 | color: hsla(100 100% 50% / .8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:38:5 | @@ -2883,7 +3033,7 @@ error: Ident 38 | color: hsla(100 100% 50% / .8); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:12 | 38 | color: hsla(100 100% 50% / .8); @@ -2907,7 +3057,7 @@ error: Ident 38 | color: hsla(100 100% 50% / .8); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:17 | 38 | color: hsla(100 100% 50% / .8); @@ -2919,7 +3069,7 @@ error: Integer 38 | color: hsla(100 100% 50% / .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:21 | 38 | color: hsla(100 100% 50% / .8); @@ -2937,7 +3087,7 @@ error: Number 38 | color: hsla(100 100% 50% / .8); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:26 | 38 | color: hsla(100 100% 50% / .8); @@ -2955,7 +3105,7 @@ error: Number 38 | color: hsla(100 100% 50% / .8); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:30 | 38 | color: hsla(100 100% 50% / .8); @@ -2967,7 +3117,7 @@ error: Delimiter 38 | color: hsla(100 100% 50% / .8); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:38:32 | 38 | color: hsla(100 100% 50% / .8); @@ -3052,6 +3202,12 @@ error: SimpleBlock 47 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:42:5 + | +42 | color: hwb(194 0% 0%); + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:42:5 | @@ -3076,7 +3232,7 @@ error: Ident 42 | color: hwb(194 0% 0%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:42:12 | 42 | color: hwb(194 0% 0%); @@ -3100,7 +3256,7 @@ error: Ident 42 | color: hwb(194 0% 0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:42:16 | 42 | color: hwb(194 0% 0%); @@ -3112,7 +3268,7 @@ error: Integer 42 | color: hwb(194 0% 0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:42:20 | 42 | color: hwb(194 0% 0%); @@ -3130,7 +3286,7 @@ error: Number 42 | color: hwb(194 0% 0%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:42:23 | 42 | color: hwb(194 0% 0%); @@ -3148,6 +3304,12 @@ error: Number 42 | color: hwb(194 0% 0%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:43:5 + | +43 | color: hwb(194 0% 0% / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:43:5 | @@ -3172,7 +3334,7 @@ error: Ident 43 | color: hwb(194 0% 0% / 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:12 | 43 | color: hwb(194 0% 0% / 50%); @@ -3196,7 +3358,7 @@ error: Ident 43 | color: hwb(194 0% 0% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:16 | 43 | color: hwb(194 0% 0% / 50%); @@ -3208,7 +3370,7 @@ error: Integer 43 | color: hwb(194 0% 0% / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:20 | 43 | color: hwb(194 0% 0% / 50%); @@ -3226,7 +3388,7 @@ error: Number 43 | color: hwb(194 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:23 | 43 | color: hwb(194 0% 0% / 50%); @@ -3244,7 +3406,7 @@ error: Number 43 | color: hwb(194 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:26 | 43 | color: hwb(194 0% 0% / 50%); @@ -3256,7 +3418,7 @@ error: Delimiter 43 | color: hwb(194 0% 0% / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:43:28 | 43 | color: hwb(194 0% 0% / 50%); @@ -3274,6 +3436,12 @@ error: Number 43 | color: hwb(194 0% 0% / 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:44:5 + | +44 | color: hwb(194 0% 50%); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:44:5 | @@ -3298,7 +3466,7 @@ error: Ident 44 | color: hwb(194 0% 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:44:12 | 44 | color: hwb(194 0% 50%); @@ -3322,7 +3490,7 @@ error: Ident 44 | color: hwb(194 0% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:44:16 | 44 | color: hwb(194 0% 50%); @@ -3334,7 +3502,7 @@ error: Integer 44 | color: hwb(194 0% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:44:20 | 44 | color: hwb(194 0% 50%); @@ -3352,7 +3520,7 @@ error: Number 44 | color: hwb(194 0% 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:44:23 | 44 | color: hwb(194 0% 50%); @@ -3370,6 +3538,12 @@ error: Number 44 | color: hwb(194 0% 50%); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:45:5 + | +45 | color: hwb(194 50% 0%); + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:45:5 | @@ -3394,7 +3568,7 @@ error: Ident 45 | color: hwb(194 50% 0%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:45:12 | 45 | color: hwb(194 50% 0%); @@ -3418,7 +3592,7 @@ error: Ident 45 | color: hwb(194 50% 0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:45:16 | 45 | color: hwb(194 50% 0%); @@ -3430,7 +3604,7 @@ error: Integer 45 | color: hwb(194 50% 0%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:45:20 | 45 | color: hwb(194 50% 0%); @@ -3448,7 +3622,7 @@ error: Number 45 | color: hwb(194 50% 0%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:45:24 | 45 | color: hwb(194 50% 0%); @@ -3466,6 +3640,12 @@ error: Number 45 | color: hwb(194 50% 0%); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:46:5 + | +46 | color: hwb(194 50% 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:46:5 | @@ -3490,7 +3670,7 @@ error: Ident 46 | color: hwb(194 50% 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:46:12 | 46 | color: hwb(194 50% 50%); @@ -3514,7 +3694,7 @@ error: Ident 46 | color: hwb(194 50% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:46:16 | 46 | color: hwb(194 50% 50%); @@ -3526,7 +3706,7 @@ error: Integer 46 | color: hwb(194 50% 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:46:20 | 46 | color: hwb(194 50% 50%); @@ -3544,7 +3724,7 @@ error: Number 46 | color: hwb(194 50% 50%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:46:24 | 46 | color: hwb(194 50% 50%); @@ -3629,6 +3809,12 @@ error: SimpleBlock 53 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:50:5 + | +50 | color: lab(29.2345% 39.3825 20.0664); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:50:5 | @@ -3653,7 +3839,7 @@ error: Ident 50 | color: lab(29.2345% 39.3825 20.0664); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:50:12 | 50 | color: lab(29.2345% 39.3825 20.0664); @@ -3677,7 +3863,7 @@ error: Ident 50 | color: lab(29.2345% 39.3825 20.0664); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:50:16 | 50 | color: lab(29.2345% 39.3825 20.0664); @@ -3695,7 +3881,7 @@ error: Number 50 | color: lab(29.2345% 39.3825 20.0664); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:50:25 | 50 | color: lab(29.2345% 39.3825 20.0664); @@ -3707,7 +3893,7 @@ error: Number 50 | color: lab(29.2345% 39.3825 20.0664); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:50:33 | 50 | color: lab(29.2345% 39.3825 20.0664); @@ -3719,6 +3905,12 @@ error: Number 50 | color: lab(29.2345% 39.3825 20.0664); | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:51:5 + | +51 | color: lab(29.2345% 39.3825 20.0664 / 100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:51:5 | @@ -3743,7 +3935,7 @@ error: Ident 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:12 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3767,7 +3959,7 @@ error: Ident 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:16 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3785,7 +3977,7 @@ error: Number 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:25 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3797,7 +3989,7 @@ error: Number 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:33 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3809,7 +4001,7 @@ error: Number 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:41 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3821,7 +4013,7 @@ error: Delimiter 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:51:43 | 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); @@ -3839,6 +4031,12 @@ error: Number 51 | color: lab(29.2345% 39.3825 20.0664 / 100%); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:52:5 + | +52 | color: lab(29.2345% 39.3825 20.0664 / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:52:5 | @@ -3863,7 +4061,7 @@ error: Ident 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:12 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -3887,7 +4085,7 @@ error: Ident 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:16 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -3905,7 +4103,7 @@ error: Number 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:25 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -3917,7 +4115,7 @@ error: Number 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:33 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -3929,7 +4127,7 @@ error: Number 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:41 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -3941,7 +4139,7 @@ error: Delimiter 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:52:43 | 52 | color: lab(29.2345% 39.3825 20.0664 / 50%); @@ -4032,6 +4230,12 @@ error: SimpleBlock 62 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:56:5 + | +56 | color: lch(52.2345% 72.2 56.2 / 1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:56:5 | @@ -4056,7 +4260,7 @@ error: Ident 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:12 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4080,7 +4284,7 @@ error: Ident 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:16 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4098,7 +4302,7 @@ error: Number 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:25 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4110,7 +4314,7 @@ error: Number 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:30 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4122,7 +4326,7 @@ error: Number 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:35 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4134,7 +4338,7 @@ error: Delimiter 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:56:37 | 56 | color: lch(52.2345% 72.2 56.2 / 1); @@ -4146,6 +4350,12 @@ error: Integer 56 | color: lch(52.2345% 72.2 56.2 / 1); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:57:5 + | +57 | color: lch(29.2345% 44.2 27); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:57:5 | @@ -4170,7 +4380,7 @@ error: Ident 57 | color: lch(29.2345% 44.2 27); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:57:12 | 57 | color: lch(29.2345% 44.2 27); @@ -4194,7 +4404,7 @@ error: Ident 57 | color: lch(29.2345% 44.2 27); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:57:16 | 57 | color: lch(29.2345% 44.2 27); @@ -4212,7 +4422,7 @@ error: Number 57 | color: lch(29.2345% 44.2 27); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:57:25 | 57 | color: lch(29.2345% 44.2 27); @@ -4224,7 +4434,7 @@ error: Number 57 | color: lch(29.2345% 44.2 27); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:57:30 | 57 | color: lch(29.2345% 44.2 27); @@ -4236,6 +4446,12 @@ error: Integer 57 | color: lch(29.2345% 44.2 27); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:58:5 + | +58 | color: lch(29.2345% 44.2 45deg); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:58:5 | @@ -4260,7 +4476,7 @@ error: Ident 58 | color: lch(29.2345% 44.2 45deg); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:58:12 | 58 | color: lch(29.2345% 44.2 45deg); @@ -4284,7 +4500,7 @@ error: Ident 58 | color: lch(29.2345% 44.2 45deg); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:58:16 | 58 | color: lch(29.2345% 44.2 45deg); @@ -4302,7 +4518,7 @@ error: Number 58 | color: lch(29.2345% 44.2 45deg); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:58:25 | 58 | color: lch(29.2345% 44.2 45deg); @@ -4314,7 +4530,7 @@ error: Number 58 | color: lch(29.2345% 44.2 45deg); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:58:30 | 58 | color: lch(29.2345% 44.2 45deg); @@ -4344,6 +4560,12 @@ error: Ident 58 | color: lch(29.2345% 44.2 45deg); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:59:5 + | +59 | color: lch(29.2345% 44.2 .5turn); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:59:5 | @@ -4368,7 +4590,7 @@ error: Ident 59 | color: lch(29.2345% 44.2 .5turn); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:59:12 | 59 | color: lch(29.2345% 44.2 .5turn); @@ -4392,7 +4614,7 @@ error: Ident 59 | color: lch(29.2345% 44.2 .5turn); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:59:16 | 59 | color: lch(29.2345% 44.2 .5turn); @@ -4410,7 +4632,7 @@ error: Number 59 | color: lch(29.2345% 44.2 .5turn); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:59:25 | 59 | color: lch(29.2345% 44.2 .5turn); @@ -4422,7 +4644,7 @@ error: Number 59 | color: lch(29.2345% 44.2 .5turn); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:59:30 | 59 | color: lch(29.2345% 44.2 .5turn); @@ -4452,6 +4674,12 @@ error: Ident 59 | color: lch(29.2345% 44.2 .5turn); | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:60:5 + | +60 | color: lch(29.2345% 44.2 27 / 100%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:60:5 | @@ -4476,7 +4704,7 @@ error: Ident 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:12 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4500,7 +4728,7 @@ error: Ident 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:16 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4518,7 +4746,7 @@ error: Number 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:25 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4530,7 +4758,7 @@ error: Number 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:30 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4542,7 +4770,7 @@ error: Integer 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:33 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4554,7 +4782,7 @@ error: Delimiter 60 | color: lch(29.2345% 44.2 27 / 100%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:60:35 | 60 | color: lch(29.2345% 44.2 27 / 100%); @@ -4572,6 +4800,12 @@ error: Number 60 | color: lch(29.2345% 44.2 27 / 100%); | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:61:5 + | +61 | color: lch(29.2345% 44.2 27 / 50%); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:61:5 | @@ -4596,7 +4830,7 @@ error: Ident 61 | color: lch(29.2345% 44.2 27 / 50%); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:12 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4620,7 +4854,7 @@ error: Ident 61 | color: lch(29.2345% 44.2 27 / 50%); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:16 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4638,7 +4872,7 @@ error: Number 61 | color: lch(29.2345% 44.2 27 / 50%); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:25 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4650,7 +4884,7 @@ error: Number 61 | color: lch(29.2345% 44.2 27 / 50%); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:30 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4662,7 +4896,7 @@ error: Integer 61 | color: lch(29.2345% 44.2 27 / 50%); | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:33 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4674,7 +4908,7 @@ error: Delimiter 61 | color: lch(29.2345% 44.2 27 / 50%); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:61:35 | 61 | color: lch(29.2345% 44.2 27 / 50%); @@ -4753,6 +4987,12 @@ error: SimpleBlock 66 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:65:5 + | +65 | color: oklab(40.101% 0.1147 0.0453); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:65:5 | @@ -4777,7 +5017,7 @@ error: Ident 65 | color: oklab(40.101% 0.1147 0.0453); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:65:12 | 65 | color: oklab(40.101% 0.1147 0.0453); @@ -4801,7 +5041,7 @@ error: Ident 65 | color: oklab(40.101% 0.1147 0.0453); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:65:18 | 65 | color: oklab(40.101% 0.1147 0.0453); @@ -4819,7 +5059,7 @@ error: Number 65 | color: oklab(40.101% 0.1147 0.0453); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:65:26 | 65 | color: oklab(40.101% 0.1147 0.0453); @@ -4831,7 +5071,7 @@ error: Number 65 | color: oklab(40.101% 0.1147 0.0453); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:65:33 | 65 | color: oklab(40.101% 0.1147 0.0453); @@ -4907,6 +5147,12 @@ error: SimpleBlock 71 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:69:5 + | +69 | color: oklch(42.1% 0.192 328.6 / 1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:69:5 | @@ -4931,7 +5177,7 @@ error: Ident 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:12 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -4955,7 +5201,7 @@ error: Ident 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:18 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -4973,7 +5219,7 @@ error: Number 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:24 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -4985,7 +5231,7 @@ error: Number 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:30 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -4997,7 +5243,7 @@ error: Number 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:36 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -5009,7 +5255,7 @@ error: Delimiter 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:69:38 | 69 | color: oklch(42.1% 0.192 328.6 / 1); @@ -5021,6 +5267,12 @@ error: Integer 69 | color: oklch(42.1% 0.192 328.6 / 1); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:70:5 + | +70 | color: oklch(42.1% 0.192 328.6); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:70:5 | @@ -5045,7 +5297,7 @@ error: Ident 70 | color: oklch(42.1% 0.192 328.6); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:70:12 | 70 | color: oklch(42.1% 0.192 328.6); @@ -5069,7 +5321,7 @@ error: Ident 70 | color: oklch(42.1% 0.192 328.6); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:70:18 | 70 | color: oklch(42.1% 0.192 328.6); @@ -5087,7 +5339,7 @@ error: Number 70 | color: oklch(42.1% 0.192 328.6); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:70:24 | 70 | color: oklch(42.1% 0.192 328.6); @@ -5099,7 +5351,7 @@ error: Number 70 | color: oklch(42.1% 0.192 328.6); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:70:30 | 70 | color: oklch(42.1% 0.192 328.6); @@ -5184,6 +5436,12 @@ error: SimpleBlock 79 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:74:5 + | +74 | color: color(sRGB 0 1 0); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:74:5 | @@ -5208,7 +5466,7 @@ error: Ident 74 | color: color(sRGB 0 1 0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:74:12 | 74 | color: color(sRGB 0 1 0); @@ -5232,7 +5490,7 @@ error: Ident 74 | color: color(sRGB 0 1 0); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:74:18 | 74 | color: color(sRGB 0 1 0); @@ -5244,7 +5502,7 @@ error: Ident 74 | color: color(sRGB 0 1 0); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:74:23 | 74 | color: color(sRGB 0 1 0); @@ -5256,7 +5514,7 @@ error: Integer 74 | color: color(sRGB 0 1 0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:74:25 | 74 | color: color(sRGB 0 1 0); @@ -5268,7 +5526,7 @@ error: Integer 74 | color: color(sRGB 0 1 0); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:74:27 | 74 | color: color(sRGB 0 1 0); @@ -5280,6 +5538,12 @@ error: Integer 74 | color: color(sRGB 0 1 0); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:75:5 + | +75 | color: color(display-p3 0.823 0.6554 0.2537 /1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:75:5 | @@ -5304,7 +5568,7 @@ error: Ident 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:12 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5328,7 +5592,7 @@ error: Ident 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:18 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5340,7 +5604,7 @@ error: Ident 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:29 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5352,7 +5616,7 @@ error: Number 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:35 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5364,7 +5628,7 @@ error: Number 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:42 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5376,7 +5640,7 @@ error: Number 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:49 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5388,7 +5652,7 @@ error: Delimiter 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:75:50 | 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); @@ -5400,6 +5664,12 @@ error: Integer 75 | color: color(display-p3 0.823 0.6554 0.2537 /1); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:76:5 + | +76 | color: color(display-p3 0.823 0.6554 0.2537); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:76:5 | @@ -5424,7 +5694,7 @@ error: Ident 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:76:12 | 76 | color: color(display-p3 0.823 0.6554 0.2537); @@ -5448,7 +5718,7 @@ error: Ident 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:76:18 | 76 | color: color(display-p3 0.823 0.6554 0.2537); @@ -5460,7 +5730,7 @@ error: Ident 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:76:29 | 76 | color: color(display-p3 0.823 0.6554 0.2537); @@ -5472,7 +5742,7 @@ error: Number 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:76:35 | 76 | color: color(display-p3 0.823 0.6554 0.2537); @@ -5484,7 +5754,7 @@ error: Number 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:76:42 | 76 | color: color(display-p3 0.823 0.6554 0.2537); @@ -5496,6 +5766,12 @@ error: Number 76 | color: color(display-p3 0.823 0.6554 0.2537); | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:77:5 + | +77 | color: color(xyz 0.472 0.372 0.131); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:77:5 | @@ -5520,7 +5796,7 @@ error: Ident 77 | color: color(xyz 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:77:12 | 77 | color: color(xyz 0.472 0.372 0.131); @@ -5544,7 +5820,7 @@ error: Ident 77 | color: color(xyz 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:77:18 | 77 | color: color(xyz 0.472 0.372 0.131); @@ -5556,7 +5832,7 @@ error: Ident 77 | color: color(xyz 0.472 0.372 0.131); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:77:22 | 77 | color: color(xyz 0.472 0.372 0.131); @@ -5568,7 +5844,7 @@ error: Number 77 | color: color(xyz 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:77:28 | 77 | color: color(xyz 0.472 0.372 0.131); @@ -5580,7 +5856,7 @@ error: Number 77 | color: color(xyz 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:77:34 | 77 | color: color(xyz 0.472 0.372 0.131); @@ -5592,6 +5868,12 @@ error: Number 77 | color: color(xyz 0.472 0.372 0.131); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/color/input.css:78:5 + | +78 | color: color(xyz-d65 0.472 0.372 0.131); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/color/input.css:78:5 | @@ -5616,7 +5898,7 @@ error: Ident 78 | color: color(xyz-d65 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:78:12 | 78 | color: color(xyz-d65 0.472 0.372 0.131); @@ -5640,7 +5922,7 @@ error: Ident 78 | color: color(xyz-d65 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:78:18 | 78 | color: color(xyz-d65 0.472 0.372 0.131); @@ -5652,7 +5934,7 @@ error: Ident 78 | color: color(xyz-d65 0.472 0.372 0.131); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:78:26 | 78 | color: color(xyz-d65 0.472 0.372 0.131); @@ -5664,7 +5946,7 @@ error: Number 78 | color: color(xyz-d65 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:78:32 | 78 | color: color(xyz-d65 0.472 0.372 0.131); @@ -5676,7 +5958,7 @@ error: Number 78 | color: color(xyz-d65 0.472 0.372 0.131); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/color/input.css:78:38 | 78 | color: color(xyz-d65 0.472 0.372 0.131); diff --git a/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug index 09d6315ac2c..33ea25a7f16 100644 --- a/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug @@ -83,6 +83,12 @@ error: SimpleBlock 57 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:2:5 + | +2 | --:value; + | ^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:2:5 | @@ -107,7 +113,7 @@ error: DashedIdent 2 | --:value; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:2:8 | 2 | --:value; @@ -119,6 +125,12 @@ error: Ident { value: Atom('value' type=inline), raw: Atom('value' type=inline) 2 | --:value; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:4:5 + | +4 | --important:value!important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:4:5 | @@ -143,7 +155,7 @@ error: DashedIdent 4 | --important:value!important; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:4:17 | 4 | --important:value!important; @@ -167,6 +179,12 @@ error: Ident 4 | --important:value!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:5:5 + | +5 | --important1: value!important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:5:5 | @@ -191,7 +209,7 @@ error: DashedIdent 5 | --important1: value!important; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:5:19 | 5 | --important1: value!important; @@ -215,6 +233,12 @@ error: Ident 5 | --important1: value!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:6:5 + | +6 | --important2: value !important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:6:5 | @@ -239,7 +263,7 @@ error: DashedIdent 6 | --important2: value !important; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:6:19 | 6 | --important2: value !important; @@ -251,7 +275,7 @@ error: Ident { value: Atom('value' type=inline), raw: Atom('value' type=inline) 6 | --important2: value !important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:6:24 | 6 | --important2: value !important; @@ -275,6 +299,12 @@ error: Ident 6 | --important2: value !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:7:5 + | +7 | --important3:value !important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:7:5 | @@ -299,7 +329,7 @@ error: DashedIdent 7 | --important3:value !important; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:7:18 | 7 | --important3:value !important; @@ -311,7 +341,7 @@ error: Ident { value: Atom('value' type=inline), raw: Atom('value' type=inline) 7 | --important3:value !important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:7:23 | 7 | --important3:value !important; @@ -335,6 +365,12 @@ error: Ident 7 | --important3:value !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:8:5 + | +8 | --important4: calc(1)!important; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:8:5 | @@ -359,7 +395,7 @@ error: DashedIdent 8 | --important4: calc(1)!important; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:8:19 | 8 | --important4: calc(1)!important; @@ -371,7 +407,7 @@ error: Function { value: Atom('calc' type=inline), raw: Atom('calc' type=inline) 8 | --important4: calc(1)!important; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:8:24 | 8 | --important4: calc(1)!important; @@ -383,7 +419,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 8 | --important4: calc(1)!important; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:8:25 | 8 | --important4: calc(1)!important; @@ -407,6 +443,12 @@ error: Ident 8 | --important4: calc(1)!important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:10:5 + | +10 | --empty: ; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:10:5 | @@ -431,6 +473,12 @@ error: DashedIdent 10 | --empty: ; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:11:5 + | +11 | --empty2: /**/; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:11:5 | @@ -455,6 +503,12 @@ error: DashedIdent 11 | --empty2: /**/; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:12:5 + | +12 | --empty3: !important; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:12:5 | @@ -491,6 +545,12 @@ error: Ident 12 | --empty3: !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:13:5 + | +13 | --empty4:/**/ !important; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:13:5 | @@ -527,6 +587,12 @@ error: Ident 13 | --empty4:/**/ !important; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:14:5 + | +14 | --empty5:/* 1 */ /* 2 */; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:14:5 | @@ -551,6 +617,12 @@ error: DashedIdent 14 | --empty5:/* 1 */ /* 2 */; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:16:5 + | +16 | --no-whitespace:ident; + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:16:5 | @@ -575,7 +647,7 @@ error: DashedIdent 16 | --no-whitespace:ident; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:16:21 | 16 | --no-whitespace:ident; @@ -587,6 +659,12 @@ error: Ident { value: Atom('ident' type=inline), raw: Atom('ident' type=inline) 16 | --no-whitespace:ident; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:17:5 + | +17 | --number: 1; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:17:5 | @@ -611,7 +689,7 @@ error: DashedIdent 17 | --number: 1; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:17:15 | 17 | --number: 1; @@ -623,6 +701,12 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 17 | --number: 1; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:18:5 + | +18 | --unit: 100vw; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:18:5 | @@ -647,7 +731,7 @@ error: DashedIdent 18 | --unit: 100vw; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:18:13 | 18 | --unit: 100vw; @@ -659,6 +743,12 @@ error: Dimension { value: 100.0, raw_value: Atom('100' type=inline), unit: Atom( 18 | --unit: 100vw; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:19:5 + | +19 | --color: #06c; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:19:5 | @@ -683,7 +773,7 @@ error: DashedIdent 19 | --color: #06c; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:19:14 | 19 | --color: #06c; @@ -695,6 +785,12 @@ error: Hash { is_id: false, value: Atom('06c' type=inline), raw: Atom('06c' type 19 | --color: #06c; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:21:5 + | +21 | --function: calc(1 + 1); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:21:5 | @@ -719,7 +815,7 @@ error: DashedIdent 21 | --function: calc(1 + 1); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:17 | 21 | --function: calc(1 + 1); @@ -731,7 +827,7 @@ error: Function { value: Atom('calc' type=inline), raw: Atom('calc' type=inline) 21 | --function: calc(1 + 1); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:22 | 21 | --function: calc(1 + 1); @@ -743,7 +839,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 21 | --function: calc(1 + 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:23 | 21 | --function: calc(1 + 1); @@ -755,7 +851,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 21 | --function: calc(1 + 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:24 | 21 | --function: calc(1 + 1); @@ -767,7 +863,7 @@ error: Delim { value: '+' } 21 | --function: calc(1 + 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:25 | 21 | --function: calc(1 + 1); @@ -779,7 +875,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 21 | --function: calc(1 + 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:26 | 21 | --function: calc(1 + 1); @@ -791,7 +887,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 21 | --function: calc(1 + 1); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:21:27 | 21 | --function: calc(1 + 1); @@ -803,6 +899,12 @@ error: RParen 21 | --function: calc(1 + 1); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:22:5 + | +22 | --variable: var(--unit); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:22:5 | @@ -827,7 +929,7 @@ error: DashedIdent 22 | --variable: var(--unit); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:22:17 | 22 | --variable: var(--unit); @@ -839,7 +941,7 @@ error: Function { value: Atom('var' type=static), raw: Atom('var' type=static) } 22 | --variable: var(--unit); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:22:21 | 22 | --variable: var(--unit); @@ -851,7 +953,7 @@ error: Ident { value: Atom('--unit' type=inline), raw: Atom('--unit' type=inline 22 | --variable: var(--unit); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:22:27 | 22 | --variable: var(--unit); @@ -863,6 +965,12 @@ error: RParen 22 | --variable: var(--unit); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:24:5 + | +24 | --string: 'single quoted string'; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:24:5 | @@ -887,7 +995,7 @@ error: DashedIdent 24 | --string: 'single quoted string'; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:24:15 | 24 | --string: 'single quoted string'; @@ -899,6 +1007,12 @@ error: String { value: Atom('single quoted string' type=dynamic), raw: Atom(''si 24 | --string: 'single quoted string'; | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:25:5 + | +25 | --string: "double quoted string"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:25:5 | @@ -923,7 +1037,7 @@ error: DashedIdent 25 | --string: "double quoted string"; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:25:15 | 25 | --string: "double quoted string"; @@ -935,6 +1049,12 @@ error: String { value: Atom('double quoted string' type=dynamic), raw: Atom('"do 25 | --string: "double quoted string"; | ^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:27:5 + | +27 | --square-block: [1, 2, 3]; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:27:5 | @@ -959,7 +1079,7 @@ error: DashedIdent 27 | --square-block: [1, 2, 3]; | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:21 | 27 | --square-block: [1, 2, 3]; @@ -971,7 +1091,7 @@ error: LBracket 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:22 | 27 | --square-block: [1, 2, 3]; @@ -983,7 +1103,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:23 | 27 | --square-block: [1, 2, 3]; @@ -995,7 +1115,7 @@ error: Comma 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:24 | 27 | --square-block: [1, 2, 3]; @@ -1007,7 +1127,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:25 | 27 | --square-block: [1, 2, 3]; @@ -1019,7 +1139,7 @@ error: Number { value: 2.0, raw: Atom('2' type=inline), type_flag: Integer } 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:26 | 27 | --square-block: [1, 2, 3]; @@ -1031,7 +1151,7 @@ error: Comma 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:27 | 27 | --square-block: [1, 2, 3]; @@ -1043,7 +1163,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:28 | 27 | --square-block: [1, 2, 3]; @@ -1055,7 +1175,7 @@ error: Number { value: 3.0, raw: Atom('3' type=inline), type_flag: Integer } 27 | --square-block: [1, 2, 3]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:27:29 | 27 | --square-block: [1, 2, 3]; @@ -1067,6 +1187,12 @@ error: RBracket 27 | --square-block: [1, 2, 3]; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:28:5 + | +28 | --square-block1: []; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:28:5 | @@ -1091,7 +1217,7 @@ error: DashedIdent 28 | --square-block1: []; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:28:22 | 28 | --square-block1: []; @@ -1103,7 +1229,7 @@ error: LBracket 28 | --square-block1: []; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:28:23 | 28 | --square-block1: []; @@ -1115,6 +1241,12 @@ error: RBracket 28 | --square-block1: []; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:29:5 + | +29 | --square-block2:[]; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:29:5 | @@ -1139,7 +1271,7 @@ error: DashedIdent 29 | --square-block2:[]; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:29:21 | 29 | --square-block2:[]; @@ -1151,7 +1283,7 @@ error: LBracket 29 | --square-block2:[]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:29:22 | 29 | --square-block2:[]; @@ -1163,6 +1295,12 @@ error: RBracket 29 | --square-block2:[]; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:30:5 + | +30 | --round-block: (1, 2, 3); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:30:5 | @@ -1187,7 +1325,7 @@ error: DashedIdent 30 | --round-block: (1, 2, 3); | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:20 | 30 | --round-block: (1, 2, 3); @@ -1199,7 +1337,7 @@ error: LParen 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:21 | 30 | --round-block: (1, 2, 3); @@ -1211,7 +1349,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:22 | 30 | --round-block: (1, 2, 3); @@ -1223,7 +1361,7 @@ error: Comma 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:23 | 30 | --round-block: (1, 2, 3); @@ -1235,7 +1373,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:24 | 30 | --round-block: (1, 2, 3); @@ -1247,7 +1385,7 @@ error: Number { value: 2.0, raw: Atom('2' type=inline), type_flag: Integer } 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:25 | 30 | --round-block: (1, 2, 3); @@ -1259,7 +1397,7 @@ error: Comma 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:26 | 30 | --round-block: (1, 2, 3); @@ -1271,7 +1409,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:27 | 30 | --round-block: (1, 2, 3); @@ -1283,7 +1421,7 @@ error: Number { value: 3.0, raw: Atom('3' type=inline), type_flag: Integer } 30 | --round-block: (1, 2, 3); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:30:28 | 30 | --round-block: (1, 2, 3); @@ -1295,6 +1433,12 @@ error: RParen 30 | --round-block: (1, 2, 3); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:31:5 + | +31 | --round-block1: (); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:31:5 | @@ -1319,7 +1463,7 @@ error: DashedIdent 31 | --round-block1: (); | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:31:21 | 31 | --round-block1: (); @@ -1331,7 +1475,7 @@ error: LParen 31 | --round-block1: (); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:31:22 | 31 | --round-block1: (); @@ -1343,6 +1487,12 @@ error: RParen 31 | --round-block1: (); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:32:5 + | +32 | --round-block2:(); + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:32:5 | @@ -1367,7 +1517,7 @@ error: DashedIdent 32 | --round-block2:(); | ^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:32:20 | 32 | --round-block2:(); @@ -1379,7 +1529,7 @@ error: LParen 32 | --round-block2:(); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:32:21 | 32 | --round-block2:(); @@ -1391,6 +1541,12 @@ error: RParen 32 | --round-block2:(); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:33:5 + | +33 | --bracket-block: {1, 2, 3}; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:33:5 | @@ -1415,7 +1571,7 @@ error: DashedIdent 33 | --bracket-block: {1, 2, 3}; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:22 | 33 | --bracket-block: {1, 2, 3}; @@ -1427,7 +1583,7 @@ error: LBrace 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:23 | 33 | --bracket-block: {1, 2, 3}; @@ -1439,7 +1595,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:24 | 33 | --bracket-block: {1, 2, 3}; @@ -1451,7 +1607,7 @@ error: Comma 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:25 | 33 | --bracket-block: {1, 2, 3}; @@ -1463,7 +1619,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:26 | 33 | --bracket-block: {1, 2, 3}; @@ -1475,7 +1631,7 @@ error: Number { value: 2.0, raw: Atom('2' type=inline), type_flag: Integer } 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:27 | 33 | --bracket-block: {1, 2, 3}; @@ -1487,7 +1643,7 @@ error: Comma 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:28 | 33 | --bracket-block: {1, 2, 3}; @@ -1499,7 +1655,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:29 | 33 | --bracket-block: {1, 2, 3}; @@ -1511,7 +1667,7 @@ error: Number { value: 3.0, raw: Atom('3' type=inline), type_flag: Integer } 33 | --bracket-block: {1, 2, 3}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:33:30 | 33 | --bracket-block: {1, 2, 3}; @@ -1523,6 +1679,12 @@ error: RBrace 33 | --bracket-block: {1, 2, 3}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:34:5 + | +34 | --bracket-block1: {}; + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:34:5 | @@ -1547,7 +1709,7 @@ error: DashedIdent 34 | --bracket-block1: {}; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:34:23 | 34 | --bracket-block1: {}; @@ -1559,7 +1721,7 @@ error: LBrace 34 | --bracket-block1: {}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:34:24 | 34 | --bracket-block1: {}; @@ -1571,6 +1733,12 @@ error: RBrace 34 | --bracket-block1: {}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:35:5 + | +35 | --bracket-block2:{}; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:35:5 | @@ -1595,7 +1763,7 @@ error: DashedIdent 35 | --bracket-block2:{}; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:35:22 | 35 | --bracket-block2:{}; @@ -1607,7 +1775,7 @@ error: LBrace 35 | --bracket-block2:{}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:35:23 | 35 | --bracket-block2:{}; @@ -1619,6 +1787,12 @@ error: RBrace 35 | --bracket-block2:{}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:38:5 + | +38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:38:5 | @@ -1643,7 +1817,7 @@ error: DashedIdent 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:13 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1655,7 +1829,7 @@ error: LBracket 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:14 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1667,7 +1841,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:15 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1679,7 +1853,7 @@ error: Comma 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:16 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1691,7 +1865,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:17 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1703,7 +1877,7 @@ error: String { value: Atom('2' type=inline), raw: Atom('"2"' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:20 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1715,7 +1889,7 @@ error: Comma 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:21 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1727,7 +1901,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:22 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1739,7 +1913,7 @@ error: LBrace 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:23 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1751,7 +1925,7 @@ error: String { value: Atom('three' type=inline), raw: Atom('"three"' type=inlin 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:30 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1763,7 +1937,7 @@ error: Colon 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:31 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1775,7 +1949,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:32 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1787,7 +1961,7 @@ error: LBrace 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:33 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1799,7 +1973,7 @@ error: String { value: Atom('a' type=inline), raw: Atom('"a"' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:36 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1811,7 +1985,7 @@ error: Colon 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:37 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1823,7 +1997,7 @@ error: Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:38 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1835,7 +2009,7 @@ error: RBrace 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:39 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1847,7 +2021,7 @@ error: RBrace 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:40 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1859,7 +2033,7 @@ error: Comma 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:41 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1871,7 +2045,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:42 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1883,7 +2057,7 @@ error: LBracket 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:43 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1895,7 +2069,7 @@ error: Number { value: 4.0, raw: Atom('4' type=inline), type_flag: Integer } 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:44 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1907,7 +2081,7 @@ error: RBracket 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:38:45 | 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; @@ -1919,6 +2093,12 @@ error: RBracket 38 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:39:5 + | +39 | --javascript: function(rule) { console.log(rule) }; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:39:5 | @@ -1943,7 +2123,7 @@ error: DashedIdent 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:19 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -1955,7 +2135,7 @@ error: Function { value: Atom('function' type=static), raw: Atom('function' type 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:28 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -1967,7 +2147,7 @@ error: Ident { value: Atom('rule' type=inline), raw: Atom('rule' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:32 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -1979,7 +2159,7 @@ error: RParen 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:33 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -1991,7 +2171,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:34 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2003,7 +2183,7 @@ error: LBrace 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:35 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2015,7 +2195,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:36 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2027,7 +2207,7 @@ error: Ident { value: Atom('console' type=inline), raw: Atom('console' type=inli 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:43 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2039,7 +2219,7 @@ error: Delim { value: '.' } 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:44 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2051,7 +2231,7 @@ error: Function { value: Atom('log' type=inline), raw: Atom('log' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:48 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2063,7 +2243,7 @@ error: Ident { value: Atom('rule' type=inline), raw: Atom('rule' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:52 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2075,7 +2255,7 @@ error: RParen 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:53 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2087,7 +2267,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 39 | --javascript: function(rule) { console.log(rule) }; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:39:54 | 39 | --javascript: function(rule) { console.log(rule) }; @@ -2099,6 +2279,12 @@ error: RBrace 39 | --javascript: function(rule) { console.log(rule) }; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:41:5 + | +41 | --CDO: $DIR/tests/fixture/value/custom-property/input.css:41:5 | @@ -2123,7 +2309,7 @@ error: DashedIdent 41 | --CDO: $DIR/tests/fixture/value/custom-property/input.css:41:12 | 41 | --CDO: $DIR/tests/fixture/value/custom-property/input.css:42:5 + | +42 | --CDC: -->; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:42:5 | @@ -2159,7 +2351,7 @@ error: DashedIdent 42 | --CDC: -->; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:42:12 | 42 | --CDC: -->; @@ -2171,6 +2363,12 @@ error: CDC 42 | --CDC: -->; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:44:5 + | +44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:44:5 | @@ -2195,7 +2393,7 @@ error: DashedIdent 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:24 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2207,7 +2405,7 @@ error: LBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:25 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2219,7 +2417,7 @@ error: LBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:26 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2231,7 +2429,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:27 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2243,7 +2441,7 @@ error: LBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:28 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2255,7 +2453,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:29 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2267,7 +2465,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:30 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2279,7 +2477,7 @@ error: RBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:31 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2291,7 +2489,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:32 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2303,7 +2501,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:33 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2315,7 +2513,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:34 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2327,7 +2525,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:35 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2339,7 +2537,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:36 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2351,7 +2549,7 @@ error: LBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:37 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2363,7 +2561,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:38 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2375,7 +2573,7 @@ error: LBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:39 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2387,7 +2585,7 @@ error: RBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:40 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2399,7 +2597,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:41 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2411,7 +2609,7 @@ error: RBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:42 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2423,7 +2621,7 @@ error: RBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:43 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2435,7 +2633,7 @@ error: RBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:44 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2447,7 +2645,7 @@ error: LBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:45 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2459,7 +2657,7 @@ error: LBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:46 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2471,7 +2669,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:47 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2483,7 +2681,7 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:48 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2495,7 +2693,7 @@ error: RBrace 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:49 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2507,7 +2705,7 @@ error: RBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:50 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2519,7 +2717,7 @@ error: LParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:51 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2531,7 +2729,7 @@ error: LBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:52 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2543,7 +2741,7 @@ error: RBracket 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:44:53 | 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); @@ -2555,6 +2753,12 @@ error: RParen 44 | --complex-balanced:{[({()})()()[({})]]}[{()}]([]); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:45:5 + | +45 | --fake-important:{!important}; + | ^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:45:5 | @@ -2579,7 +2783,7 @@ error: DashedIdent 45 | --fake-important:{!important}; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:45:22 | 45 | --fake-important:{!important}; @@ -2591,7 +2795,7 @@ error: LBrace 45 | --fake-important:{!important}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:45:23 | 45 | --fake-important:{!important}; @@ -2603,7 +2807,7 @@ error: Delim { value: '!' } 45 | --fake-important:{!important}; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:45:24 | 45 | --fake-important:{!important}; @@ -2615,7 +2819,7 @@ error: Ident { value: Atom('important' type=static), raw: Atom('important' type= 45 | --fake-important:{!important}; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:45:33 | 45 | --fake-important:{!important}; @@ -2627,6 +2831,12 @@ error: RBrace 45 | --fake-important:{!important}; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:46:5 + | +46 | --semicolon-not-top-level: (;); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:46:5 | @@ -2651,7 +2861,7 @@ error: DashedIdent 46 | --semicolon-not-top-level: (;); | ^^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:46:32 | 46 | --semicolon-not-top-level: (;); @@ -2663,7 +2873,7 @@ error: LParen 46 | --semicolon-not-top-level: (;); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:46:33 | 46 | --semicolon-not-top-level: (;); @@ -2675,7 +2885,7 @@ error: Semi 46 | --semicolon-not-top-level: (;); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:46:34 | 46 | --semicolon-not-top-level: (;); @@ -2687,6 +2897,12 @@ error: RParen 46 | --semicolon-not-top-level: (;); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:47:5 + | +47 | --delim-not-top-level: (!); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:47:5 | @@ -2711,7 +2927,7 @@ error: DashedIdent 47 | --delim-not-top-level: (!); | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:47:28 | 47 | --delim-not-top-level: (!); @@ -2723,7 +2939,7 @@ error: LParen 47 | --delim-not-top-level: (!); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:47:29 | 47 | --delim-not-top-level: (!); @@ -2735,7 +2951,7 @@ error: Delim { value: '!' } 47 | --delim-not-top-level: (!); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:47:30 | 47 | --delim-not-top-level: (!); @@ -2747,6 +2963,12 @@ error: RParen 47 | --delim-not-top-level: (!); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:48:5 + | +48 | --zero-size: { + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:48:5 | @@ -2771,7 +2993,7 @@ error: DashedIdent 48 | --zero-size: { | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:48:18 | 48 | --zero-size: { @@ -2783,7 +3005,7 @@ error: LBrace 48 | --zero-size: { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:48:19 | 48 | --zero-size: { @@ -2800,7 +3022,7 @@ error: WhiteSpace { value: Atom(' 49 | | width: 0; | |________^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:9 | 49 | width: 0; @@ -2812,7 +3034,7 @@ error: Ident { value: Atom('width' type=inline), raw: Atom('width' type=inline) 49 | width: 0; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:14 | 49 | width: 0; @@ -2824,7 +3046,7 @@ error: Colon 49 | width: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:15 | 49 | width: 0; @@ -2836,7 +3058,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 49 | width: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:16 | 49 | width: 0; @@ -2848,7 +3070,7 @@ error: Number { value: 0.0, raw: Atom('0' type=inline), type_flag: Integer } 49 | width: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:17 | 49 | width: 0; @@ -2860,7 +3082,7 @@ error: Semi 49 | width: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:49:18 | 49 | width: 0; @@ -2877,7 +3099,7 @@ error: WhiteSpace { value: Atom(' 50 | | height: 0; | |________^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:9 | 50 | height: 0; @@ -2889,7 +3111,7 @@ error: Ident { value: Atom('height' type=inline), raw: Atom('height' type=inline 50 | height: 0; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:15 | 50 | height: 0; @@ -2901,7 +3123,7 @@ error: Colon 50 | height: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:16 | 50 | height: 0; @@ -2913,7 +3135,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 50 | height: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:17 | 50 | height: 0; @@ -2925,7 +3147,7 @@ error: Number { value: 0.0, raw: Atom('0' type=inline), type_flag: Integer } 50 | height: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:18 | 50 | height: 0; @@ -2937,7 +3159,7 @@ error: Semi 50 | height: 0; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:50:19 | 50 | height: 0; @@ -2954,7 +3176,7 @@ error: WhiteSpace { value: Atom(' 51 | | }; | |____^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:51:5 | 51 | }; @@ -2966,6 +3188,12 @@ error: RBrace 51 | }; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:52:5 + | +52 | --small-icon: { + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:52:5 | @@ -2990,7 +3218,7 @@ error: DashedIdent 52 | --small-icon: { | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:52:19 | 52 | --small-icon: { @@ -3002,7 +3230,7 @@ error: LBrace 52 | --small-icon: { | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:52:20 | 52 | --small-icon: { @@ -3019,7 +3247,7 @@ error: WhiteSpace { value: Atom(' 53 | | width: 16px; | |________^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:9 | 53 | width: 16px; @@ -3031,7 +3259,7 @@ error: Ident { value: Atom('width' type=inline), raw: Atom('width' type=inline) 53 | width: 16px; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:14 | 53 | width: 16px; @@ -3043,7 +3271,7 @@ error: Colon 53 | width: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:15 | 53 | width: 16px; @@ -3055,7 +3283,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 53 | width: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:16 | 53 | width: 16px; @@ -3067,7 +3295,7 @@ error: Dimension { value: 16.0, raw_value: Atom('16' type=inline), unit: Atom('p 53 | width: 16px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:20 | 53 | width: 16px; @@ -3079,7 +3307,7 @@ error: Semi 53 | width: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:53:21 | 53 | width: 16px; @@ -3096,7 +3324,7 @@ error: WhiteSpace { value: Atom(' 54 | | height: 16px; | |________^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:9 | 54 | height: 16px; @@ -3108,7 +3336,7 @@ error: Ident { value: Atom('height' type=inline), raw: Atom('height' type=inline 54 | height: 16px; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:15 | 54 | height: 16px; @@ -3120,7 +3348,7 @@ error: Colon 54 | height: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:16 | 54 | height: 16px; @@ -3132,7 +3360,7 @@ error: WhiteSpace { value: Atom(' ' type=inline) } 54 | height: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:17 | 54 | height: 16px; @@ -3144,7 +3372,7 @@ error: Dimension { value: 16.0, raw_value: Atom('16' type=inline), unit: Atom('p 54 | height: 16px; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:21 | 54 | height: 16px; @@ -3156,7 +3384,7 @@ error: Semi 54 | height: 16px; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:54:22 | 54 | height: 16px; @@ -3173,7 +3401,7 @@ error: WhiteSpace { value: Atom(' 55 | | } | |____^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:55:5 | 55 | } @@ -3185,7 +3413,7 @@ error: RBrace 55 | } | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:55:6 | 55 | } @@ -3256,6 +3484,12 @@ error: SimpleBlock 59 | :root{--a:1} | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:59:7 + | +59 | :root{--a:1} + | ^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:59:7 | @@ -3280,7 +3514,7 @@ error: DashedIdent 59 | :root{--a:1} | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:59:11 | 59 | :root{--a:1} @@ -3346,6 +3580,12 @@ error: SimpleBlock 60 | :root {--foo: } | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:60:8 + | +60 | :root {--foo: } + | ^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:60:8 | @@ -3431,6 +3671,13 @@ error: SimpleBlock 63 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:62:5 + | +62 | / --foo: +63 | | } + | |_^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:62:5 | @@ -3518,6 +3765,12 @@ error: SimpleBlock 67 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/custom-property/input.css:66:5 + | +66 | --var: value; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/custom-property/input.css:66:5 | @@ -3542,7 +3795,7 @@ error: DashedIdent 66 | --var: value; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/custom-property/input.css:66:13 | 66 | --var: value; diff --git a/crates/swc_css_parser/tests/fixture/value/dimension/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/dimension/span.rust-debug index f0c61578899..6dd1b6b68ff 100644 --- a/crates/swc_css_parser/tests/fixture/value/dimension/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/dimension/span.rust-debug @@ -77,6 +77,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/dimension/input.css:2:5 + | +2 | width: 100\%; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/dimension/input.css:2:5 | @@ -101,7 +107,7 @@ error: Ident 2 | width: 100\%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/dimension/input.css:2:12 | 2 | width: 100\%; @@ -131,6 +137,12 @@ error: Ident 2 | width: 100\%; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/dimension/input.css:3:5 + | +3 | width: 100px2p; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/dimension/input.css:3:5 | @@ -155,7 +167,7 @@ error: Ident 3 | width: 100px2p; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/dimension/input.css:3:12 | 3 | width: 100px2p; diff --git a/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug index ac1c4e893b5..90a38637ff8 100644 --- a/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug @@ -73,6 +73,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/escaped/input.css:2:5 + | +2 | color: \red; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/escaped/input.css:2:5 | @@ -97,7 +103,7 @@ error: Ident 2 | color: \red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/escaped/input.css:2:12 | 2 | color: \red; diff --git a/crates/swc_css_parser/tests/fixture/value/frequency/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/frequency/span.rust-debug index 5cd5bb5d5cd..d9a7d34456d 100644 --- a/crates/swc_css_parser/tests/fixture/value/frequency/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/frequency/span.rust-debug @@ -77,6 +77,12 @@ error: SimpleBlock 4 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/frequency/input.css:2:5 + | +2 | prop: 1Hz; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/frequency/input.css:2:5 | @@ -101,7 +107,7 @@ error: Ident 2 | prop: 1Hz; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/frequency/input.css:2:11 | 2 | prop: 1Hz; @@ -131,6 +137,12 @@ error: Ident 2 | prop: 1Hz; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/frequency/input.css:3:5 + | +3 | prop: 1kHz; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/frequency/input.css:3:5 | @@ -155,7 +167,7 @@ error: Ident 3 | prop: 1kHz; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/frequency/input.css:3:11 | 3 | prop: 1kHz; diff --git a/crates/swc_css_parser/tests/fixture/value/integer/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/integer/span.rust-debug index f5492b6a907..e70250cf74f 100644 --- a/crates/swc_css_parser/tests/fixture/value/integer/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/integer/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:2:5 + | +2 | z-index: 12; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | z-index: 12; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:2:14 | 2 | z-index: 12; @@ -125,6 +131,12 @@ error: Integer 2 | z-index: 12; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:3:5 + | +3 | z-index: +123; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:3:5 | @@ -149,7 +161,7 @@ error: Ident 3 | z-index: +123; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:3:14 | 3 | z-index: +123; @@ -161,6 +173,12 @@ error: Integer 3 | z-index: +123; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:4:5 + | +4 | z-index: -456; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:4:5 | @@ -185,7 +203,7 @@ error: Ident 4 | z-index: -456; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:4:14 | 4 | z-index: -456; @@ -197,6 +215,12 @@ error: Integer 4 | z-index: -456; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:5:5 + | +5 | z-index: 0; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:5:5 | @@ -221,7 +245,7 @@ error: Ident 5 | z-index: 0; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:5:14 | 5 | z-index: 0; @@ -233,6 +257,12 @@ error: Integer 5 | z-index: 0; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:6:5 + | +6 | z-index: +0; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:6:5 | @@ -257,7 +287,7 @@ error: Ident 6 | z-index: +0; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:6:14 | 6 | z-index: +0; @@ -269,6 +299,12 @@ error: Integer 6 | z-index: +0; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/integer/input.css:7:5 + | +7 | z-index: -0; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/integer/input.css:7:5 | @@ -293,7 +329,7 @@ error: Ident 7 | z-index: -0; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/integer/input.css:7:14 | 7 | z-index: -0; diff --git a/crates/swc_css_parser/tests/fixture/value/length/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/length/span.rust-debug index 1af76912589..10d5c34fe16 100644 --- a/crates/swc_css_parser/tests/fixture/value/length/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/length/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 7 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/length/input.css:2:5 + | +2 | width: 100e\x; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/length/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | width: 100e\x; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/length/input.css:2:12 | 2 | width: 100e\x; @@ -143,6 +149,12 @@ error: Ident 2 | width: 100e\x; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/length/input.css:3:5 + | +3 | width: 100ex; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/length/input.css:3:5 | @@ -167,7 +179,7 @@ error: Ident 3 | width: 100ex; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/length/input.css:3:12 | 3 | width: 100ex; @@ -197,6 +209,12 @@ error: Ident 3 | width: 100ex; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/length/input.css:4:5 + | +4 | width: 100px; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/length/input.css:4:5 | @@ -221,7 +239,7 @@ error: Ident 4 | width: 100px; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/length/input.css:4:12 | 4 | width: 100px; @@ -251,6 +269,12 @@ error: Ident 4 | width: 100px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/length/input.css:5:5 + | +5 | width: 100PX; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/length/input.css:5:5 | @@ -275,7 +299,7 @@ error: Ident 5 | width: 100PX; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/length/input.css:5:12 | 5 | width: 100PX; @@ -305,6 +329,12 @@ error: Ident 5 | width: 100PX; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/length/input.css:6:5 + | +6 | width: 100pX; + | ^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/length/input.css:6:5 | @@ -329,7 +359,7 @@ error: Ident 6 | width: 100pX; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/length/input.css:6:12 | 6 | width: 100pX; diff --git a/crates/swc_css_parser/tests/fixture/value/percentage/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/percentage/span.rust-debug index d4a7690fb0a..3258b9c43b9 100644 --- a/crates/swc_css_parser/tests/fixture/value/percentage/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/percentage/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 13 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:2:5 + | +2 | width: 0%; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | width: 0%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:2:12 | 2 | width: 0%; @@ -131,6 +137,12 @@ error: Number 2 | width: 0%; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:3:5 + | +3 | width: 0.1%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:3:5 | @@ -155,7 +167,7 @@ error: Ident 3 | width: 0.1%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:3:12 | 3 | width: 0.1%; @@ -173,6 +185,12 @@ error: Number 3 | width: 0.1%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:4:5 + | +4 | width: 100%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:4:5 | @@ -197,7 +215,7 @@ error: Ident 4 | width: 100%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:4:12 | 4 | width: 100%; @@ -215,6 +233,12 @@ error: Number 4 | width: 100%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:5:5 + | +5 | width: 100.5%; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:5:5 | @@ -239,7 +263,7 @@ error: Ident 5 | width: 100.5%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:5:12 | 5 | width: 100.5%; @@ -257,6 +281,12 @@ error: Number 5 | width: 100.5%; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:6:5 + | +6 | width: 100.1000%; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:6:5 | @@ -281,7 +311,7 @@ error: Ident 6 | width: 100.1000%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:6:12 | 6 | width: 100.1000%; @@ -299,6 +329,12 @@ error: Number 6 | width: 100.1000%; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:7:5 + | +7 | width: 1e0%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:7:5 | @@ -323,7 +359,7 @@ error: Ident 7 | width: 1e0%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:7:12 | 7 | width: 1e0%; @@ -341,6 +377,12 @@ error: Number 7 | width: 1e0%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:8:5 + | +8 | width: 1e1%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:8:5 | @@ -365,7 +407,7 @@ error: Ident 8 | width: 1e1%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:8:12 | 8 | width: 1e1%; @@ -383,6 +425,12 @@ error: Number 8 | width: 1e1%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:9:5 + | +9 | width: 1e2%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:9:5 | @@ -407,7 +455,7 @@ error: Ident 9 | width: 1e2%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:9:12 | 9 | width: 1e2%; @@ -425,6 +473,12 @@ error: Number 9 | width: 1e2%; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:10:5 + | +10 | width: 10e-1%; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:10:5 | @@ -449,7 +503,7 @@ error: Ident 10 | width: 10e-1%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:10:12 | 10 | width: 10e-1%; @@ -467,6 +521,12 @@ error: Number 10 | width: 10e-1%; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:11:5 + | +11 | width: 10e-5%; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:11:5 | @@ -491,7 +551,7 @@ error: Ident 11 | width: 10e-5%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:11:12 | 11 | width: 10e-5%; @@ -509,6 +569,12 @@ error: Number 11 | width: 10e-5%; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:12:5 + | +12 | width: 10e+2%; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:12:5 | @@ -533,7 +599,7 @@ error: Ident 12 | width: 10e+2%; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:12:12 | 12 | width: 10e+2%; @@ -621,6 +687,12 @@ error: SimpleBlock 18 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:16:5 + | +16 | margin: -5%; + | ^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:16:5 | @@ -645,7 +717,7 @@ error: Ident 16 | margin: -5%; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:16:13 | 16 | margin: -5%; @@ -663,6 +735,12 @@ error: Number 16 | margin: -5%; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/percentage/input.css:17:5 + | +17 | margin: -5.5%; + | ^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/percentage/input.css:17:5 | @@ -687,7 +765,7 @@ error: Ident 17 | margin: -5.5%; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/percentage/input.css:17:13 | 17 | margin: -5.5%; diff --git a/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug index 80f6180dfb8..97e5e1e9273 100644 --- a/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug @@ -107,6 +107,12 @@ error: SimpleBlock 29 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:2:5 + | +2 | content: "This string is demarcated by double quotes."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:2:5 | @@ -131,7 +137,7 @@ error: Ident 2 | content: "This string is demarcated by double quotes."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:2:14 | 2 | content: "This string is demarcated by double quotes."; @@ -143,6 +149,12 @@ error: Str 2 | content: "This string is demarcated by double quotes."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:3:5 + | +3 | content: 'This string is demarcated by single quotes.'; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:3:5 | @@ -167,7 +179,7 @@ error: Ident 3 | content: 'This string is demarcated by single quotes.'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:3:14 | 3 | content: 'This string is demarcated by single quotes.'; @@ -179,6 +191,12 @@ error: Str 3 | content: 'This string is demarcated by single quotes.'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:4:5 + | +4 | content: "This is a string with \" an escaped double quote."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:4:5 | @@ -203,7 +221,7 @@ error: Ident 4 | content: "This is a string with \" an escaped double quote."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:4:14 | 4 | content: "This is a string with \" an escaped double quote."; @@ -215,6 +233,12 @@ error: Str 4 | content: "This is a string with \" an escaped double quote."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:5:5 + | +5 | content: "This string also has \22 an escaped double quote."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:5:5 | @@ -239,7 +263,7 @@ error: Ident 5 | content: "This string also has \22 an escaped double quote."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:5:14 | 5 | content: "This string also has \22 an escaped double quote."; @@ -251,6 +275,12 @@ error: Str 5 | content: "This string also has \22 an escaped double quote."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:6:5 + | +6 | content: 'This is a string with \' an escaped single quote.'; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:6:5 | @@ -275,7 +305,7 @@ error: Ident 6 | content: 'This is a string with \' an escaped single quote.'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:6:14 | 6 | content: 'This is a string with \' an escaped single quote.'; @@ -287,6 +317,12 @@ error: Str 6 | content: 'This is a string with \' an escaped single quote.'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:7:5 + | +7 | content: 'This string also has \27 an escaped single quote.'; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:7:5 | @@ -311,7 +347,7 @@ error: Ident 7 | content: 'This string also has \27 an escaped single quote.'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:7:14 | 7 | content: 'This string also has \27 an escaped single quote.'; @@ -323,6 +359,12 @@ error: Str 7 | content: 'This string also has \27 an escaped single quote.'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:8:5 + | +8 | content: "This is a string with \\ an escaped backslash."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:8:5 | @@ -347,7 +389,7 @@ error: Ident 8 | content: "This is a string with \\ an escaped backslash."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:8:14 | 8 | content: "This is a string with \\ an escaped backslash."; @@ -359,6 +401,12 @@ error: Str 8 | content: "This is a string with \\ an escaped backslash."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:9:5 + | +9 | content: "This string also has \22an escaped double quote."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:9:5 | @@ -383,7 +431,7 @@ error: Ident 9 | content: "This string also has \22an escaped double quote."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:9:14 | 9 | content: "This string also has \22an escaped double quote."; @@ -395,6 +443,12 @@ error: Str 9 | content: "This string also has \22an escaped double quote."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:10:5 + | +10 | content: "This string also has \22 an escaped double quote."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:10:5 | @@ -419,7 +473,7 @@ error: Ident 10 | content: "This string also has \22 an escaped double quote."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:10:14 | 10 | content: "This string also has \22 an escaped double quote."; @@ -431,6 +485,12 @@ error: Str 10 | content: "This string also has \22 an escaped double quote."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:11:5 + | +11 | content: "This string has a \Aline break in it."; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:11:5 | @@ -455,7 +515,7 @@ error: Ident 11 | content: "This string has a \Aline break in it."; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:11:14 | 11 | content: "This string has a \Aline break in it."; @@ -467,6 +527,13 @@ error: Str 11 | content: "This string has a \Aline break in it."; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:12:5 + | +12 | / content: "A really long \ +13 | | awesome string"; + | |_______________^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:12:5 | @@ -493,7 +560,7 @@ error: Ident 12 | content: "A really long \ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:12:14 | 12 | content: "A really long \ @@ -509,6 +576,12 @@ error: Str 13 | | awesome string"; | |_______________^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:14:5 + | +14 | content: ";'@ /**/\""; + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:14:5 | @@ -533,7 +606,7 @@ error: Ident 14 | content: ";'@ /**/\""; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:14:14 | 14 | content: ";'@ /**/\""; @@ -545,6 +618,12 @@ error: Str 14 | content: ";'@ /**/\""; | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:15:5 + | +15 | content: '\'"\\'; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:15:5 | @@ -569,7 +648,7 @@ error: Ident 15 | content: '\'"\\'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:15:14 | 15 | content: '\'"\\'; @@ -581,6 +660,13 @@ error: Str 15 | content: '\'"\\'; | ^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:16:5 + | +16 | / content: "a\ +17 | | b"; + | |__^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:16:5 | @@ -607,7 +693,7 @@ error: Ident 16 | content: "a\ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:16:14 | 16 | content: "a\ @@ -623,6 +709,13 @@ error: Str 17 | | b"; | |__^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:18:5 + | +18 | / content: "a\ +19 | | b"; + | |__^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:18:5 | @@ -649,7 +742,7 @@ error: Ident 18 | content: "a\ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:18:14 | 18 | content: "a\ @@ -665,6 +758,13 @@ error: Str 19 | | b"; | |__^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:20:5 + | +20 | / content: "a\ +21 | | b"; + | |__^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:20:5 | @@ -691,7 +791,7 @@ error: Ident 20 | content: "a\ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:20:14 | 20 | content: "a\ @@ -707,6 +807,12 @@ error: Str 21 | | b"; | |__^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:22:5 + | +22 | content: "a\ b"; + | ^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:22:5 | @@ -731,7 +837,7 @@ error: Ident 22 | content: "a\ b"; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:22:14 | 22 | content: "a\ b"; @@ -743,6 +849,16 @@ error: Str 22 | content: "a\ b"; | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:23:5 + | +23 | / content: "a\ +24 | | \ +25 | | \ +26 | | \ \ +27 | | b"; + | |__^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:23:5 | @@ -775,7 +891,7 @@ error: Ident 23 | content: "a\ | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:23:14 | 23 | content: "a\ @@ -797,6 +913,12 @@ error: Str 27 | | b"; | |__^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:28:5 + | +28 | content: 'a\62 c'; + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:28:5 | @@ -821,7 +943,7 @@ error: Ident 28 | content: 'a\62 c'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:28:14 | 28 | content: 'a\62 c'; @@ -955,6 +1077,12 @@ error: SimpleBlock 34 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:33:5 + | +33 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:33:5 | @@ -979,7 +1107,7 @@ error: Ident 33 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:33:12 | 33 | color: red; @@ -1100,6 +1228,12 @@ error: SimpleBlock 37 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:36:5 + | +36 | color: red; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:36:5 | @@ -1124,7 +1258,7 @@ error: Ident 36 | color: red; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:36:12 | 36 | color: red; @@ -1203,6 +1337,12 @@ error: SimpleBlock 41 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:40:5 + | +40 | family-name: "A;' /**/"; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:40:5 | @@ -1227,7 +1367,7 @@ error: Ident 40 | family-name: "A;' /**/"; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:40:18 | 40 | family-name: "A;' /**/"; @@ -1303,6 +1443,12 @@ error: SimpleBlock 47 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:45:5 + | +45 | content: ";'@ /**/\""; + | ^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:45:5 | @@ -1327,7 +1473,7 @@ error: Ident 45 | content: ";'@ /**/\""; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:45:14 | 45 | content: ";'@ /**/\""; @@ -1339,6 +1485,12 @@ error: Str 45 | content: ";'@ /**/\""; | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/quotes/input.css:46:5 + | +46 | content: '\'"\\'; + | ^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/quotes/input.css:46:5 | @@ -1363,7 +1515,7 @@ error: Ident 46 | content: '\'"\\'; | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/quotes/input.css:46:14 | 46 | content: '\'"\\'; diff --git a/crates/swc_css_parser/tests/fixture/value/resolution/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/resolution/span.rust-debug index 87ae745ac90..0e2b47b954d 100644 --- a/crates/swc_css_parser/tests/fixture/value/resolution/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/resolution/span.rust-debug @@ -539,6 +539,14 @@ error: SimpleBlock 13 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/resolution/input.css:7:5 + | +7 | / background-image: -webkit-image-set( +8 | | url("small-balloons.jpg") 1x, +9 | | url("large-balloons.jpg") 2x); + | |_________________________________________^ + error: StyleBlock --> $DIR/tests/fixture/value/resolution/input.css:7:5 | @@ -567,7 +575,7 @@ error: Ident 7 | background-image: -webkit-image-set( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:7:23 | 7 | background-image: -webkit-image-set( @@ -591,7 +599,7 @@ error: Ident 7 | background-image: -webkit-image-set( | ^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:8:13 | 8 | url("small-balloons.jpg") 1x, @@ -621,7 +629,7 @@ error: Str 8 | url("small-balloons.jpg") 1x, | ^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:8:39 | 8 | url("small-balloons.jpg") 1x, @@ -651,7 +659,7 @@ error: Ident 8 | url("small-balloons.jpg") 1x, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:8:41 | 8 | url("small-balloons.jpg") 1x, @@ -663,7 +671,7 @@ error: Delimiter 8 | url("small-balloons.jpg") 1x, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:9:13 | 9 | url("large-balloons.jpg") 2x); @@ -693,7 +701,7 @@ error: Str 9 | url("large-balloons.jpg") 2x); | ^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:9:39 | 9 | url("large-balloons.jpg") 2x); @@ -723,6 +731,14 @@ error: Ident 9 | url("large-balloons.jpg") 2x); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/resolution/input.css:10:5 + | +10 | / background-image: image-set( +11 | | url("small-balloons.jpg") 1x, +12 | | url("large-balloons.jpg") 2x); + | |_________________________________________^ + error: StyleBlock --> $DIR/tests/fixture/value/resolution/input.css:10:5 | @@ -751,7 +767,7 @@ error: Ident 10 | background-image: image-set( | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:10:23 | 10 | background-image: image-set( @@ -775,7 +791,7 @@ error: Ident 10 | background-image: image-set( | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:11:13 | 11 | url("small-balloons.jpg") 1x, @@ -805,7 +821,7 @@ error: Str 11 | url("small-balloons.jpg") 1x, | ^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:11:39 | 11 | url("small-balloons.jpg") 1x, @@ -835,7 +851,7 @@ error: Ident 11 | url("small-balloons.jpg") 1x, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:11:41 | 11 | url("small-balloons.jpg") 1x, @@ -847,7 +863,7 @@ error: Delimiter 11 | url("small-balloons.jpg") 1x, | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:12:13 | 12 | url("large-balloons.jpg") 2x); @@ -877,7 +893,7 @@ error: Str 12 | url("large-balloons.jpg") 2x); | ^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/resolution/input.css:12:39 | 12 | url("large-balloons.jpg") 2x); diff --git a/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug index aa1d1e1534d..d03e6cf1aa1 100644 --- a/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 8 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:2:5 + | +2 | prop: []; + | ^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | prop: []; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:2:12 | 2 | prop: []; @@ -125,6 +131,12 @@ error: SimpleBlock 2 | prop: []; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:3:5 + | +3 | prop: [ ]; + | ^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:3:5 | @@ -149,7 +161,7 @@ error: Ident 3 | prop: [ ]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:3:12 | 3 | prop: [ ]; @@ -161,6 +173,12 @@ error: SimpleBlock 3 | prop: [ ]; | ^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:4:5 + | +4 | prop: [row1-start]; + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:4:5 | @@ -185,7 +203,7 @@ error: Ident 4 | prop: [row1-start]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:4:12 | 4 | prop: [row1-start]; @@ -197,7 +215,7 @@ error: SimpleBlock 4 | prop: [row1-start]; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:4:13 | 4 | prop: [row1-start]; @@ -209,6 +227,12 @@ error: Ident 4 | prop: [row1-start]; | ^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:5:5 + | +5 | prop: [ row1-start-with-spaces-around ]; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:5:5 | @@ -233,7 +257,7 @@ error: Ident 5 | prop: [ row1-start-with-spaces-around ]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:5:12 | 5 | prop: [ row1-start-with-spaces-around ]; @@ -245,7 +269,7 @@ error: SimpleBlock 5 | prop: [ row1-start-with-spaces-around ]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:5:16 | 5 | prop: [ row1-start-with-spaces-around ]; @@ -257,6 +281,12 @@ error: Ident 5 | prop: [ row1-start-with-spaces-around ]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:6:5 + | +6 | prop: [red #fff 12px]; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:6:5 | @@ -281,7 +311,7 @@ error: Ident 6 | prop: [red #fff 12px]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:6:12 | 6 | prop: [red #fff 12px]; @@ -293,7 +323,7 @@ error: SimpleBlock 6 | prop: [red #fff 12px]; | ^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:6:13 | 6 | prop: [red #fff 12px]; @@ -305,7 +335,7 @@ error: Ident 6 | prop: [red #fff 12px]; | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:6:17 | 6 | prop: [red #fff 12px]; @@ -323,7 +353,7 @@ error: HexColor 6 | prop: [red #fff 12px]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:6:22 | 6 | prop: [red #fff 12px]; @@ -353,6 +383,12 @@ error: Ident 6 | prop: [red #fff 12px]; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/square-brackets/input.css:7:5 + | +7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/square-brackets/input.css:7:5 | @@ -377,7 +413,7 @@ error: Ident 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:11 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -389,7 +425,7 @@ error: SimpleBlock 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:12 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -401,7 +437,7 @@ error: Ident 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:24 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -419,7 +455,7 @@ error: Number 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:28 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -431,7 +467,7 @@ error: SimpleBlock 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:29 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -443,7 +479,7 @@ error: Ident 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:38 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -455,7 +491,7 @@ error: Ident 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:50 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -473,7 +509,7 @@ error: Number 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:54 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; @@ -485,7 +521,7 @@ error: SimpleBlock 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/square-brackets/input.css:7:55 | 7 | prop: [row1-start] 25% [row1-end row2-start] 25% [row2-end]; diff --git a/crates/swc_css_parser/tests/fixture/value/time/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/time/span.rust-debug index 443d789ac24..fd6126936e2 100644 --- a/crates/swc_css_parser/tests/fixture/value/time/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/time/span.rust-debug @@ -80,6 +80,12 @@ error: SimpleBlock 6 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:2:5 + | +2 | font-size: 14px; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:2:5 | @@ -104,7 +110,7 @@ error: Ident 2 | font-size: 14px; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:2:16 | 2 | font-size: 14px; @@ -134,6 +140,12 @@ error: Ident 2 | font-size: 14px; | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:3:5 + | +3 | transition-property: font-size; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:3:5 | @@ -158,7 +170,7 @@ error: Ident 3 | transition-property: font-size; | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:3:26 | 3 | transition-property: font-size; @@ -170,6 +182,12 @@ error: Ident 3 | transition-property: font-size; | ^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:4:5 + | +4 | transition-duration: 4s; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:4:5 | @@ -194,7 +212,7 @@ error: Ident 4 | transition-duration: 4s; | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:4:26 | 4 | transition-duration: 4s; @@ -224,6 +242,12 @@ error: Ident 4 | transition-duration: 4s; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:5:5 + | +5 | transition-delay: 2s; + | ^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:5:5 | @@ -248,7 +272,7 @@ error: Ident 5 | transition-delay: 2s; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:5:23 | 5 | transition-delay: 2s; @@ -339,6 +363,12 @@ error: SimpleBlock 10 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:9:5 + | +9 | transition: width 2s, height 2s, background-color 2s, transform 2s; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:9:5 | @@ -363,7 +393,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:17 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -375,7 +405,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:23 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -405,7 +435,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:25 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -417,7 +447,7 @@ error: Delimiter 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:27 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -429,7 +459,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:34 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -459,7 +489,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:36 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -471,7 +501,7 @@ error: Delimiter 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:38 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -483,7 +513,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:55 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -513,7 +543,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:57 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -525,7 +555,7 @@ error: Delimiter 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:59 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -537,7 +567,7 @@ error: Ident 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; | ^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:9:69 | 9 | transition: width 2s, height 2s, background-color 2s, transform 2s; @@ -631,6 +661,12 @@ error: SimpleBlock 15 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:13:5 + | +13 | transition-duration: 4s; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:13:5 | @@ -655,7 +691,7 @@ error: Ident 13 | transition-duration: 4s; | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:13:26 | 13 | transition-duration: 4s; @@ -685,6 +721,12 @@ error: Ident 13 | transition-duration: 4s; | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/time/input.css:14:5 + | +14 | transition-duration: 4000ms; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/time/input.css:14:5 | @@ -709,7 +751,7 @@ error: Ident 14 | transition-duration: 4000ms; | ^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/time/input.css:14:26 | 14 | transition-duration: 4000ms; diff --git a/crates/swc_css_parser/tests/fixture/value/urange/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/urange/span.rust-debug index 7c28364de91..c447a90eb2d 100644 --- a/crates/swc_css_parser/tests/fixture/value/urange/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/urange/span.rust-debug @@ -59,6 +59,12 @@ error: SimpleBlock 19 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:2:5 + | +2 | font-family: 'Ampersand'; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:2:5 | @@ -77,7 +83,7 @@ error: Ident 2 | font-family: 'Ampersand'; | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:2:18 | 2 | font-family: 'Ampersand'; @@ -89,6 +95,12 @@ error: Str 2 | font-family: 'Ampersand'; | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:3:5 + | +3 | src: local('Times New Roman'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:3:5 | @@ -107,7 +119,7 @@ error: Ident 3 | src: local('Times New Roman'); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:3:10 | 3 | src: local('Times New Roman'); @@ -125,7 +137,7 @@ error: Ident 3 | src: local('Times New Roman'); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:3:16 | 3 | src: local('Times New Roman'); @@ -137,6 +149,12 @@ error: Str 3 | src: local('Times New Roman'); | ^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:4:5 + | +4 | unicode-range: U+26; /* single codepoint */ + | ^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:4:5 | @@ -155,7 +173,7 @@ error: Ident 4 | unicode-range: U+26; /* single codepoint */ | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:4:20 | 4 | unicode-range: U+26; /* single codepoint */ @@ -167,6 +185,12 @@ error: UnicodeRange 4 | unicode-range: U+26; /* single codepoint */ | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:5:5 + | +5 | unicode-range: u+26; + | ^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:5:5 | @@ -185,7 +209,7 @@ error: Ident 5 | unicode-range: u+26; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:5:20 | 5 | unicode-range: u+26; @@ -197,6 +221,12 @@ error: UnicodeRange 5 | unicode-range: u+26; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:6:5 + | +6 | unicode-range: U+0-7F; + | ^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:6:5 | @@ -215,7 +245,7 @@ error: Ident 6 | unicode-range: U+0-7F; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:6:20 | 6 | unicode-range: U+0-7F; @@ -227,6 +257,12 @@ error: UnicodeRange 6 | unicode-range: U+0-7F; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:7:5 + | +7 | unicode-range: U+0025-00FF; /* codepoint range */ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:7:5 | @@ -245,7 +281,7 @@ error: Ident 7 | unicode-range: U+0025-00FF; /* codepoint range */ | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:7:20 | 7 | unicode-range: U+0025-00FF; /* codepoint range */ @@ -257,6 +293,12 @@ error: UnicodeRange 7 | unicode-range: U+0025-00FF; /* codepoint range */ | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:8:5 + | +8 | unicode-range: U+4??; /* wildcard range */ + | ^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:8:5 | @@ -275,7 +317,7 @@ error: Ident 8 | unicode-range: U+4??; /* wildcard range */ | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:8:20 | 8 | unicode-range: U+4??; /* wildcard range */ @@ -287,6 +329,12 @@ error: UnicodeRange 8 | unicode-range: U+4??; /* wildcard range */ | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:9:5 + | +9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:9:5 | @@ -305,7 +353,7 @@ error: Ident 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:9:20 | 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ @@ -317,7 +365,7 @@ error: UnicodeRange 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:9:31 | 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ @@ -329,7 +377,7 @@ error: Delimiter 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:9:33 | 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ @@ -341,6 +389,12 @@ error: UnicodeRange 9 | unicode-range: U+0025-00FF, U+4??; /* multiple values */ | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:10:5 + | +10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:10:5 | @@ -359,7 +413,7 @@ error: Ident 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:20 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -371,7 +425,7 @@ error: UnicodeRange 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:24 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -383,7 +437,7 @@ error: Delimiter 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:26 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -395,7 +449,7 @@ error: UnicodeRange 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:37 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -407,7 +461,7 @@ error: Delimiter 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:39 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -419,7 +473,7 @@ error: UnicodeRange 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:45 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -431,7 +485,7 @@ error: Delimiter 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:10:47 | 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ @@ -443,6 +497,12 @@ error: UnicodeRange 10 | unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; /* multiple values */ | ^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:11:5 + | +11 | unicode-range: U+????; + | ^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:11:5 | @@ -461,7 +521,7 @@ error: Ident 11 | unicode-range: U+????; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:11:20 | 11 | unicode-range: U+????; @@ -473,6 +533,12 @@ error: UnicodeRange 11 | unicode-range: U+????; | ^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:12:5 + | +12 | unicode-range: U+??????; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:12:5 | @@ -491,7 +557,7 @@ error: Ident 12 | unicode-range: U+??????; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:12:20 | 12 | unicode-range: U+??????; @@ -503,6 +569,12 @@ error: UnicodeRange 12 | unicode-range: U+??????; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:13:5 + | +13 | unicode-range: U+12; + | ^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:13:5 | @@ -521,7 +593,7 @@ error: Ident 13 | unicode-range: U+12; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:13:20 | 13 | unicode-range: U+12; @@ -533,6 +605,12 @@ error: UnicodeRange 13 | unicode-range: U+12; | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:14:5 + | +14 | unicode-range: U+12e112; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:14:5 | @@ -551,7 +629,7 @@ error: Ident 14 | unicode-range: U+12e112; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:14:20 | 14 | unicode-range: U+12e112; @@ -563,6 +641,12 @@ error: UnicodeRange 14 | unicode-range: U+12e112; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:15:5 + | +15 | unicode-range: U+1e1ee1; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:15:5 | @@ -581,7 +665,7 @@ error: Ident 15 | unicode-range: U+1e1ee1; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:15:20 | 15 | unicode-range: U+1e1ee1; @@ -593,6 +677,12 @@ error: UnicodeRange 15 | unicode-range: U+1e1ee1; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:16:5 + | +16 | unicode-range: U+1e1ee1-FFFFFF; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:16:5 | @@ -611,7 +701,7 @@ error: Ident 16 | unicode-range: U+1e1ee1-FFFFFF; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:16:20 | 16 | unicode-range: U+1e1ee1-FFFFFF; @@ -623,6 +713,12 @@ error: UnicodeRange 16 | unicode-range: U+1e1ee1-FFFFFF; | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:17:5 + | +17 | unicode-range: U+1e1ee?; + | ^^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:17:5 | @@ -641,7 +737,7 @@ error: Ident 17 | unicode-range: U+1e1ee?; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:17:20 | 17 | unicode-range: U+1e1ee?; @@ -653,6 +749,12 @@ error: UnicodeRange 17 | unicode-range: U+1e1ee?; | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/urange/input.css:18:5 + | +18 | unicode-range: U+12-13; + | ^^^^^^^^^^^^^^^^^^^^^^ + error: Declaration --> $DIR/tests/fixture/value/urange/input.css:18:5 | @@ -671,7 +773,7 @@ error: Ident 18 | unicode-range: U+12-13; | ^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/urange/input.css:18:20 | 18 | unicode-range: U+12-13; diff --git a/crates/swc_css_parser/tests/fixture/value/url/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/url/span.rust-debug index 7363b7a13a3..b2afde58d85 100644 --- a/crates/swc_css_parser/tests/fixture/value/url/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/url/span.rust-debug @@ -89,6 +89,12 @@ error: SimpleBlock 39 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:2:5 + | +2 | background: url(https://example.com/image.png); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:2:5 | @@ -113,7 +119,7 @@ error: Ident 2 | background: url(https://example.com/image.png); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:2:17 | 2 | background: url(https://example.com/image.png); @@ -143,6 +149,12 @@ error: UrlValueRaw 2 | background: url(https://example.com/image.png); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:3:5 + | +3 | background: URL(https://example.com/image.png); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:3:5 | @@ -167,7 +179,7 @@ error: Ident 3 | background: URL(https://example.com/image.png); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:3:17 | 3 | background: URL(https://example.com/image.png); @@ -197,6 +209,12 @@ error: UrlValueRaw 3 | background: URL(https://example.com/image.png); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:4:5 + | +4 | background: \URL(https://example.com/image.png); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:4:5 | @@ -221,7 +239,7 @@ error: Ident 4 | background: \URL(https://example.com/image.png); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:4:17 | 4 | background: \URL(https://example.com/image.png); @@ -251,6 +269,12 @@ error: UrlValueRaw 4 | background: \URL(https://example.com/image.png); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:5:5 + | +5 | background: url("https://example.com/image.png"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:5:5 | @@ -275,7 +299,7 @@ error: Ident 5 | background: url("https://example.com/image.png"); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:5:17 | 5 | background: url("https://example.com/image.png"); @@ -305,6 +329,12 @@ error: Str 5 | background: url("https://example.com/image.png"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:6:5 + | +6 | background: url('https://example.com/image.png'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:6:5 | @@ -329,7 +359,7 @@ error: Ident 6 | background: url('https://example.com/image.png'); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:6:17 | 6 | background: url('https://example.com/image.png'); @@ -359,6 +389,12 @@ error: Str 6 | background: url('https://example.com/image.png'); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:7:5 + | +7 | background: URL('https://example.com/image.png'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:7:5 | @@ -383,7 +419,7 @@ error: Ident 7 | background: URL('https://example.com/image.png'); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:7:17 | 7 | background: URL('https://example.com/image.png'); @@ -413,6 +449,12 @@ error: Str 7 | background: URL('https://example.com/image.png'); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:8:5 + | +8 | background: \URL('https://example.com/image.png'); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:8:5 | @@ -437,7 +479,7 @@ error: Ident 8 | background: \URL('https://example.com/image.png'); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:8:17 | 8 | background: \URL('https://example.com/image.png'); @@ -467,6 +509,12 @@ error: Str 8 | background: \URL('https://example.com/image.png'); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:9:5 + | +9 | background: url(data:image/png;base64,iRxVB0); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:9:5 | @@ -491,7 +539,7 @@ error: Ident 9 | background: url(data:image/png;base64,iRxVB0); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:9:17 | 9 | background: url(data:image/png;base64,iRxVB0); @@ -521,6 +569,12 @@ error: UrlValueRaw 9 | background: url(data:image/png;base64,iRxVB0); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:10:5 + | +10 | background: url(#IDofSVGpath); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:10:5 | @@ -545,7 +599,7 @@ error: Ident 10 | background: url(#IDofSVGpath); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:10:17 | 10 | background: url(#IDofSVGpath); @@ -575,6 +629,12 @@ error: UrlValueRaw 10 | background: url(#IDofSVGpath); | ^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:13:5 + | +13 | background: url("//aa.com/img.svg" prefetch); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:13:5 | @@ -599,7 +659,7 @@ error: Ident 13 | background: url("//aa.com/img.svg" prefetch); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:13:17 | 13 | background: url("//aa.com/img.svg" prefetch); @@ -641,6 +701,12 @@ error: Ident 13 | background: url("//aa.com/img.svg" prefetch); | ^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:14:5 + | +14 | background: url("//aa.com/img.svg" foo bar baz func(test)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:14:5 | @@ -665,7 +731,7 @@ error: Ident 14 | background: url("//aa.com/img.svg" foo bar baz func(test)); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:14:17 | 14 | background: url("//aa.com/img.svg" foo bar baz func(test)); @@ -749,7 +815,7 @@ error: Ident 14 | background: url("//aa.com/img.svg" foo bar baz func(test)); | ^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:14:57 | 14 | background: url("//aa.com/img.svg" foo bar baz func(test)); @@ -761,6 +827,12 @@ error: Ident 14 | background: url("//aa.com/img.svg" foo bar baz func(test)); | ^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:15:5 + | +15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:15:5 | @@ -785,7 +857,7 @@ error: Ident 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:15:17 | 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); @@ -833,7 +905,7 @@ error: Ident 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:15:58 | 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); @@ -845,7 +917,7 @@ error: DashedIdent 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); | ^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:15:66 | 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); @@ -863,7 +935,7 @@ error: Ident 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:15:70 | 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); @@ -875,6 +947,12 @@ error: DashedIdent 15 | background: url("http://example.com/image.svg" param(--color var(--primary-color))); | ^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:17:5 + | +17 | background: url(); + | ^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:17:5 | @@ -899,7 +977,7 @@ error: Ident 17 | background: url(); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:17:17 | 17 | background: url(); @@ -929,6 +1007,12 @@ error: UrlValueRaw 17 | background: url(); | ^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:18:5 + | +18 | background: url(""); + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:18:5 | @@ -953,7 +1037,7 @@ error: Ident 18 | background: url(""); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:18:17 | 18 | background: url(""); @@ -983,6 +1067,12 @@ error: Str 18 | background: url(""); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:19:5 + | +19 | background: url(''); + | ^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:19:5 | @@ -1007,7 +1097,7 @@ error: Ident 19 | background: url(''); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:19:17 | 19 | background: url(''); @@ -1037,6 +1127,12 @@ error: Str 19 | background: url(''); | ^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:21:5 + | +21 | --foo: "http://www.example.com/pinkish.gif"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:21:5 | @@ -1061,7 +1157,7 @@ error: DashedIdent 21 | --foo: "http://www.example.com/pinkish.gif"; | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:21:12 | 21 | --foo: "http://www.example.com/pinkish.gif"; @@ -1073,6 +1169,12 @@ error: String { value: Atom('http://www.example.com/pinkish.gif' type=dynamic), 21 | --foo: "http://www.example.com/pinkish.gif"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:23:5 + | +23 | background: src("http://www.example.com/pinkish.gif"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:23:5 | @@ -1097,7 +1199,7 @@ error: Ident 23 | background: src("http://www.example.com/pinkish.gif"); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:23:17 | 23 | background: src("http://www.example.com/pinkish.gif"); @@ -1127,6 +1229,12 @@ error: Str 23 | background: src("http://www.example.com/pinkish.gif"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:24:5 + | +24 | background: SRC("http://www.example.com/pinkish.gif"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:24:5 | @@ -1151,7 +1259,7 @@ error: Ident 24 | background: SRC("http://www.example.com/pinkish.gif"); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:24:17 | 24 | background: SRC("http://www.example.com/pinkish.gif"); @@ -1181,6 +1289,12 @@ error: Str 24 | background: SRC("http://www.example.com/pinkish.gif"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:25:5 + | +25 | background: src(var(--foo)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:25:5 | @@ -1205,7 +1319,7 @@ error: Ident 25 | background: src(var(--foo)); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:25:17 | 25 | background: src(var(--foo)); @@ -1241,7 +1355,7 @@ error: Ident 25 | background: src(var(--foo)); | ^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:25:25 | 25 | background: src(var(--foo)); @@ -1253,6 +1367,12 @@ error: DashedIdent 25 | background: src(var(--foo)); | ^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:26:5 + | +26 | background: url( https://example.com/image.png ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:26:5 | @@ -1277,7 +1397,7 @@ error: Ident 26 | background: url( https://example.com/image.png ); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:26:17 | 26 | background: url( https://example.com/image.png ); @@ -1307,6 +1427,12 @@ error: UrlValueRaw 26 | background: url( https://example.com/image.png ); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:27:5 + | +27 | background: u\rl( https://example.com/image.png ); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:27:5 | @@ -1331,7 +1457,7 @@ error: Ident 27 | background: u\rl( https://example.com/image.png ); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:27:17 | 27 | background: u\rl( https://example.com/image.png ); @@ -1361,6 +1487,14 @@ error: UrlValueRaw 27 | background: u\rl( https://example.com/image.png ); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:28:5 + | +28 | / background: url( +29 | | https://example.com/image.png +30 | | ); + | |_____^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:28:5 | @@ -1389,7 +1523,7 @@ error: Ident 28 | background: url( | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:28:17 | 28 | background: url( @@ -1431,6 +1565,18 @@ error: UrlValueRaw 30 | | ); | |____^ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:31:5 + | +31 | / background: url( +32 | | +33 | | +34 | | https://example.com/image.png +35 | | +36 | | +37 | | ); + | |_^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:31:5 | @@ -1467,7 +1613,7 @@ error: Ident 31 | background: url( | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:31:17 | 31 | background: url( @@ -1525,6 +1671,12 @@ error: UrlValueRaw 37 | | ); | |_ +error: ComponentValue + --> $DIR/tests/fixture/value/url/input.css:38:5 + | +38 | background: URL(https://example.com/ima\)ge.png); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/value/url/input.css:38:5 | @@ -1549,7 +1701,7 @@ error: Ident 38 | background: URL(https://example.com/ima\)ge.png); | ^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/value/url/input.css:38:17 | 38 | background: URL(https://example.com/ima\)ge.png); diff --git a/crates/swc_css_parser/tests/fixture/vercel/001/span.rust-debug b/crates/swc_css_parser/tests/fixture/vercel/001/span.rust-debug index 0b529d072dd..05223ee0e58 100644 --- a/crates/swc_css_parser/tests/fixture/vercel/001/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/vercel/001/span.rust-debug @@ -85,6 +85,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/vercel/001/input.css:2:5 + | +2 | margin-right: 0; + | ^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/vercel/001/input.css:2:5 | @@ -109,7 +115,7 @@ error: Ident 2 | margin-right: 0; | ^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/001/input.css:2:19 | 2 | margin-right: 0; diff --git a/crates/swc_css_parser/tests/fixture/vercel/002/span.rust-debug b/crates/swc_css_parser/tests/fixture/vercel/002/span.rust-debug index 0217fb44553..8e2e259e476 100644 --- a/crates/swc_css_parser/tests/fixture/vercel/002/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/vercel/002/span.rust-debug @@ -67,6 +67,12 @@ error: SimpleBlock 3 | | } | |_^ +error: ComponentValue + --> $DIR/tests/fixture/vercel/002/input.css:2:5 + | +2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + error: StyleBlock --> $DIR/tests/fixture/vercel/002/input.css:2:5 | @@ -91,7 +97,7 @@ error: Ident 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:25 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); @@ -109,7 +115,7 @@ error: Ident 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^^^^^^^^^^^^^^^^^^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:49 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); @@ -121,7 +127,7 @@ error: Ident 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:55 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); @@ -133,7 +139,7 @@ error: Delimiter 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:57 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); @@ -145,7 +151,7 @@ error: Ident 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^^^^^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:62 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); @@ -157,7 +163,7 @@ error: Delimiter 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); | ^ -error: Value +error: ComponentValue --> $DIR/tests/fixture/vercel/002/input.css:2:64 | 2 | -webkit-mask-image: -webkit-radial-gradient(circle, white, black); diff --git a/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr b/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr index cb3f2fa2659..47216270e56 100644 --- a/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr +++ b/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr @@ -10,6 +10,12 @@ error: Expected 'number', 'dimension', 'percentage', 'ident', '(' or 'function' 4 | margin: 0 calc(__styled-jsx-placeholder__7vw - __styled-jsx-placeholder__7px); | ^ +error: Expected Declaration value + --> $DIR/tests/recovery/vercel/002/input.css:4:50 + | +4 | margin: 0 calc(__styled-jsx-placeholder__7vw - __styled-jsx-placeholder__7px); + | ^ + error: Expected 'e', 'pi', 'infinity', '-infinity' or 'NaN', ident tokens --> $DIR/tests/recovery/vercel/002/input.css:4:52 | diff --git a/crates/swc_css_visit/src/lib.rs b/crates/swc_css_visit/src/lib.rs index a56170975dd..13871d3a9ff 100644 --- a/crates/swc_css_visit/src/lib.rs +++ b/crates/swc_css_visit/src/lib.rs @@ -38,7 +38,21 @@ define!({ StyleBlock(StyleBlock), KeyframeBlock(KeyframeBlock), - Value(Value), + Ident(Ident), + DashedIdent(DashedIdent), + Str(Str), + Url(Url), + Integer(Integer), + Number(Number), + Percentage(Percentage), + Dimension(Dimension), + Ratio(Ratio), + UnicodeRange(UnicodeRange), + Color(Color), + Delimiter(Delimiter), + + CalcSum(CalcSum), + ComplexSelector(ComplexSelector), } pub struct Ident { @@ -80,7 +94,7 @@ define!({ pub struct Declaration { pub span: Span, pub name: DeclarationName, - pub value: Vec, + pub value: Vec, pub important: Option, } @@ -113,27 +127,6 @@ define!({ Invalid(Tokens), } - pub enum Value { - ComponentValue(Box), - SimpleBlock(SimpleBlock), - Dimension(Dimension), - Integer(Integer), - Number(Number), - Percentage(Percentage), - Ratio(Ratio), - Color(Color), - Ident(Ident), - DashedIdent(DashedIdent), - Str(Str), - Function(Function), - CalcSum(CalcSum), - Delimiter(Delimiter), - UnicodeRange(UnicodeRange), - Url(Url), - ComplexSelector(ComplexSelector), - PreservedToken(TokenAndSpan), - } - pub enum DelimiterValue { Comma, Solidus, @@ -148,7 +141,7 @@ define!({ pub struct Function { pub span: Span, pub name: Ident, - pub value: Vec, + pub value: Vec, } pub enum Color { diff --git a/crates/swc_stylis/src/prefixer.rs b/crates/swc_stylis/src/prefixer.rs index 26535f2caea..99c90b74bcf 100644 --- a/crates/swc_stylis/src/prefixer.rs +++ b/crates/swc_stylis/src/prefixer.rs @@ -25,7 +25,7 @@ impl VisitMut for Prefixer { macro_rules! simple { ($name:expr,$val:expr) => {{ - let val = Value::Ident(Ident { + let val = ComponentValue::Ident(Ident { span: DUMMY_SP, value: $val.into(), raw: $val.into(), @@ -70,7 +70,7 @@ impl VisitMut for Prefixer { self.added.push(Declaration { span: n.span, name: n.name.clone(), - value: vec![Value::Ident(val)], + value: vec![ComponentValue::Ident(val)], important: n.important.clone(), }); }}; @@ -173,9 +173,9 @@ impl VisitMut for Prefixer { "background" => { if !n.value.is_empty() { - if let Value::Function(f) = &n.value[0] { + if let ComponentValue::Function(f) = &n.value[0] { if &*f.name.value == "image-set" { - let val = Value::Function(Function { + let val = ComponentValue::Function(Function { span: DUMMY_SP, name: Ident { span: DUMMY_SP, @@ -197,9 +197,9 @@ impl VisitMut for Prefixer { "background-image" => { if !n.value.is_empty() { - if let Value::Function(f) = &n.value[0] { + if let ComponentValue::Function(f) = &n.value[0] { if let "image-set" = &*f.name.value { - let val = Value::Function(Function { + let val = ComponentValue::Function(Function { span: DUMMY_SP, name: Ident { span: DUMMY_SP, @@ -225,9 +225,9 @@ impl VisitMut for Prefixer { .value .iter() .map(|node| match node { - Value::Ident(Ident { value, .. }) => { + ComponentValue::Ident(Ident { value, .. }) => { if &**value == "grab" { - Value::Ident(Ident { + ComponentValue::Ident(Ident { span: DUMMY_SP, value: "-webkit-grab".into(), raw: "-webkit-grab".into(), @@ -236,9 +236,9 @@ impl VisitMut for Prefixer { node.clone() } } - Value::Function(Function { name, value, .. }) => { + ComponentValue::Function(Function { name, value, .. }) => { if &*name.value == "image-set" { - Value::Function(Function { + ComponentValue::Function(Function { span: DUMMY_SP, name: Ident { span: DUMMY_SP, @@ -268,7 +268,7 @@ impl VisitMut for Prefixer { "display" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { match &**value { "flex" => { same_name!("-webkit-box"); @@ -327,7 +327,7 @@ impl VisitMut for Prefixer { "justify-content" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { match &**value { "flex-end" => { simple!("-webkit-box-pack", "end"); @@ -424,7 +424,7 @@ impl VisitMut for Prefixer { "position" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { if &**value == "sticky" { same_name!("-webkit-sticky"); } @@ -446,7 +446,7 @@ impl VisitMut for Prefixer { "text-decoration" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { if &**value == "none" { same_content!("-webkit-text-decoration"); } @@ -456,7 +456,7 @@ impl VisitMut for Prefixer { "text-size-adjust" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { if &**value == "none" { same_content!("-webkit-text-size-adjust"); same_content!("-moz-text-size-adjust"); @@ -486,7 +486,7 @@ impl VisitMut for Prefixer { "writing-mode" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { match &**value { "none" => { same_content!("-webkit-writing-mode"); @@ -517,7 +517,7 @@ impl VisitMut for Prefixer { "min-width" | "width" | "max-width" | "min-height" | "height" | "max-height" | "min-block-size" | "min-inline-size" => { if n.value.len() == 1 { - if let Value::Ident(Ident { value, .. }) = &n.value[0] { + if let ComponentValue::Ident(Ident { value, .. }) = &n.value[0] { match &**value { "fit-content" => { same_name!("-webkit-fit-content");