jsfmt.spec.js.snap 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`custom-selector.css 1`] = `
  3. @custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
  4. @custom-selector :--icon i[ class ^= 'icon-' ], i[ class *= ' icon-' ];
  5. @custom-selector
  6. :--icon
  7. i[
  8. class
  9. ^=
  10. 'icon-'
  11. ]
  12. ,
  13. i[
  14. class
  15. *=
  16. ' icon-'
  17. ]
  18. ;
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. @custom-selector :--icon i[class^="icon-"], i[class*=" icon-"];
  21. @custom-selector :--icon i[class^="icon-"], i[class*=" icon-"];
  22. @custom-selector :--icon i[class^="icon-"], i[class*=" icon-"];
  23. `;
  24. exports[`custom-selector.css 2`] = `
  25. @custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
  26. @custom-selector :--icon i[ class ^= 'icon-' ], i[ class *= ' icon-' ];
  27. @custom-selector
  28. :--icon
  29. i[
  30. class
  31. ^=
  32. 'icon-'
  33. ]
  34. ,
  35. i[
  36. class
  37. *=
  38. ' icon-'
  39. ]
  40. ;
  41. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. @custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
  43. @custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
  44. @custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
  45. `;
  46. exports[`insensitive.css 1`] = `
  47. input[type="radio" i] {}
  48. img[alt~="person" i][src*="lorem" i] {}
  49. section:has(:not([type="radio" i], [type="checkbox" i])) {}
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. input[type="radio" i] {
  52. }
  53. img[alt~="person" i][src*="lorem" i] {
  54. }
  55. section:has(:not([type="radio" i], [type="checkbox" i])) {
  56. }
  57. `;
  58. exports[`insensitive.css 2`] = `
  59. input[type="radio" i] {}
  60. img[alt~="person" i][src*="lorem" i] {}
  61. section:has(:not([type="radio" i], [type="checkbox" i])) {}
  62. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. input[type='radio' i] {
  64. }
  65. img[alt~='person' i][src*='lorem' i] {
  66. }
  67. section:has(:not([type='radio' i], [type='checkbox' i])) {
  68. }
  69. `;
  70. exports[`namespaces.css 1`] = `
  71. @namespace foo "http://www.example.com";
  72. [foo|att=val] {}
  73. [*|att] {}
  74. [|att] {}
  75. [att] {}
  76. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. @namespace foo "http://www.example.com";
  78. [foo|att="val"] {
  79. }
  80. [*|att] {
  81. }
  82. [|att] {
  83. }
  84. [att] {
  85. }
  86. `;
  87. exports[`namespaces.css 2`] = `
  88. @namespace foo "http://www.example.com";
  89. [foo|att=val] {}
  90. [*|att] {}
  91. [|att] {}
  92. [att] {}
  93. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  94. @namespace foo 'http://www.example.com';
  95. [foo|att='val'] {
  96. }
  97. [*|att] {
  98. }
  99. [|att] {
  100. }
  101. [att] {
  102. }
  103. `;
  104. exports[`quotes.css 1`] = `
  105. a[id=test] {}
  106. a[id="test"] {}
  107. a[id='test'] {}
  108. a[id=func("foo")] {}
  109. a[class="(╯°□°)╯︵ ┻━┻"]{}
  110. input:not([type="radio"]):not([type="checkbox"]) {}
  111. input:not([type="radio"], [type="checkbox"]) {}
  112. section:has(:not([type="radio"], [type="checkbox"])) {}
  113. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. a[id="test"] {
  115. }
  116. a[id="test"] {
  117. }
  118. a[id="test"] {
  119. }
  120. a[id=func("foo")] {
  121. }
  122. a[class="(╯°□°)╯︵ ┻━┻"] {
  123. }
  124. input:not([type="radio"]):not([type="checkbox"]) {
  125. }
  126. input:not([type="radio"], [type="checkbox"]) {
  127. }
  128. section:has(:not([type="radio"], [type="checkbox"])) {
  129. }
  130. `;
  131. exports[`quotes.css 2`] = `
  132. a[id=test] {}
  133. a[id="test"] {}
  134. a[id='test'] {}
  135. a[id=func("foo")] {}
  136. a[class="(╯°□°)╯︵ ┻━┻"]{}
  137. input:not([type="radio"]):not([type="checkbox"]) {}
  138. input:not([type="radio"], [type="checkbox"]) {}
  139. section:has(:not([type="radio"], [type="checkbox"])) {}
  140. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  141. a[id='test'] {
  142. }
  143. a[id='test'] {
  144. }
  145. a[id='test'] {
  146. }
  147. a[id=func('foo')] {
  148. }
  149. a[class='(╯°□°)╯︵ ┻━┻'] {
  150. }
  151. input:not([type='radio']):not([type='checkbox']) {
  152. }
  153. input:not([type='radio'], [type='checkbox']) {
  154. }
  155. section:has(:not([type='radio'], [type='checkbox'])) {
  156. }
  157. `;
  158. exports[`spaces.css 1`] = `
  159. [lang] {}
  160. [ lang] {}
  161. [lang ] {}
  162. [ lang ] {}
  163. [ lang ] {}
  164. [
  165. lang
  166. ] {}
  167. span[lang] {}
  168. span[ lang] {}
  169. span[lang ] {}
  170. span[ lang ] {}
  171. span[ lang ] {}
  172. span[lang='pt'] {}
  173. span[lang ='pt'] {}
  174. span[lang= 'pt'] {}
  175. span[lang = 'pt'] {}
  176. span[lang = 'pt'] {}
  177. span[lang='pt' ] {}
  178. span[lang='pt' ] {}
  179. span[
  180. lang
  181. =
  182. 'pt'
  183. ] {}
  184. span[ lang ~= 'en-us' ] {}
  185. span[ lang ~= 'en-us' ] {}
  186. span[ lang |='zh' ] {}
  187. span[
  188. lang
  189. ~=
  190. 'en-us'
  191. ] {}
  192. a[ href ^= '#' ] {}
  193. a[ href $= '.cn' ] {}
  194. a[ href *= 'example' ] {}
  195. a[
  196. href
  197. *=
  198. 'example'
  199. ] {}
  200. input[ type = 'radio' i ] {}
  201. input[ type = 'radio' i ] {}
  202. input[ type ~= 'radio' i ] {}
  203. input[ type ~= 'radio' i ] {}
  204. input[
  205. type
  206. ~=
  207. 'radio'
  208. i
  209. ] {}
  210. img[ alt = 'person' ][ src = 'lorem' ] {}
  211. img[ alt = 'person' ][ src = 'lorem' ] {}
  212. img[ alt ~= 'person' ][ src *= 'lorem' ] {}
  213. img[ alt ~= 'person' ][ src *= 'lorem' ] {}
  214. img[
  215. alt
  216. ~=
  217. 'person'
  218. ][
  219. src
  220. *=
  221. 'lorem'
  222. ] {}
  223. section:has(:not([type='radio'], [type='checkbox'])) {}
  224. section:has(:not([type='radio' i], [type='checkbox' i])) {}
  225. section:has(:not([ type = 'radio' ], [ type = 'checkbox' ])) {}
  226. section:has(:not([ type = 'radio' i ], [ type = 'checkbox' i ])) {}
  227. section:has(:not([ type = 'radio' ], [ type = 'checkbox' ])) {}
  228. section:has(:not([ type = 'radio' i ], [ type = 'checkbox' i ])) {}
  229. section:has(:not([
  230. type
  231. =
  232. 'radio'
  233. ], [
  234. type
  235. =
  236. 'checkbox'
  237. ])) {}
  238. section:has(:not([
  239. type
  240. =
  241. 'radio'
  242. i
  243. ], [
  244. type
  245. =
  246. 'checkbox'
  247. i
  248. ])) {}
  249. [foo|att=val] {}
  250. [ foo | att = val ] {}
  251. [ foo | att = val ] {}
  252. [
  253. foo
  254. |
  255. att
  256. =
  257. val
  258. ] {}
  259. [*|att] {}
  260. [ * | att ] {}
  261. [ * | att ] {}
  262. [
  263. *
  264. |
  265. att
  266. ] {}
  267. [|att] {}
  268. [ | att ] {}
  269. [ | att ] {}
  270. [
  271. |
  272. att
  273. ] {}
  274. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  275. [lang] {
  276. }
  277. [lang] {
  278. }
  279. [lang] {
  280. }
  281. [lang] {
  282. }
  283. [lang] {
  284. }
  285. [lang] {
  286. }
  287. span[lang] {
  288. }
  289. span[lang] {
  290. }
  291. span[lang] {
  292. }
  293. span[lang] {
  294. }
  295. span[lang] {
  296. }
  297. span[lang="pt"] {
  298. }
  299. span[lang="pt"] {
  300. }
  301. span[lang="pt"] {
  302. }
  303. span[lang="pt"] {
  304. }
  305. span[lang="pt"] {
  306. }
  307. span[lang="pt"] {
  308. }
  309. span[lang="pt"] {
  310. }
  311. span[lang="pt"] {
  312. }
  313. span[lang~="en-us"] {
  314. }
  315. span[lang~="en-us"] {
  316. }
  317. span[lang|="zh"] {
  318. }
  319. span[lang~="en-us"] {
  320. }
  321. a[href^="#"] {
  322. }
  323. a[href$=".cn"] {
  324. }
  325. a[href*="example"] {
  326. }
  327. a[href*="example"] {
  328. }
  329. input[type="radio" i] {
  330. }
  331. input[type="radio" i] {
  332. }
  333. input[type~="radio" i] {
  334. }
  335. input[type~="radio" i] {
  336. }
  337. input[type~="radio" i] {
  338. }
  339. img[alt="person"][src="lorem"] {
  340. }
  341. img[alt="person"][src="lorem"] {
  342. }
  343. img[alt~="person"][src*="lorem"] {
  344. }
  345. img[alt~="person"][src*="lorem"] {
  346. }
  347. img[alt~="person"][src*="lorem"] {
  348. }
  349. section:has(:not([type="radio"], [type="checkbox"])) {
  350. }
  351. section:has(:not([type="radio" i], [type="checkbox" i])) {
  352. }
  353. section:has(:not([type="radio"], [type="checkbox"])) {
  354. }
  355. section:has(:not([type="radio" i], [type="checkbox" i])) {
  356. }
  357. section:has(:not([type="radio"], [type="checkbox"])) {
  358. }
  359. section:has(:not([type="radio" i], [type="checkbox" i])) {
  360. }
  361. section:has(:not([type="radio"], [type="checkbox"])) {
  362. }
  363. section:has(:not([type="radio" i], [type="checkbox" i])) {
  364. }
  365. [foo|att="val"] {
  366. }
  367. [foo|att="val"] {
  368. }
  369. [foo|att="val"] {
  370. }
  371. [foo|att="val"] {
  372. }
  373. [*|att] {
  374. }
  375. [*|att] {
  376. }
  377. [*|att] {
  378. }
  379. [*|att] {
  380. }
  381. [|att] {
  382. }
  383. [|att] {
  384. }
  385. [|att] {
  386. }
  387. [|att] {
  388. }
  389. `;
  390. exports[`spaces.css 2`] = `
  391. [lang] {}
  392. [ lang] {}
  393. [lang ] {}
  394. [ lang ] {}
  395. [ lang ] {}
  396. [
  397. lang
  398. ] {}
  399. span[lang] {}
  400. span[ lang] {}
  401. span[lang ] {}
  402. span[ lang ] {}
  403. span[ lang ] {}
  404. span[lang='pt'] {}
  405. span[lang ='pt'] {}
  406. span[lang= 'pt'] {}
  407. span[lang = 'pt'] {}
  408. span[lang = 'pt'] {}
  409. span[lang='pt' ] {}
  410. span[lang='pt' ] {}
  411. span[
  412. lang
  413. =
  414. 'pt'
  415. ] {}
  416. span[ lang ~= 'en-us' ] {}
  417. span[ lang ~= 'en-us' ] {}
  418. span[ lang |='zh' ] {}
  419. span[
  420. lang
  421. ~=
  422. 'en-us'
  423. ] {}
  424. a[ href ^= '#' ] {}
  425. a[ href $= '.cn' ] {}
  426. a[ href *= 'example' ] {}
  427. a[
  428. href
  429. *=
  430. 'example'
  431. ] {}
  432. input[ type = 'radio' i ] {}
  433. input[ type = 'radio' i ] {}
  434. input[ type ~= 'radio' i ] {}
  435. input[ type ~= 'radio' i ] {}
  436. input[
  437. type
  438. ~=
  439. 'radio'
  440. i
  441. ] {}
  442. img[ alt = 'person' ][ src = 'lorem' ] {}
  443. img[ alt = 'person' ][ src = 'lorem' ] {}
  444. img[ alt ~= 'person' ][ src *= 'lorem' ] {}
  445. img[ alt ~= 'person' ][ src *= 'lorem' ] {}
  446. img[
  447. alt
  448. ~=
  449. 'person'
  450. ][
  451. src
  452. *=
  453. 'lorem'
  454. ] {}
  455. section:has(:not([type='radio'], [type='checkbox'])) {}
  456. section:has(:not([type='radio' i], [type='checkbox' i])) {}
  457. section:has(:not([ type = 'radio' ], [ type = 'checkbox' ])) {}
  458. section:has(:not([ type = 'radio' i ], [ type = 'checkbox' i ])) {}
  459. section:has(:not([ type = 'radio' ], [ type = 'checkbox' ])) {}
  460. section:has(:not([ type = 'radio' i ], [ type = 'checkbox' i ])) {}
  461. section:has(:not([
  462. type
  463. =
  464. 'radio'
  465. ], [
  466. type
  467. =
  468. 'checkbox'
  469. ])) {}
  470. section:has(:not([
  471. type
  472. =
  473. 'radio'
  474. i
  475. ], [
  476. type
  477. =
  478. 'checkbox'
  479. i
  480. ])) {}
  481. [foo|att=val] {}
  482. [ foo | att = val ] {}
  483. [ foo | att = val ] {}
  484. [
  485. foo
  486. |
  487. att
  488. =
  489. val
  490. ] {}
  491. [*|att] {}
  492. [ * | att ] {}
  493. [ * | att ] {}
  494. [
  495. *
  496. |
  497. att
  498. ] {}
  499. [|att] {}
  500. [ | att ] {}
  501. [ | att ] {}
  502. [
  503. |
  504. att
  505. ] {}
  506. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  507. [lang] {
  508. }
  509. [lang] {
  510. }
  511. [lang] {
  512. }
  513. [lang] {
  514. }
  515. [lang] {
  516. }
  517. [lang] {
  518. }
  519. span[lang] {
  520. }
  521. span[lang] {
  522. }
  523. span[lang] {
  524. }
  525. span[lang] {
  526. }
  527. span[lang] {
  528. }
  529. span[lang='pt'] {
  530. }
  531. span[lang='pt'] {
  532. }
  533. span[lang='pt'] {
  534. }
  535. span[lang='pt'] {
  536. }
  537. span[lang='pt'] {
  538. }
  539. span[lang='pt'] {
  540. }
  541. span[lang='pt'] {
  542. }
  543. span[lang='pt'] {
  544. }
  545. span[lang~='en-us'] {
  546. }
  547. span[lang~='en-us'] {
  548. }
  549. span[lang|='zh'] {
  550. }
  551. span[lang~='en-us'] {
  552. }
  553. a[href^='#'] {
  554. }
  555. a[href$='.cn'] {
  556. }
  557. a[href*='example'] {
  558. }
  559. a[href*='example'] {
  560. }
  561. input[type='radio' i] {
  562. }
  563. input[type='radio' i] {
  564. }
  565. input[type~='radio' i] {
  566. }
  567. input[type~='radio' i] {
  568. }
  569. input[type~='radio' i] {
  570. }
  571. img[alt='person'][src='lorem'] {
  572. }
  573. img[alt='person'][src='lorem'] {
  574. }
  575. img[alt~='person'][src*='lorem'] {
  576. }
  577. img[alt~='person'][src*='lorem'] {
  578. }
  579. img[alt~='person'][src*='lorem'] {
  580. }
  581. section:has(:not([type='radio'], [type='checkbox'])) {
  582. }
  583. section:has(:not([type='radio' i], [type='checkbox' i])) {
  584. }
  585. section:has(:not([type='radio'], [type='checkbox'])) {
  586. }
  587. section:has(:not([type='radio' i], [type='checkbox' i])) {
  588. }
  589. section:has(:not([type='radio'], [type='checkbox'])) {
  590. }
  591. section:has(:not([type='radio' i], [type='checkbox' i])) {
  592. }
  593. section:has(:not([type='radio'], [type='checkbox'])) {
  594. }
  595. section:has(:not([type='radio' i], [type='checkbox' i])) {
  596. }
  597. [foo|att='val'] {
  598. }
  599. [foo|att='val'] {
  600. }
  601. [foo|att='val'] {
  602. }
  603. [foo|att='val'] {
  604. }
  605. [*|att] {
  606. }
  607. [*|att] {
  608. }
  609. [*|att] {
  610. }
  611. [*|att] {
  612. }
  613. [|att] {
  614. }
  615. [|att] {
  616. }
  617. [|att] {
  618. }
  619. [|att] {
  620. }
  621. `;