* Revert "add caption-side utilities (#10470)" This reverts commitf395cc4ae5. * Revert "Add support for configuring default `font-variation-settings` for a `font-family` (#10515)" This reverts commit8bd2846b5b. * Revert "feat: add hyphens (#10071)" This reverts commitf58a43fd75. * Revert "Add logical properties support for inline direction" * Revert "Add `delay-0` and `duration-0` by default" * Revert "Support using variables as arbitrary values without `var()`" * Revert "Add `line-height` modifier support to `font-size` utilities"
22 lines
748 B
JavaScript
22 lines
748 B
JavaScript
import { crosscheck, run, html, css, defaults } from './util/run'
|
|
|
|
crosscheck(({ stable, oxide }) => {
|
|
stable.test.todo('space-x uses physical properties')
|
|
oxide.test('space-x uses logical properties', () => {
|
|
let config = {
|
|
content: [{ raw: html`<div class="space-x-4"></div>` }],
|
|
corePlugins: { preflight: false },
|
|
}
|
|
|
|
return run('@tailwind base; @tailwind utilities;', config).then((result) => {
|
|
expect(result.css).toMatchCss(css`
|
|
${defaults}
|
|
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
--tw-space-x-reverse: 0;
|
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
}
|
|
`)
|
|
})
|
|
})
|
|
})
|