Skip to content

Commit

Permalink
Remove default [hidden] style in preflight (#8248)
Browse files Browse the repository at this point in the history
* Remove default `[hidden]` style in preflight

* Update snapshots

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
  • Loading branch information
stefanr and thecrypticace committed May 2, 2022
1 parent 85b8e44 commit c3381d9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 58 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix intellisense for plugins with multiple `@apply` rules ([#8213](https://github.com/tailwindlabs/tailwindcss/pull/8213))
- Improve type detection for arbitrary color values ([#8201](https://github.com/tailwindlabs/tailwindcss/pull/8201))
- Support PostCSS config options in config file in CLI ([#8226](https://github.com/tailwindlabs/tailwindcss/pull/8226))
- Remove default `[hidden]` style in preflight ([#8248](https://github.com/tailwindlabs/tailwindcss/pull/8248))

### Added

Expand Down
8 changes: 0 additions & 8 deletions src/css/preflight.css
Expand Up @@ -358,11 +358,3 @@ video {
max-width: 100%;
height: auto;
}

/*
Ensure the default browser behavior of the `hidden` attribute.
*/

[hidden] {
display: none;
}
95 changes: 45 additions & 50 deletions tests/__snapshots__/source-maps.test.js.snap
Expand Up @@ -264,55 +264,50 @@ Array [
"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-26",
"2:4-18 -> 375:2-21",
"2:4-18 -> 376:2-21",
"2:4-18 -> 377:2-16",
"2:4-18 -> 378:2-16",
"2:4-18 -> 379:2-16",
"2:4-18 -> 380:2-17",
"2:4-18 -> 381:2-17",
"2:4-18 -> 382:2-15",
"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",
"2:4-18 -> 365:2-26",
"2:4-18 -> 366:2-26",
"2:4-18 -> 367:2-21",
"2:4-18 -> 368:2-21",
"2:4-18 -> 369:2-16",
"2:4-18 -> 370:2-16",
"2:4-18 -> 371:2-16",
"2:4-18 -> 372:2-17",
"2:4-18 -> 373:2-17",
"2:4-18 -> 374:2-15",
"2:4-18 -> 375:2-15",
"2:4-18 -> 376:2-20",
"2:4-18 -> 377:2-40",
"2:4-18 -> 378:2-17",
"2:4-18 -> 379:2-22",
"2:4-18 -> 380:2-24",
"2:4-18 -> 381:2-25",
"2:4-18 -> 382:2-26",
"2:4-18 -> 383:2-20",
"2:4-18 -> 384:2-29",
"2:4-18 -> 385:2-30",
"2:4-18 -> 386:2-40",
"2:4-18 -> 387:2-36",
"2:4-18 -> 388:2-29",
"2:4-18 -> 389:2-24",
"2:4-18 -> 390:2-32",
"2:4-18 -> 391:2-14",
"2:4-18 -> 392:2-20",
"2:4-18 -> 393:2-18",
"2:4-18 -> 394:2-19",
"2:4-18 -> 395:2-20",
"2:4-18 -> 396:2-16",
"2:4-18 -> 397:2-18",
"2:4-18 -> 398:2-15",
"2:4-18 -> 399:2-21",
"2:4-18 -> 400:2-23",
"2:4-18 -> 401:2-29",
"2:4-18 -> 402:2-27",
"2:4-18 -> 403:2-28",
"2:4-18 -> 404:2-29",
"2:4-18 -> 405:2-25",
"2:4-18 -> 406:2-26",
"2:4-18 -> 407:2-27",
"2:4 -> 408:2",
"2:18 -> 409:0",
]
`;

0 comments on commit c3381d9

Please sign in to comment.