Skip to content

Commit 0104c8d

Browse files
committed
Add test for arbitrary values
1 parent ed69466 commit 0104c8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/plugins/fontSize.test.js

+9
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ test('font-size utilities can include a line-height modifier', () => {
126126
{
127127
raw: html`<div class="text-sm md:text-base">
128128
<div class="text-sm/6 md:text-base/7"></div>
129+
<div class="text-sm/[21px] md:text-base/[33px]"></div>
129130
</div>`,
130131
},
131132
],
@@ -151,6 +152,10 @@ test('font-size utilities can include a line-height modifier', () => {
151152
font-size: 12px;
152153
line-height: 24px;
153154
}
155+
.text-sm\/\[21px\] {
156+
font-size: 12px;
157+
line-height: 21px;
158+
}
154159
@media (min-width: 768px) {
155160
.md\:text-base {
156161
font-size: 16px;
@@ -160,6 +165,10 @@ test('font-size utilities can include a line-height modifier', () => {
160165
font-size: 16px;
161166
line-height: 28px;
162167
}
168+
.md\:text-base\/\[33px\] {
169+
font-size: 16px;
170+
line-height: 33px;
171+
}
163172
}
164173
`)
165174
})

0 commit comments

Comments
 (0)