Skip to content

Commit

Permalink
Make font weight inherit in preflight (#8078)
Browse files Browse the repository at this point in the history
* Make font weight inherit

* Update snapshots

* Update changelog

Co-authored-by: Adam Wathan <[email protected]>
  • Loading branch information
bakura10 and adamwathan authored Apr 15, 2022
1 parent 34c1e36 commit 206f1d6
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 153 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Allow for custom properties in `rgb`, `rgba`, `hsl` and `hsla` colors ([#7933](https://github.com/tailwindlabs/tailwindcss/pull/7933))
- 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))
- Ensure the `percentage` data type is validated correctly ([#8015](https://github.com/tailwindlabs/tailwindcss/pull/8015))
- Make sure `font-weight` is inherited by form controls in all browsers ([#8078](https://github.com/tailwindlabs/tailwindcss/pull/8078))

### Changed

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

0 comments on commit 206f1d6

Please sign in to comment.