質問編集履歴

1

エラーの発生個所をすべて載せていなかった

2022/10/23 15:22

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,8 @@
4
4
  上記のサイトの下にあるDownloadからcssファイルをダウンロードしましたが、-webkit-appearanceという宣言にエラーが発生し、反映されませんでした。
5
5
  プロパティが非標準ですという意味合いのエラーメッセージが出ているのですが、何も変更をしていないので正直原因がよくわかっていない状態です。
6
6
  この問題が自分の環境が原因なのかよく分からなかったため、解決策を知りたいです。
7
+
8
+ エディターはVSCodeを使用しています。
7
9
 
8
10
 
9
11
  ### 実現したいこと
@@ -40,6 +42,34 @@
40
42
  [type="submit"] {
41
43
  -webkit-appearance: button;
42
44
  }
45
+
46
+ /**
47
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
48
+ * 2. Correct the outline style in Safari.
49
+ */
50
+
51
+ [type="search"] {
52
+ -webkit-appearance: textfield; /* 1 */
53
+ outline-offset: -2px; /* 2 */
54
+ }
55
+
56
+ /**
57
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
58
+ */
59
+
60
+ ::-webkit-search-decoration {
61
+ -webkit-appearance: none;
62
+ }
63
+
64
+ /**
65
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
66
+ * 2. Change font properties to `inherit` in Safari.
67
+ */
68
+
69
+ ::-webkit-file-upload-button {
70
+ -webkit-appearance: button; /* 1 */
71
+ font: inherit; /* 2 */
72
+ }
43
73
  ```
44
74
 
45
75