Skip to content

Commit 206f1d6

Browse files
bakura10adamwathan
andauthored
Make font weight inherit in preflight (#8078)
* Make font weight inherit * Update snapshots * Update changelog Co-authored-by: Adam Wathan <[email protected]>
1 parent 34c1e36 commit 206f1d6

File tree

3 files changed

+156
-153
lines changed

3 files changed

+156
-153
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343
- Allow for custom properties in `rgb`, `rgba`, `hsl` and `hsla` colors ([#7933](https://github.com/tailwindlabs/tailwindcss/pull/7933))
4444
- Remove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed ([#7949](https://github.com/tailwindlabs/tailwindcss/pull/7949))
4545
- Ensure the `percentage` data type is validated correctly ([#8015](https://github.com/tailwindlabs/tailwindcss/pull/8015))
46+
- Make sure `font-weight` is inherited by form controls in all browsers ([#8078](https://github.com/tailwindlabs/tailwindcss/pull/8078))
4647

4748
### Changed
4849

src/css/preflight.css

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ select,
160160
textarea {
161161
font-family: inherit; /* 1 */
162162
font-size: 100%; /* 1 */
163+
font-weight: inherit; /* 1 */
163164
line-height: inherit; /* 1 */
164165
color: inherit; /* 1 */
165166
margin: 0; /* 2 */

tests/__snapshots__/source-maps.test.js.snap

+154-153
Original file line numberDiff line numberDiff line change
@@ -154,164 +154,165 @@ Array [
154154
"2:4-18 -> 163:2-30",
155155
"2:4-18 -> 164:2-25",
156156
"2:4-18 -> 165:2-30",
157-
"2:4-18 -> 166:2-24",
158-
"2:4-18 -> 167:2-19",
159-
"2:4-18 -> 168:2-20",
160-
"2:18 -> 169:0",
161-
"2:4 -> 171:0",
162-
"2:18 -> 173:1",
163-
"2:4 -> 175:0",
164-
"2:4-18 -> 177:2-22",
165-
"2:18 -> 178:0",
166-
"2:4 -> 180:0",
167-
"2:18 -> 183:1",
168-
"2:4 -> 185:0",
169-
"2:4-18 -> 189:2-36",
170-
"2:4-18 -> 190:2-39",
171-
"2:4-18 -> 191:2-32",
172-
"2:18 -> 192:0",
173-
"2:4 -> 194:0",
174-
"2:18 -> 196:1",
175-
"2:4 -> 198:0",
176-
"2:4-18 -> 199:2-15",
177-
"2:18 -> 200:0",
178-
"2:4 -> 202:0",
179-
"2:18 -> 204:1",
180-
"2:4 -> 206:0",
181-
"2:4-18 -> 207:2-18",
182-
"2:18 -> 208:0",
183-
"2:4 -> 210:0",
184-
"2:18 -> 212:1",
185-
"2:4 -> 214:0",
186-
"2:4-18 -> 215:2-26",
187-
"2:18 -> 216:0",
188-
"2:4 -> 218:0",
189-
"2:18 -> 220:1",
190-
"2:4 -> 222:0",
191-
"2:4-18 -> 224:2-14",
192-
"2:18 -> 225:0",
193-
"2:4 -> 227:0",
194-
"2:18 -> 230:1",
195-
"2:4 -> 232:0",
196-
"2:4-18 -> 233:2-39",
197-
"2:4-18 -> 234:2-30",
198-
"2:18 -> 235:0",
199-
"2:4 -> 237:0",
200-
"2:18 -> 239:1",
201-
"2:4 -> 241:0",
202-
"2:4-18 -> 242:2-26",
203-
"2:18 -> 243:0",
204-
"2:4 -> 245:0",
205-
"2:18 -> 248:1",
206-
"2:4 -> 250:0",
207-
"2:4-18 -> 251:2-36",
208-
"2:4-18 -> 252:2-23",
209-
"2:18 -> 253:0",
210-
"2:4 -> 255:0",
211-
"2:18 -> 257:1",
212-
"2:4 -> 259:0",
213-
"2:4-18 -> 260:2-20",
214-
"2:18 -> 261:0",
215-
"2:4 -> 263:0",
216-
"2:18 -> 265:1",
217-
"2:4 -> 267:0",
218-
"2:4-18 -> 280:2-11",
219-
"2:18 -> 281:0",
220-
"2:4 -> 283:0",
221-
"2:4-18 -> 284:2-11",
222-
"2:4-18 -> 285:2-12",
223-
"2:18 -> 286:0",
224-
"2:4 -> 288:0",
225-
"2:4-18 -> 289:2-12",
226-
"2:18 -> 290:0",
227-
"2:4 -> 292:0",
228-
"2:4-18 -> 295:2-18",
229-
"2:4-18 -> 296:2-11",
230-
"2:4-18 -> 297:2-12",
231-
"2:18 -> 298:0",
232-
"2:4 -> 300:0",
233-
"2:18 -> 302:1",
234-
"2:4 -> 304:0",
235-
"2:4-18 -> 305:2-18",
236-
"2:18 -> 306:0",
237-
"2:4 -> 308:0",
238-
"2:18 -> 311:1",
239-
"2:4 -> 313:0",
240-
"2:4-18 -> 315:2-20",
241-
"2:4-18 -> 316:2-24",
242-
"2:18 -> 317:0",
243-
"2:4 -> 319:0",
244-
"2:18 -> 321:1",
245-
"2:4 -> 323:0",
246-
"2:4-18 -> 325:2-17",
247-
"2:18 -> 326:0",
248-
"2:4 -> 328:0",
249-
"2:18 -> 330:1",
250-
"2:4 -> 331:0",
251-
"2:4-18 -> 332:2-17",
252-
"2:18 -> 333:0",
253-
"2:4 -> 335:0",
254-
"2:18 -> 339:1",
255-
"2:4 -> 341:0",
256-
"2:4-18 -> 349:2-24",
257-
"2:4-18 -> 350:2-32",
258-
"2:18 -> 351:0",
259-
"2:4 -> 353:0",
260-
"2:18 -> 355:1",
261-
"2:4 -> 357:0",
262-
"2:4-18 -> 359:2-17",
263-
"2:4-18 -> 360:2-14",
264-
"2:18 -> 361:0",
265-
"2:4 -> 363:0",
266-
"2:18 -> 365:1",
267-
"2:4 -> 367:0",
268-
"2:4-18 -> 368:2-15",
269-
"2:18 -> 369:0",
270-
"2:4 -> 371:0",
271-
"2:4-18 -> 372:2-26",
157+
"2:4-18 -> 166:2-30",
158+
"2:4-18 -> 167:2-24",
159+
"2:4-18 -> 168:2-19",
160+
"2:4-18 -> 169:2-20",
161+
"2:18 -> 170:0",
162+
"2:4 -> 172:0",
163+
"2:18 -> 174:1",
164+
"2:4 -> 176:0",
165+
"2:4-18 -> 178:2-22",
166+
"2:18 -> 179:0",
167+
"2:4 -> 181:0",
168+
"2:18 -> 184:1",
169+
"2:4 -> 186:0",
170+
"2:4-18 -> 190:2-36",
171+
"2:4-18 -> 191:2-39",
172+
"2:4-18 -> 192:2-32",
173+
"2:18 -> 193:0",
174+
"2:4 -> 195:0",
175+
"2:18 -> 197:1",
176+
"2:4 -> 199:0",
177+
"2:4-18 -> 200:2-15",
178+
"2:18 -> 201:0",
179+
"2:4 -> 203:0",
180+
"2:18 -> 205:1",
181+
"2:4 -> 207:0",
182+
"2:4-18 -> 208:2-18",
183+
"2:18 -> 209:0",
184+
"2:4 -> 211:0",
185+
"2:18 -> 213:1",
186+
"2:4 -> 215:0",
187+
"2:4-18 -> 216:2-26",
188+
"2:18 -> 217:0",
189+
"2:4 -> 219:0",
190+
"2:18 -> 221:1",
191+
"2:4 -> 223:0",
192+
"2:4-18 -> 225:2-14",
193+
"2:18 -> 226:0",
194+
"2:4 -> 228:0",
195+
"2:18 -> 231:1",
196+
"2:4 -> 233:0",
197+
"2:4-18 -> 234:2-39",
198+
"2:4-18 -> 235:2-30",
199+
"2:18 -> 236:0",
200+
"2:4 -> 238:0",
201+
"2:18 -> 240:1",
202+
"2:4 -> 242:0",
203+
"2:4-18 -> 243:2-26",
204+
"2:18 -> 244:0",
205+
"2:4 -> 246:0",
206+
"2:18 -> 249:1",
207+
"2:4 -> 251:0",
208+
"2:4-18 -> 252:2-36",
209+
"2:4-18 -> 253:2-23",
210+
"2:18 -> 254:0",
211+
"2:4 -> 256:0",
212+
"2:18 -> 258:1",
213+
"2:4 -> 260:0",
214+
"2:4-18 -> 261:2-20",
215+
"2:18 -> 262:0",
216+
"2:4 -> 264:0",
217+
"2:18 -> 266:1",
218+
"2:4 -> 268:0",
219+
"2:4-18 -> 281:2-11",
220+
"2:18 -> 282:0",
221+
"2:4 -> 284:0",
222+
"2:4-18 -> 285:2-11",
223+
"2:4-18 -> 286:2-12",
224+
"2:18 -> 287:0",
225+
"2:4 -> 289:0",
226+
"2:4-18 -> 290:2-12",
227+
"2:18 -> 291:0",
228+
"2:4 -> 293:0",
229+
"2:4-18 -> 296:2-18",
230+
"2:4-18 -> 297:2-11",
231+
"2:4-18 -> 298:2-12",
232+
"2:18 -> 299:0",
233+
"2:4 -> 301:0",
234+
"2:18 -> 303:1",
235+
"2:4 -> 305:0",
236+
"2:4-18 -> 306:2-18",
237+
"2:18 -> 307:0",
238+
"2:4 -> 309:0",
239+
"2:18 -> 312:1",
240+
"2:4 -> 314:0",
241+
"2:4-18 -> 316:2-20",
242+
"2:4-18 -> 317:2-24",
243+
"2:18 -> 318:0",
244+
"2:4 -> 320:0",
245+
"2:18 -> 322:1",
246+
"2:4 -> 324:0",
247+
"2:4-18 -> 326:2-17",
248+
"2:18 -> 327:0",
249+
"2:4 -> 329:0",
250+
"2:18 -> 331:1",
251+
"2:4 -> 332:0",
252+
"2:4-18 -> 333:2-17",
253+
"2:18 -> 334:0",
254+
"2:4 -> 336:0",
255+
"2:18 -> 340:1",
256+
"2:4 -> 342:0",
257+
"2:4-18 -> 350:2-24",
258+
"2:4-18 -> 351:2-32",
259+
"2:18 -> 352:0",
260+
"2:4 -> 354:0",
261+
"2:18 -> 356:1",
262+
"2:4 -> 358:0",
263+
"2:4-18 -> 360:2-17",
264+
"2:4-18 -> 361:2-14",
265+
"2:18 -> 362:0",
266+
"2:4 -> 364:0",
267+
"2:18 -> 366:1",
268+
"2:4 -> 368:0",
269+
"2:4-18 -> 369:2-15",
270+
"2:18 -> 370:0",
271+
"2:4 -> 372:0",
272272
"2:4-18 -> 373:2-26",
273-
"2:4-18 -> 374:2-21",
273+
"2:4-18 -> 374:2-26",
274274
"2:4-18 -> 375:2-21",
275-
"2:4-18 -> 376:2-16",
275+
"2:4-18 -> 376:2-21",
276276
"2:4-18 -> 377:2-16",
277277
"2:4-18 -> 378:2-16",
278-
"2:4-18 -> 379:2-17",
278+
"2:4-18 -> 379:2-16",
279279
"2:4-18 -> 380:2-17",
280-
"2:4-18 -> 381:2-15",
280+
"2:4-18 -> 381:2-17",
281281
"2:4-18 -> 382:2-15",
282-
"2:4-18 -> 383:2-20",
283-
"2:4-18 -> 384:2-40",
284-
"2:4-18 -> 385:2-17",
285-
"2:4-18 -> 386:2-22",
286-
"2:4-18 -> 387:2-24",
287-
"2:4-18 -> 388:2-25",
288-
"2:4-18 -> 389:2-26",
289-
"2:4-18 -> 390:2-20",
290-
"2:4-18 -> 391:2-29",
291-
"2:4-18 -> 392:2-30",
292-
"2:4-18 -> 393:2-40",
293-
"2:4-18 -> 394:2-36",
294-
"2:4-18 -> 395:2-29",
295-
"2:4-18 -> 396:2-24",
296-
"2:4-18 -> 397:2-32",
297-
"2:4-18 -> 398:2-14",
298-
"2:4-18 -> 399:2-20",
299-
"2:4-18 -> 400:2-18",
300-
"2:4-18 -> 401:2-19",
301-
"2:4-18 -> 402:2-20",
302-
"2:4-18 -> 403:2-16",
303-
"2:4-18 -> 404:2-18",
304-
"2:4-18 -> 405:2-15",
305-
"2:4-18 -> 406:2-21",
306-
"2:4-18 -> 407:2-23",
307-
"2:4-18 -> 408:2-29",
308-
"2:4-18 -> 409:2-27",
309-
"2:4-18 -> 410:2-28",
310-
"2:4-18 -> 411:2-29",
311-
"2:4-18 -> 412:2-25",
312-
"2:4-18 -> 413:2-26",
313-
"2:4-18 -> 414:2-27",
314-
"2:4 -> 415:2",
315-
"2:18 -> 416:0",
282+
"2:4-18 -> 383:2-15",
283+
"2:4-18 -> 384:2-20",
284+
"2:4-18 -> 385:2-40",
285+
"2:4-18 -> 386:2-17",
286+
"2:4-18 -> 387:2-22",
287+
"2:4-18 -> 388:2-24",
288+
"2:4-18 -> 389:2-25",
289+
"2:4-18 -> 390:2-26",
290+
"2:4-18 -> 391:2-20",
291+
"2:4-18 -> 392:2-29",
292+
"2:4-18 -> 393:2-30",
293+
"2:4-18 -> 394:2-40",
294+
"2:4-18 -> 395:2-36",
295+
"2:4-18 -> 396:2-29",
296+
"2:4-18 -> 397:2-24",
297+
"2:4-18 -> 398:2-32",
298+
"2:4-18 -> 399:2-14",
299+
"2:4-18 -> 400:2-20",
300+
"2:4-18 -> 401:2-18",
301+
"2:4-18 -> 402:2-19",
302+
"2:4-18 -> 403:2-20",
303+
"2:4-18 -> 404:2-16",
304+
"2:4-18 -> 405:2-18",
305+
"2:4-18 -> 406:2-15",
306+
"2:4-18 -> 407:2-21",
307+
"2:4-18 -> 408:2-23",
308+
"2:4-18 -> 409:2-29",
309+
"2:4-18 -> 410:2-27",
310+
"2:4-18 -> 411:2-28",
311+
"2:4-18 -> 412:2-29",
312+
"2:4-18 -> 413:2-25",
313+
"2:4-18 -> 414:2-26",
314+
"2:4-18 -> 415:2-27",
315+
"2:4 -> 416:2",
316+
"2:18 -> 417:0",
316317
]
317318
`;

0 commit comments

Comments
 (0)