回答編集履歴

1

追記

2019/11/24 09:00

投稿

s8_chu
s8_chu

スコア14731

test CHANGED
@@ -1,4 +1,14 @@
1
- `ins` 要素の終了タグがないことで、 `ins` 要素がセクション全体を囲んでいるからです。`ins` 要素にはユーザーエージェントスタイルシートによって `text-decoration: underline` が指定されており、これが子孫要素にまで影響しています。を修正すると、以下のようになります ([動作確認用リンク](https://jsfiddle.net/8p5Ldsz0/))
1
+ `ins` 要素の終了タグがないことで、 **`ins` 要素がセクション全体を囲んでいるから**です。`ins` 要素にはユーザーエージェントスタイルシートによって `text-decoration: underline` が指定されており、これが子孫要素にまで影響しています。`text-decoration` プロパティは**継承さませんが、その影響は子孫全体へ及び**ま。そのため、質問文にあように「どこにも線にするため指定がない」ように見えます。
2
+
3
+
4
+
5
+ > ## [§ 2. Line Decoration: Underline, Overline, and Strike-Through](https://drafts.csswg.org/css-text-decor-3/#line-decoration)
6
+
7
+ > When specified on or propagated to an inline box, that box becomes a decorating box for that decoration, applying the decoration to all its fragments. The decoration is then further propagated to any in-flow block-level boxes that split the inline (see CSS2.1 section 9.2.1.1). When specified on or propagated to a block container that establishes an inline formatting context, the decorations are propagated to an anonymous inline box that wraps all the in-flow inline-level children of the block container. When specified on or propagated to a ruby container, the decorations are propagated only to the ruby base. For all other box types, the decorations are propagated to all in-flow children.
8
+
9
+
10
+
11
+ これを修正すると、以下のようになります ([動作確認用リンク](https://jsfiddle.net/8p5Ldsz0/))。
2
12
 
3
13
 
4
14