|
3 | 3 | // ----------------------------------------
|
4 | 4 |
|
5 | 5 | const minMaxWidth =
|
6 |
| - /(!?\(\s*min(-device)?-width)(.|\n)+\(\s*max(-device)?-width|\(\s*width\s*>(=)?(.|\n)+\(\s*width\s*<(=)?/i; |
| 6 | + /(!?\(\s*min(-device)?-width)(.|\n)+\(\s*max(-device)?-width|\(\s*width\s*>(=)?(.|\n)+\(\s*width\s*<(=)?|(!?\(.*<(=)?\s*width\s*<(=)?)/i; |
7 | 7 | const minWidth = /\(\s*min(-device)?-width|\(\s*width\s*>(=)?/i;
|
8 | 8 | const maxMinWidth =
|
9 |
| - /(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width|\(\s*width\s*<(=)?(.|\n)+\(\s*width\s*>(=)?/i; |
| 9 | + /(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width|\(\s*width\s*<(=)?(.|\n)+\(\s*width\s*>(=)?|(!?\(.*>(=)?\s*width\s*>(=)?)/i; |
10 | 10 | const maxWidth = /\(\s*max(-device)?-width|\(\s*width\s*<(=)?/i;
|
11 | 11 |
|
12 | 12 | const isMinWidth = _testQuery(minMaxWidth, maxMinWidth, minWidth);
|
13 | 13 | const isMaxWidth = _testQuery(maxMinWidth, minMaxWidth, maxWidth);
|
14 | 14 |
|
15 |
| -const minMaxHeight = /(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i; |
16 |
| -const minHeight = /\(\s*min(-device)?-height/i; |
17 |
| -const maxMinHeight = /(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i; |
18 |
| -const maxHeight = /\(\s*max(-device)?-height/i; |
| 15 | +const minMaxHeight = |
| 16 | + /(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height|\(\s*height\s*>(=)?(.|\n)+\(\s*height\s*<(=)?|(!?\(.*<(=)?\s*height\s*<(=)?)/i; |
| 17 | +const minHeight = /\(\s*min(-device)?-height|\(\s*height\s*>(=)?/i; |
| 18 | +const maxMinHeight = |
| 19 | + /(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height|\(\s*height\s*<(=)?(.|\n)+\(\s*height\s*>(=)?|(!?\(.*>(=)?\s*height\s*>(=)?)/i; |
| 20 | +const maxHeight = /\(\s*max(-device)?-height|\(\s*height\s*<(=)?/i; |
19 | 21 |
|
20 | 22 | const isMinHeight = _testQuery(minMaxHeight, maxMinHeight, minHeight);
|
21 | 23 | const isMaxHeight = _testQuery(maxMinHeight, minMaxHeight, maxHeight);
|
|
0 commit comments