これは、いくぶん長い HTML 段落であり、何行かに分断される。 最初の行は、 ::first-line によりスタイルされる。 他の行は、段落内の普通の行として扱われることになる。

This is a somewhat long HTML paragraph that will be broken into several lines. The first line will be styled by the ‘::first-line’ pseudo-element. The other lines will be treated as ordinary lines in the paragraph. ■first-text-line-1

Hello
Goodbye etcetera

Hello
Goodbye etcetera ■first-text-line-2

最初の段落

二番目の段落

First paragraph

Second paragraph ■first-text-line-3

>最初の段落<>

>二番目の段落<>

First paragraph

Second paragraph ■first-line-inheritance-1

>これは、いくぶん長い HTML 段落であり、何行<>かに分断される。 最初の行は、 ::first-line によりスタイルされる。 他の行は、段落内の普通の行として扱われることになる。

This is a somewhat long HTML paragraph that will be broken into several lines. The first line will be styled by the ‘::first-line’ pseudo-element. The other lines will be treated as ordinary lines in the paragraph. ■first-line-inheritance-2

>これは、いくぶん長い HTML <>段落であり、何行かに分断される。 最初の行は、 ::first-line によりスタイルされる。 他の行は、段落内の普通の行として扱われることになる。

This is a somewhat long HTML paragraph that will be broken into several lines. The first line will be styled by the ‘::first-line’ pseudo-element. The other lines will be treated as ordinary lines in the paragraph. ■first-line-inheritance-3

>これは、いくぶん長い HTML 段落であり、何行かに分断される。<> 最初の行は、 ::first-line によりスタイルされる。 他の行は、段落内の普通の行として扱われることになる。

This is a somewhat long HTML paragraph that will be broken into several lines. The first line will be styled by the ‘::first-line’ pseudo-element. The other lines will be treated as ordinary lines in the paragraph. ■first-line-inheritance-4

>これは、いくぶん長い HTML 段落であり、何行<>かに分断される。<> 最初の行は、 ::first-line によりスタイルされる。 他の行は、段落内の普通の行として扱われることになる。

This is a somewhat long HTML paragraph that will be broken into several lines. The first line will be styled by the ‘::first-line’ pseudo-element. The other lines will be treated as ordinary lines in the paragraph. ■first-letter-application-1

Hello
Goodbye etcetera

Hello
Goodbye etcetera ■first-letter-tree-1

最初の数個の単語 と段落の残りの内容。

The first few words and the rest of the paragraph. ■first-letter-tree-2

>最<>初の数個の単語 と段落の残りの内容。

The first few words and the rest of the paragraph. ■first-letter-tree-3

最初の数個の単語 と段落の残りの内容。

“The first few words and the rest of the quotation. ■first-letter-tree-4

>“<>最初の数個の単語 と段落の残りの内容。

The first few words and the rest of the paragraph. ■highlight-cascade-1

これとこれを強調します。

Highlight this and this. ■highlight-cascade-2

あるとても重要な情報

Some very important information ■interactions-1

このテキストは、一行に収まらない。 Some text that ends up on two lines ■interactions-2

こ のテキストは、一行に 収まらない。

S ome text that ends up on two lines ●●ref_normative [COMPAT] Mike Taylor. <Compatibility Standard>. Living Standard. URL: https://compat.spec.whatwg.org/ [CSS-BACKGROUNDS-3] Elika Etemad; Brad Kemper. <CSS Backgrounds and Borders Module Level 3>. URL: https://drafts.csswg.org/css-backgrounds/ [CSS-BREAK-4] Rossen Atanassov; Elika Etemad. <CSS Fragmentation Module Level 4>. URL: https://drafts.csswg.org/css-break-4/ [CSS-CASCADE-5] Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 5>. URL: https://drafts.csswg.org/css-cascade-5/ [CSS-CASCADE-6] Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 6>. URL: https://drafts.csswg.org/css-cascade-6/ [CSS-COLOR-4] Chris Lilley; Tab Atkins Jr.; Lea Verou. <CSS Color Module Level 4>. URL: https://drafts.csswg.org/css-color-4/ [CSS-COLOR-ADJUST-1] Elika Etemad; et al. <CSS Color Adjustment Module Level 1>. URL: https://drafts.csswg.org/css-color-adjust-1/ [CSS-CONTENT-3] Elika Etemad; Dave Cramer. <CSS Generated Content Module Level 3>. URL: https://drafts.csswg.org/css-content-3/ [CSS-DISPLAY-4] Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 4>. URL: https://drafts.csswg.org/css-display/ [CSS-FONTS-4] Chris Lilley. <CSS Fonts Module Level 4>. URL: https://drafts.csswg.org/css-fonts-4/ [CSS-HIGHLIGHT-API-1] Florian Rivoal; Sanket Joshi; Megan Gardner. <CSS Custom Highlight API Module Level 1>. URL: https://drafts.csswg.org/css-highlight-api-1/ [CSS-INLINE-3] Elika Etemad. <CSS Inline Layout Module Level 3>. URL: https://drafts.csswg.org/css-inline-3/ [CSS-LISTS-3] Elika Etemad; Tab Atkins Jr.. <CSS Lists and Counters Module Level 3>. URL: https://drafts.csswg.org/css-lists-3/ [CSS-MULTICOL-2] Florian Rivoal; Rachel Andrew. <CSS Multi-column Layout Module Level 2>. URL: https://drafts.csswg.org/css-multicol-2/ [CSS-RUBY-1] Elika Etemad; et al. <CSS Ruby Annotation Layout Module Level 1>. URL: https://drafts.csswg.org/css-ruby-1/ [CSS-SCOPING-1] Tab Atkins Jr.; Elika Etemad. <CSS Scoping Module Level 1>. URL: https://drafts.csswg.org/css-scoping/ [CSS-SHADOW-PARTS-1] Tab Atkins Jr.; Fergal Daly. <CSS Shadow Parts>. URL: https://drafts.csswg.org/css-shadow-parts/ [CSS-SYNTAX-3] Tab Atkins Jr.; Simon Sapin. <CSS Syntax Module Level 3>. URL: https://drafts.csswg.org/css-syntax/ [CSS-TABLES-3] François Remy; Greg Whitworth; David Baron. <CSS Table Module Level 3>. URL: https://drafts.csswg.org/css-tables-3/ [CSS-TEXT-3] Elika Etemad; Koji Ishii; Florian Rivoal. <CSS Text Module Level 3>. URL: https://drafts.csswg.org/css-text-3/ [CSS-TEXT-4] Elika Etemad; et al. <CSS Text Module Level 4>. URL: https://drafts.csswg.org/css-text-4/ [CSS-TEXT-DECOR-4] Elika Etemad; Koji Ishii. <CSS Text Decoration Module Level 4>. URL: https://drafts.csswg.org/css-text-decor-4/ [CSS-UI-4] Florian Rivoal. <CSS Basic User Interface Module Level 4>. URL: https://drafts.csswg.org/css-ui-4/ [CSS-VALUES-4] Tab Atkins Jr.; Elika Etemad. <CSS Values and Units Module Level 4>. URL: https://drafts.csswg.org/css-values-4/ [CSS-VARIABLES-1] Tab Atkins Jr.. <CSS Custom Properties for Cascading Variables Module Level 1>. URL: https://drafts.csswg.org/css-variables/ [CSS-VARIABLES-2] <CSS Custom Properties for Cascading Variables Module Level 2>. Editor's Draft. URL: https://drafts.csswg.org/css-variables-2/ [CSS-WRITING-MODES-3] Elika Etemad; Koji Ishii. <CSS Writing Modes Level 3>. URL: https://drafts.csswg.org/css-writing-modes-3/ [CSS-WRITING-MODES-4] Elika Etemad; Koji Ishii. <CSS Writing Modes Level 4>. URL: https://drafts.csswg.org/css-writing-modes-4/ [CSS2] Bert Bos; et al. <Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification>. URL: https://drafts.csswg.org/css2/ [CSSOM-1] Daniel Glazman; Emilio Cobos Álvarez. <CSS Object Model (CSSOM)>. URL: https://drafts.csswg.org/cssom/ [DOM] Anne van Kesteren. <DOM Standard>. Living Standard. URL: https://dom.spec.whatwg.org/ [FILL-STROKE-3] Elika Etemad; Tab Atkins Jr.. <CSS Fill and Stroke Module Level 3>. URL: https://drafts.fxtf.org/fill-stroke/ [HTML] Anne van Kesteren; et al. <HTML Standard>. Living Standard. URL: https://html.spec.whatwg.org/multipage/ [RFC2119] S. Bradner. <Key words for use in RFCs to Indicate Requirement Levels>. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119 [SELECTORS-4] Elika Etemad; Tab Atkins Jr.. <Selectors Level 4>. URL: https://drafts.csswg.org/selectors/ [UAX44] Ken Whistler. <Unicode Character Database>. 27 August 2024. Unicode Standard Annex #44. URL: https://www.unicode.org/reports/tr44/tr44-34.html [URL] Anne van Kesteren. <URL Standard>. Living Standard. URL: https://url.spec.whatwg.org/ [WEBIDL] Edgar Chen; Timothy Gu. <Web IDL Standard>. Living Standard. URL: https://webidl.spec.whatwg.org/ ●●ref_informative [CSS-BACKGROUNDS-4] Bert Bos; Elika J. Etemad; Lea Verou. <CSS Backgrounds and Borders Module Level 4>. Proposal for a CSS module. URL: https://drafts.csswg.org/css-backgrounds-4/ [CSS-CASCADE-4] Elika Etemad; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 4>. URL: https://drafts.csswg.org/css-cascade-4/ [CSS-DISPLAY-3] Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 3>. URL: https://drafts.csswg.org/css-display/ [CSS22] Bert Bos. <Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification>. URL: https://drafts.csswg.org/css2/ [HTML5] Ian Hickson; et al. <HTML5>. 27 March 2018. REC. URL: https://www.w3.org/TR/html5/ [SELECTORS-3] Tantek Çelik; et al. <Selectors Level 3>. URL: https://drafts.csswg.org/selectors-3/ [UAX29] Josh Hadley. <Unicode Text Segmentation>. 28 August 2024. Unicode Standard Annex #29. URL: https://www.unicode.org/reports/tr29/tr29-45.html [WEB-ANIMATIONS-1] Brian Birtles; et al. <Web Animations>. URL: https://drafts.csswg.org/web-animations-1/ ●●trans_metadata

~THIS_PAGEは、~W3Cにより編集者草案として公開された CSS Pseudo-Elements Module Level 4 を日本語に翻訳したものです。 ~PUB ●●spec_metadata 最新公表バージョン https://www.w3.org/TR/css-pseudo-4/ 公表履歴 https://www.w3.org/standards/history/css-pseudo-4/ フィードバック CSSWG Issues Repository 編集 Daniel Glazman (Disruptive Innovations) Elika J. Etemad / fantasai (Apple) Alan Stearns (Adobe Systems Inc.) Suggest an Edit for this Spec GitHub Editor テスト一式 https://wpt.fyi/results/css/css-pseudo/ commit 履歴 https://github.com/w3c/csswg-drafts/commits/main/css-pseudo-4

疑似要素 — CSS Pseudo-Elements Module Level 4