File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ import {
14
14
PROPERTY_ACCEPTS_UNITLESS_VALUES ,
15
15
PROPERTY_PRECEDENCE_CORRECTION_GROUPS ,
16
16
} from "./propertyMatchers" ;
17
- import { PRECEDENCES_BY_PSEUDO_CLASS } from "./pseudos" ;
17
+ import {
18
+ PRECEDENCES_BY_PSEUDO_CLASS ,
19
+ PSEUDO_CLASS_PRECEDENCE_GROUP_COUNT ,
20
+ } from "./pseudos" ;
18
21
19
22
const MAX_CLASS_NAME_LENGTH = 9 ;
20
23
export const PRECEDENCE_GROUP_COUNT = 36 ;
@@ -210,7 +213,7 @@ export function createInstance(): OtionInstance {
210
213
classSelectorStartIndex + 8 ,
211
214
) ,
212
215
) ) ||
213
- 1 ;
216
+ PSEUDO_CLASS_PRECEDENCE_GROUP_COUNT + 1 ;
214
217
215
218
const scopeSelector = `.${ className } ` ;
216
219
injector . insert (
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
export const PRECEDENCES_BY_PSEUDO_CLASS = new Map ( [
9
- [ /* li */ "nk" , 2 ] ,
10
- [ /* vi */ "sited" , 3 ] ,
11
- [ /* em */ "pty" , 4 ] ,
12
- [ /* fo */ "cus-w" /* ithin */ , 5 ] ,
13
- [ /* ho */ "ver" , 6 ] ,
14
- [ /* fo */ "cus" , 7 ] ,
15
- [ /* fo */ "cus-v" /* isible */ , 8 ] ,
16
- [ /* ac */ "tive" , 9 ] ,
17
- [ /* di */ "sable" /* d */ , 10 ] ,
9
+ [ /* li */ "nk" , 1 ] ,
10
+ [ /* vi */ "sited" , 2 ] ,
11
+ [ /* em */ "pty" , 3 ] ,
12
+ [ /* fo */ "cus-w" /* ithin */ , 4 ] ,
13
+ [ /* ho */ "ver" , 5 ] ,
14
+ [ /* fo */ "cus" , 6 ] ,
15
+ [ /* fo */ "cus-v" /* isible */ , 7 ] ,
16
+ [ /* ac */ "tive" , 8 ] ,
17
+ [ /* di */ "sable" /* d */ , 9 ] ,
18
18
] ) ;
19
+
20
+ export const PSEUDO_CLASS_PRECEDENCE_GROUP_COUNT = 9 ;
You can’t perform that action at this time.
0 commit comments