Commit Graph
13 Commits
Author SHA1 Message Date
cb1e9416e7 a few minor fixes to the variants tests (#10427)
Co-authored-by: Michael Warner <[email protected]>
2023-01-27 19:57:02 +01:00
Robin MalfaitandGitHub f3eea678a6 inline tests (#10362)
This will reduce the amount of different test "implementations" and
should further unify/normalise the tests. Some tests are very large and
can be split up more but this is a start in the right direction.

One of the biggest benefits is that changes in the tests file re-trigger
a jest run in watch mode. A change in the HTML/CSS file won't.
2023-01-19 11:42:52 +01:00
Adam WathanandGitHub 14c77a0df0 Add optional variant (#8486)
* Add  variant

* Update changelog
2022-06-01 08:39:43 -04:00
5180f5d62a Add prefers-contrast media query variants (#8410)
* Add prefers-contrast variants

* add tests for prefers contrast

* dark mode should have precedence over prefers contrast variants

* update changelog

Co-authored-by: Luke Warlow <[email protected]>
2022-05-23 17:40:14 +02:00
seb-jeanandGitHub 148f2d879c Add backdrop variant (#7924)
* Update corePlugins.js

* Update variants.test.html

* Update variants.test.css
2022-03-25 15:42:27 -04:00
Adam WathanandGitHub cc9ec1c029 Add enabled variant (#7905)
* Add enabled variant

* Update changelog
2022-03-22 10:43:39 -04:00
e65b3a2007 Add variants for orientation media feature (#6046)
* Add variants for orientation media feature

* Rename to portrait and landscape

Co-authored-by: Adam Wathan <[email protected]>
2021-11-23 14:59:25 -05:00
Robin MalfaitandGitHub 64de7f43d3 Add placeholder variant (#6106)
* add `placeholder` variant

* update changelog
2021-11-16 15:33:30 +01:00
44b9b294d9 Add print variant (#5885)
Co-Authored-By: Adam Wathan <[email protected]>

Co-authored-by: Adam Wathan <[email protected]>
2021-10-27 10:21:02 -04:00
Robin MalfaitandGitHub 3a14e2ba6f Polish match APIs (#5664)
* fix incorrect logic for validating content paths

* remove `includeRules` helper

* generate keyframes as part of the animate plugin

* add matchUtilities

* splitup `variantPlugins` and `corePlugins`
2021-10-01 17:31:09 +02:00
74157b984f Add [open] variant (#5627)
* Add `[open]` variant

Co-Authored-By: Adam Wathan <[email protected]>
Co-Authored-By: Sean Doyle <[email protected]>

* Add new `applyStateToMarker()` function

This function replaces the existing `applyPseudoToMarker()` and `applyAttributeToMarker()` functions.

Co-Authored-By: Robin Malfait <[email protected]>

Co-authored-by: Adam Wathan <[email protected]>
Co-authored-by: Sean Doyle <[email protected]>
Co-authored-by: Robin Malfait <[email protected]>
2021-09-28 11:13:58 -04:00
131ba37663 Add variant for ::file-selector-button pseudo element (#4936)
* Add variant for file-selector-button pseudo element

* Rename `file-selector-button` variant to `file`

Co-Authored-By: Adam Wathan <[email protected]>

Co-authored-by: Jonathan Reinink <[email protected]>
Co-authored-by: Adam Wathan <[email protected]>
2021-09-23 15:43:37 -04:00
Robin MalfaitandGitHub da30dda3d9 JIT by default - move tests and make them consistent (#5374)
* move `./tests/jit` to `./tests`

* make tests consistent

Abstracted a `run` function and some syntax highlighting helpers for
`html`, `css` and `javascript`.
2021-09-03 13:48:16 +02:00