Skip to content

Commit c3381d9

Browse files
Remove default [hidden] style in preflight (#8248)
* Remove default `[hidden]` style in preflight * Update snapshots * Update changelog Co-authored-by: Jordan Pittman <[email protected]>
1 parent 85b8e44 commit c3381d9

File tree

3 files changed

+46
-58
lines changed

3 files changed

+46
-58
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Fix intellisense for plugins with multiple `@apply` rules ([#8213](https://github.com/tailwindlabs/tailwindcss/pull/8213))
1818
- Improve type detection for arbitrary color values ([#8201](https://github.com/tailwindlabs/tailwindcss/pull/8201))
1919
- Support PostCSS config options in config file in CLI ([#8226](https://github.com/tailwindlabs/tailwindcss/pull/8226))
20+
- Remove default `[hidden]` style in preflight ([#8248](https://github.com/tailwindlabs/tailwindcss/pull/8248))
2021

2122
### Added
2223

src/css/preflight.css

-8
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,3 @@ video {
358358
max-width: 100%;
359359
height: auto;
360360
}
361-
362-
/*
363-
Ensure the default browser behavior of the `hidden` attribute.
364-
*/
365-
366-
[hidden] {
367-
display: none;
368-
}

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

+45-50
Original file line numberDiff line numberDiff line change
@@ -264,55 +264,50 @@ Array [
264264
"2:4-18 -> 361:2-14",
265265
"2:18 -> 362:0",
266266
"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",
272-
"2:4-18 -> 373:2-26",
273-
"2:4-18 -> 374:2-26",
274-
"2:4-18 -> 375:2-21",
275-
"2:4-18 -> 376:2-21",
276-
"2:4-18 -> 377:2-16",
277-
"2:4-18 -> 378:2-16",
278-
"2:4-18 -> 379:2-16",
279-
"2:4-18 -> 380:2-17",
280-
"2:4-18 -> 381:2-17",
281-
"2:4-18 -> 382:2-15",
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",
267+
"2:4-18 -> 365:2-26",
268+
"2:4-18 -> 366:2-26",
269+
"2:4-18 -> 367:2-21",
270+
"2:4-18 -> 368:2-21",
271+
"2:4-18 -> 369:2-16",
272+
"2:4-18 -> 370:2-16",
273+
"2:4-18 -> 371:2-16",
274+
"2:4-18 -> 372:2-17",
275+
"2:4-18 -> 373:2-17",
276+
"2:4-18 -> 374:2-15",
277+
"2:4-18 -> 375:2-15",
278+
"2:4-18 -> 376:2-20",
279+
"2:4-18 -> 377:2-40",
280+
"2:4-18 -> 378:2-17",
281+
"2:4-18 -> 379:2-22",
282+
"2:4-18 -> 380:2-24",
283+
"2:4-18 -> 381:2-25",
284+
"2:4-18 -> 382:2-26",
285+
"2:4-18 -> 383:2-20",
286+
"2:4-18 -> 384:2-29",
287+
"2:4-18 -> 385:2-30",
288+
"2:4-18 -> 386:2-40",
289+
"2:4-18 -> 387:2-36",
290+
"2:4-18 -> 388:2-29",
291+
"2:4-18 -> 389:2-24",
292+
"2:4-18 -> 390:2-32",
293+
"2:4-18 -> 391:2-14",
294+
"2:4-18 -> 392:2-20",
295+
"2:4-18 -> 393:2-18",
296+
"2:4-18 -> 394:2-19",
297+
"2:4-18 -> 395:2-20",
298+
"2:4-18 -> 396:2-16",
299+
"2:4-18 -> 397:2-18",
300+
"2:4-18 -> 398:2-15",
301+
"2:4-18 -> 399:2-21",
302+
"2:4-18 -> 400:2-23",
303+
"2:4-18 -> 401:2-29",
304+
"2:4-18 -> 402:2-27",
305+
"2:4-18 -> 403:2-28",
306+
"2:4-18 -> 404:2-29",
307+
"2:4-18 -> 405:2-25",
308+
"2:4-18 -> 406:2-26",
309+
"2:4-18 -> 407:2-27",
310+
"2:4 -> 408:2",
311+
"2:18 -> 409:0",
317312
]
318313
`;

0 commit comments

Comments
 (0)