Commit a2c4490 1 parent ea3892f commit a2c4490 Copy full SHA for a2c4490
File tree 4 files changed +60
-24
lines changed
4 files changed +60
-24
lines changed Original file line number Diff line number Diff line change @@ -507,11 +507,20 @@ samp {
507
507
}
508
508
509
509
/**
510
- * Make replaced elements `display: block` by default as that's
511
- * the behavior you want almost all of the time. Inspired by
512
- * CSS Remedy, with `svg` added as well.
510
+ * 1. Make replaced elements `display: block` by default as that's
511
+ * the behavior you want almost all of the time. Inspired by
512
+ * CSS Remedy, with `svg` added as well.
513
513
*
514
- * https://github.com/mozdevs/cssremedy/issues/14
514
+ * https://github.com/mozdevs/cssremedy/issues/14
515
+ *
516
+ * 2. Add `vertical-align: middle` to align replaced elements more
517
+ * sensibly by default when overriding `display` by adding a
518
+ * utility like `inline`.
519
+ *
520
+ * This can trigger a poorly considered linting error in some
521
+ * tools but is included by design.
522
+ *
523
+ * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
515
524
*/
516
525
517
526
img,
@@ -522,8 +531,8 @@ audio,
522
531
iframe,
523
532
embed,
524
533
object {
525
- display: block;
526
- vertical-align: middle;
534
+ display: block; /* 1 */
535
+ vertical-align: middle; /* 2 */
527
536
}
528
537
529
538
/**
Original file line number Diff line number Diff line change @@ -507,11 +507,20 @@ samp {
507
507
}
508
508
509
509
/**
510
- * Make replaced elements `display: block` by default as that's
511
- * the behavior you want almost all of the time. Inspired by
512
- * CSS Remedy, with `svg` added as well.
510
+ * 1. Make replaced elements `display: block` by default as that's
511
+ * the behavior you want almost all of the time. Inspired by
512
+ * CSS Remedy, with `svg` added as well.
513
513
*
514
- * https://github.com/mozdevs/cssremedy/issues/14
514
+ * https://github.com/mozdevs/cssremedy/issues/14
515
+ *
516
+ * 2. Add `vertical-align: middle` to align replaced elements more
517
+ * sensibly by default when overriding `display` by adding a
518
+ * utility like `inline`.
519
+ *
520
+ * This can trigger a poorly considered linting error in some
521
+ * tools but is included by design.
522
+ *
523
+ * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
515
524
*/
516
525
517
526
img,
@@ -522,8 +531,8 @@ audio,
522
531
iframe,
523
532
embed,
524
533
object {
525
- display: block;
526
- vertical-align: middle;
534
+ display: block; /* 1 */
535
+ vertical-align: middle; /* 2 */
527
536
}
528
537
529
538
/**
Original file line number Diff line number Diff line change @@ -507,11 +507,20 @@ samp {
507
507
}
508
508
509
509
/**
510
- * Make replaced elements `display: block` by default as that's
511
- * the behavior you want almost all of the time. Inspired by
512
- * CSS Remedy, with `svg` added as well.
510
+ * 1. Make replaced elements `display: block` by default as that's
511
+ * the behavior you want almost all of the time. Inspired by
512
+ * CSS Remedy, with `svg` added as well.
513
513
*
514
- * https://github.com/mozdevs/cssremedy/issues/14
514
+ * https://github.com/mozdevs/cssremedy/issues/14
515
+ *
516
+ * 2. Add `vertical-align: middle` to align replaced elements more
517
+ * sensibly by default when overriding `display` by adding a
518
+ * utility like `inline`.
519
+ *
520
+ * This can trigger a poorly considered linting error in some
521
+ * tools but is included by design.
522
+ *
523
+ * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
515
524
*/
516
525
517
526
img,
@@ -522,8 +531,8 @@ audio,
522
531
iframe,
523
532
embed,
524
533
object {
525
- display: block;
526
- vertical-align: middle;
534
+ display: block; /* 1 */
535
+ vertical-align: middle; /* 2 */
527
536
}
528
537
529
538
/**
Original file line number Diff line number Diff line change @@ -507,11 +507,20 @@ samp {
507
507
}
508
508
509
509
/**
510
- * Make replaced elements `display: block` by default as that's
511
- * the behavior you want almost all of the time. Inspired by
512
- * CSS Remedy, with `svg` added as well.
510
+ * 1. Make replaced elements `display: block` by default as that's
511
+ * the behavior you want almost all of the time. Inspired by
512
+ * CSS Remedy, with `svg` added as well.
513
513
*
514
- * https://github.com/mozdevs/cssremedy/issues/14
514
+ * https://github.com/mozdevs/cssremedy/issues/14
515
+ *
516
+ * 2. Add `vertical-align: middle` to align replaced elements more
517
+ * sensibly by default when overriding `display` by adding a
518
+ * utility like `inline`.
519
+ *
520
+ * This can trigger a poorly considered linting error in some
521
+ * tools but is included by design.
522
+ *
523
+ * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
515
524
*/
516
525
517
526
img,
@@ -522,8 +531,8 @@ audio,
522
531
iframe,
523
532
embed,
524
533
object {
525
- display: block;
526
- vertical-align: middle;
534
+ display: block; /* 1 */
535
+ vertical-align: middle; /* 2 */
527
536
}
528
537
529
538
/**
You can’t perform that action at this time.
0 commit comments