From 4114072fddfcc70955d182fa5103f27668f1a674 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 3 Jan 2022 12:13:41 +0900 Subject: 2021/08/13 時点の英語版に同期 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ja/web/css/_doublecolon_grammar-error/index.md | 116 +++++++++------------ 1 file changed, 51 insertions(+), 65 deletions(-) (limited to 'files/ja/web') diff --git a/files/ja/web/css/_doublecolon_grammar-error/index.md b/files/ja/web/css/_doublecolon_grammar-error/index.md index 94d0b33805..c7e6c1c2c7 100644 --- a/files/ja/web/css/_doublecolon_grammar-error/index.md +++ b/files/ja/web/css/_doublecolon_grammar-error/index.md @@ -1,85 +1,71 @@ --- title: '::grammar-error' -slug: 'Web/CSS/::grammar-error' +slug: Web/CSS/::grammar-error tags: - CSS - - Experimental - - Pseudo-element - - Reference - - Selector -translation_of: 'Web/CSS/::grammar-error' + - 実験的 + - 擬似要素 + - リファレンス + - セレクター +browser-compat: css.selectors.grammar-error +translation_of: Web/CSS/::grammar-error --- -
{{CSSRef}}{{SeeCompatTable}}
+{{CSSRef}}{{SeeCompatTable}} -

::grammar-errorCSS擬似要素で、{{glossary("user agent", "ユーザーエージェント")}}が文法的に正しくないとしたテキストの区間を示します。

+**`::grammar-error`** は [CSS](/ja/docs/Web/CSS) の[擬似要素](/ja/docs/Web/CSS/Pseudo-elements)で、{{glossary("user agent", "ユーザーエージェント")}}が文法的に正しくないとしたテキストの区間を示します。 -

利用できるプロパティ

+## 利用できるプロパティ -

::grammar-error 擬似要素では、一部の CSS プロパティのみが利用できます。

+`::grammar-error` 擬似要素では、一部の CSS プロパティのみが利用できます。 - +- {{cssxref("color")}} +- {{cssxref("background-color")}} +- {{cssxref("cursor")}} +- {{cssxref("caret-color")}} +- {{cssxref("outline")}} およびその個別指定プロパティ +- {{cssxref("text-decoration")}} および関連プロパティ +- {{cssxref("text-emphasis-color")}} +- {{cssxref("text-shadow")}} -

構文

+## 構文 -
::grammar-error
+```css +::grammar-error +``` -

+## 例 -

単純な文書の構文チェック

+### 単純な文書の文法チェック -

この例では、最終的に対応しているブラウザーでは、フラグの立った文法エラーがあれば、示したスタイルで強調表示されます。

+この例では、最終的に対応しているブラウザーでは、フラグの立った文法エラーがあれば、示したスタイルで強調表示されます。 -

HTML

+#### HTML -
<p>My friends is coming to the party tonight.</p>
+```html +

My friends is coming to the party tonight.

+``` -

CSS

+#### CSS -
::grammar-error  {
+```css
+::grammar-error  {
   text-decoration: underline red;
   color: red;
-}
- -

結果

- -

{{EmbedLiveSample('Simple_document_grammar_check', '100%', 60)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS4 Pseudo-Elements', '#selectordef-grammar-error', '::grammar-error')}}{{Spec2('CSS4 Pseudo-Elements')}}初回定義
- -

ブラウザーの互換性

- -
-

{{Compat("css.selectors.grammar-error")}}

-
- -

関連情報

- - +} +``` + +#### 結果 + +{{EmbedLiveSample('Simple_document_grammar_check', '100%', 60)}} + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{cssxref("::spelling-error")}} -- cgit v1.2.3-54-g00ecf