回答編集履歴

1

ネタを追記

2020/11/19 08:40

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36117

test CHANGED
@@ -13,3 +13,35 @@
13
13
  target.style.fontSize = getComputedStyle(target).height;
14
14
 
15
15
  ```
16
+
17
+
18
+
19
+ ---
20
+
21
+
22
+
23
+ JavaScript ではなくて、置換要素を使う方法でやってみました。
24
+
25
+
26
+
27
+ [サンプル](https://jsfiddle.net/Lhankor_Mhy/0xp5mq7c/)
28
+
29
+
30
+
31
+ ```html
32
+
33
+ <object type="text/html" class="box1"
34
+
35
+ data="data:text/html,<html><style>*{margin:0}body{font-size:100vh;line-height:1;overflow:hidden}</style><body>A</body></html>"
36
+
37
+ >
38
+
39
+ </object>
40
+
41
+ ```
42
+
43
+
44
+
45
+ え? もっとトリッキーだからダメ?
46
+
47
+ デスヨネー