File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 9
9
box-sizing : border-box; /* 1 */
10
10
border-width : 0 ; /* 2 */
11
11
border-style : solid; /* 2 */
12
- border-color : theme ('borderColor.DEFAULT' , ' currentColor' ); /* 2 */
12
+ border-color : theme ('borderColor.DEFAULT' , currentColor); /* 2 */
13
13
}
14
14
15
15
::before ,
Original file line number Diff line number Diff line change
1
+ import { run , html , css } from './util/run'
2
+
3
+ it ( 'preflight has a correct border color fallback' , ( ) => {
4
+ let config = {
5
+ content : [ { raw : html `<div class= "border-black" > </ div> ` } ] ,
6
+ theme : {
7
+ borderColor : ( { theme } ) => theme ( 'colors' ) ,
8
+ } ,
9
+ plugins : [ ] ,
10
+ corePlugins : { preflight : true } ,
11
+ }
12
+
13
+ let input = css `
14
+ @tailwind base;
15
+ @tailwind utilities;
16
+ `
17
+
18
+ return run ( input , config ) . then ( ( result ) => {
19
+ expect ( result . css ) . toContain ( `border-color: currentColor;` )
20
+ } )
21
+ } )
You can’t perform that action at this time.
0 commit comments