|
13 | 13 | test(() => {
|
14 | 14 | const progress = document.querySelector(`progress[style="writing-mode: horizontal-tb"]`);
|
15 | 15 | const style = getComputedStyle(progress);
|
16 |
| - assert_equals(style.blockSize, "16px"); |
17 |
| - assert_equals(style.inlineSize, "160px"); |
| 16 | + const blockSize = parseInt(style.blockSize, 10); |
| 17 | + const inlineSize = parseInt(style.inlineSize, 10); |
| 18 | + assert_not_equals(blockSize, 0); |
| 19 | + assert_not_equals(inlineSize, 0); |
| 20 | + assert_greater_than(inlineSize, blockSize); |
18 | 21 | assert_equals(style.blockSize, style.height);
|
19 | 22 | assert_equals(style.inlineSize, style.width);
|
20 | 23 | }, `progress[style="writing-mode: horizontal-tb"] block size should match height and inline size should match width`);
|
|
23 | 26 | test(() => {
|
24 | 27 | const progress = document.querySelector(`progress[style="writing-mode: ${writingMode}"]`);
|
25 | 28 | const style = getComputedStyle(progress);
|
26 |
| - assert_equals(style.blockSize, "16px"); |
27 |
| - assert_equals(style.inlineSize, "160px"); |
| 29 | + const blockSize = parseInt(style.blockSize, 10); |
| 30 | + const inlineSize = parseInt(style.inlineSize, 10); |
| 31 | + assert_not_equals(blockSize, 0); |
| 32 | + assert_not_equals(inlineSize, 0); |
| 33 | + assert_greater_than(inlineSize, blockSize); |
28 | 34 | assert_equals(style.blockSize, style.width);
|
29 | 35 | assert_equals(style.inlineSize, style.height);
|
30 | 36 | }, `progress[style="writing-mode: ${writingMode}"] block size should match width and inline size should match height`);
|
|
0 commit comments