Skip to content

Commit ecae98c

Browse files
[css-conditional-5] Size query containers and box tree re-ordering w3c/csswg-drafts@abdb55d
1 parent a9041a6 commit ecae98c

1 file changed

Lines changed: 76 additions & 39 deletions

File tree

css-conditional5-ja.html

Lines changed: 76 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@
137137
●●options
138138

139139
spec_title:CSS Conditional Rules Module Level 5
140-
spec_date:2026-01-14
141-
trans_update:2026-01-16
140+
spec_date:2026-03-18
141+
trans_update:2026-03-19
142142
source_checked:240617
143143
page_state_key:CSS
144144
original_url:https://drafts.csswg.org/css-conditional-5/
@@ -264,9 +264,10 @@
264264
pe.marker:~CSSPSEUDO#selectordef-marker
265265
pe.part():~CSSSHADOW#selectordef-part
266266
pe.placeholder:~CSSFORMS#selectordef-placeholder
267+
pe.scroll-marker-group:~CSSOVERFLOW5#selectordef-scroll-marker-group
268+
pe.scroll-button():~CSSOVERFLOW5#selectordef-scroll-button---scroll-button-direction
267269
pe.slotted():~CSSSHADOW#selectordef-slotted
268270

269-
270271
t.angle:~CSSVAL#angle-value
271272
t.at-keyword-token:~CSSSYN#typedef-at-keyword-token
272273
t.block-contents:~CSSSYN#typedef-block-contents
@@ -509,6 +510,7 @@
509510
SCROLL-ANIM:https://drafts.csswg.org/scroll-animations-1/
510511
CSSSCROLLSNAP2:https://drafts.csswg.org/css-scroll-snap-2/
511512
CSSEXT:https://drafts.csswg.org/css-extensions-1/
513+
CSSOVERFLOW5:https://drafts.csswg.org/css-overflow-5/
512514

513515
inline-size0:inline-size
514516

@@ -756,80 +758,82 @@
756758
●●ref_normative
757759

758760
[CSS-ANIMATIONS-1]
759-
David Baron; et al. <CSS Animations Level 1. URL: https://drafts.csswg.org/css-animations/
761+
David Baron; et al. <CSS Animations Level 1. 2 March 2023. WD. URL: https://www.w3.org/TR/css-animations-1/
760762
[CSS-BOX-4]
761-
Elika Etemad. <CSS Box Model Module Level 4. URL: https://drafts.csswg.org/css-box-4/
763+
Elika Etemad. <CSS Box Model Module Level 4. 4 August 2024. WD. URL: https://www.w3.org/TR/css-box-4/
762764
[CSS-CASCADE-4]
763-
Elika Etemad; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 4. URL: https://drafts.csswg.org/css-cascade-4/
765+
Elika Etemad; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 4. 13 January 2022. CR. URL: https://www.w3.org/TR/css-cascade-4/
764766
[CSS-CASCADE-5]
765-
Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 5. URL: https://drafts.csswg.org/css-cascade-5/
767+
Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 5. 13 January 2022. CR. URL: https://www.w3.org/TR/css-cascade-5/
766768
[CSS-CONDITIONAL-3]
767-
Chris Lilley; David Baron; Elika Etemad. <CSS Conditional Rules Module Level 3. URL: https://drafts.csswg.org/css-conditional-3/
769+
Chris Lilley; David Baron; Elika Etemad. <CSS Conditional Rules Module Level 3. 15 August 2024. CRD. URL: https://www.w3.org/TR/css-conditional-3/
768770
[CSS-CONDITIONAL-4]
769-
Chris Lilley; David Baron; Elika Etemad. <CSS Conditional Rules Module Level 4. URL: https://drafts.csswg.org/css-conditional-4/
771+
Chris Lilley; David Baron; Elika Etemad. <CSS Conditional Rules Module Level 4. 4 September 2025. CRD. URL: https://www.w3.org/TR/css-conditional-4/
770772
[CSS-CONTAIN-2]
771-
Tab Atkins Jr.; Florian Rivoal; Vladimir Levin. <CSS Containment Module Level 2. URL: https://drafts.csswg.org/css-contain-2/
773+
Tab Atkins Jr.; Florian Rivoal; Vladimir Levin. <CSS Containment Module Level 2. 17 September 2022. WD. URL: https://www.w3.org/TR/css-contain-2/
772774
[CSS-CONTAIN-3]
773-
Tab Atkins Jr.; Florian Rivoal; Miriam Suzanne. <CSS Containment Module Level 3. URL: https://drafts.csswg.org/css-contain-3/
775+
Tab Atkins Jr.; Florian Rivoal; Miriam Suzanne. <CSS Containment Module Level 3. 18 August 2022. WD. URL: https://www.w3.org/TR/css-contain-3/
774776
[CSS-DISPLAY-4]
775-
Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 4. URL: https://drafts.csswg.org/css-display/
777+
Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 4. 6 November 2025. WD. URL: https://www.w3.org/TR/css-display-4/
776778
[CSS-EXTENSIONS-1]
777779
<CSS Extensions Module Level 1. Editor's Draft. URL: https://drafts.csswg.org/css-extensions-1/
778780
[CSS-FONTS-4]
779-
Chris Lilley. <CSS Fonts Module Level 4. URL: https://drafts.csswg.org/css-fonts-4/
781+
Chris Lilley. <CSS Fonts Module Level 4. 3 March 2026. WD. URL: https://www.w3.org/TR/css-fonts-4/
780782
[CSS-FONTS-5]
781-
Chris Lilley. <CSS Fonts Module Level 5. URL: https://drafts.csswg.org/css-fonts-5/
783+
Chris Lilley. <CSS Fonts Module Level 5. 3 March 2026. WD. URL: https://www.w3.org/TR/css-fonts-5/
782784
[CSS-NAMESPACES-3]
783-
Elika Etemad. <CSS Namespaces Module Level 3. URL: https://drafts.csswg.org/css-namespaces/
785+
Elika Etemad. <CSS Namespaces Module Level 3. 20 March 2014. REC. URL: https://www.w3.org/TR/css-namespaces-3/
784786
[CSS-OVERFLOW-3]
785-
Elika Etemad; Florian Rivoal. <CSS Overflow Module Level 3. URL: https://drafts.csswg.org/css-overflow-3/
787+
Elika Etemad; Florian Rivoal. <CSS Overflow Module Level 3. 7 October 2025. WD. URL: https://www.w3.org/TR/css-overflow-3/
786788
[CSS-POSITION-3]
787-
Elika Etemad; Tab Atkins Jr.. <CSS Positioned Layout Module Level 3. URL: https://drafts.csswg.org/css-position-3/
788-
[CSS-SHADOW-1]
789-
Tab Atkins Jr.; Elika Etemad. <CSS Shadow Module Level 1. URL: https://drafts.csswg.org/css-shadow-1/
789+
Elika Etemad; Tab Atkins Jr.. <CSS Positioned Layout Module Level 3. 7 October 2025. WD. URL: https://www.w3.org/TR/css-position-3/
790790
[CSS-SCROLL-SNAP-1]
791-
Matt Rakow; et al. <CSS Scroll Snap Module Level 1. URL: https://drafts.csswg.org/css-scroll-snap-1/
791+
Matt Rakow; et al. <CSS Scroll Snap Module Level 1. 11 March 2021. CR. URL: https://www.w3.org/TR/css-scroll-snap-1/
792792
[CSS-SCROLL-SNAP-2]
793-
Elika Etemad; Tab Atkins Jr.; Adam Argyle. <CSS Scroll Snap Module Level 2. URL: https://drafts.csswg.org/css-scroll-snap-2/
793+
Elika Etemad; Tab Atkins Jr.; Adam Argyle. <CSS Scroll Snap Module Level 2. 23 July 2024. FPWD. URL: https://www.w3.org/TR/css-scroll-snap-2/
794+
[CSS-SHADOW-1]
795+
<CSS Shadow Module Level 1. Editor's Draft. URL: https://drafts.csswg.org/css-shadow-1/
794796
[CSS-SIZING-3]
795-
Tab Atkins Jr.; Elika Etemad. <CSS Box Sizing Module Level 3. URL: https://drafts.csswg.org/css-sizing-3/
797+
Tab Atkins Jr.; Elika Etemad. <CSS Box Sizing Module Level 3. 17 December 2021. WD. URL: https://www.w3.org/TR/css-sizing-3/
796798
[CSS-SYNTAX-3]
797-
Tab Atkins Jr.; Simon Sapin. <CSS Syntax Module Level 3. URL: https://drafts.csswg.org/css-syntax/
799+
Tab Atkins Jr.; Simon Sapin. <CSS Syntax Module Level 3. 24 December 2021. CRD. URL: https://www.w3.org/TR/css-syntax-3/
798800
[CSS-TRANSITIONS-1]
799-
David Baron; et al. <CSS Transitions>. URL: https://drafts.csswg.org/css-transitions/
801+
Chris Marrin; et al. <CSS Transitions Module Level 1. 8 January 2026. WD. URL: https://www.w3.org/TR/css-transitions-1/
800802
[CSS-VALUES-4]
801-
Tab Atkins Jr.; Elika Etemad. <CSS Values and Units Module Level 4. URL: https://drafts.csswg.org/css-values-4/
803+
Tab Atkins Jr.; Elika Etemad. <CSS Values and Units Module Level 4. 12 March 2024. WD. URL: https://www.w3.org/TR/css-values-4/
802804
[CSS-VALUES-5]
803-
Tab Atkins Jr.; Elika Etemad; Miriam Suzanne. <CSS Values and Units Module Level 5. URL: https://drafts.csswg.org/css-values-5/
804-
[CSS-VARIABLES-2]
805-
<CSS Custom Properties for Cascading Variables Module Level 2. Editor's Draft. URL: https://drafts.csswg.org/css-variables-2/
805+
Tab Atkins Jr.; Elika Etemad; Miriam Suzanne. <CSS Values and Units Module Level 5. 11 November 2024. WD. URL: https://www.w3.org/TR/css-values-5/
806+
[CSS-VARIABLES-1]
807+
Tab Atkins Jr.. <CSS Custom Properties for Cascading Variables Module Level 1. 16 June 2022. CR. URL: https://www.w3.org/TR/css-variables-1/
806808
[CSS-WRITING-MODES-4]
807-
Elika Etemad; Koji Ishii. <CSS Writing Modes Level 4. URL: https://drafts.csswg.org/css-writing-modes-4/
809+
Elika Etemad; Koji Ishii. <CSS Writing Modes Level 4. 30 July 2019. CR. URL: https://www.w3.org/TR/css-writing-modes-4/
810+
[CSS2]
811+
Bert Bos; et al. <Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification>. 7 June 2011. REC. URL: https://www.w3.org/TR/CSS2/
808812
[CSSOM-1]
809-
Daniel Glazman; Emilio Cobos Álvarez. <CSS Object Model (CSSOM). URL: https://drafts.csswg.org/cssom/
813+
Daniel Glazman; Emilio Cobos Álvarez. <CSS Object Model (CSSOM). 26 August 2021. WD. URL: https://www.w3.org/TR/cssom-1/
810814
[CSSOM-VIEW-1]
811-
Simon Fraser; Emilio Cobos Álvarez. <CSSOM View Module>. URL: https://drafts.csswg.org/cssom-view/
815+
Simon Fraser; Emilio Cobos Álvarez. <CSSOM View Module>. 16 September 2025. WD. URL: https://www.w3.org/TR/cssom-view-1/
812816
[MEDIAQUERIES-4]
813-
Florian Rivoal; Tab Atkins Jr.. <Media Queries Level 4. URL: https://drafts.csswg.org/mediaqueries-4/
817+
Tab Atkins Jr.; Florian Rivoal. <Media Queries Level 4. 19 February 2026. CRD. URL: https://www.w3.org/TR/mediaqueries-4/
814818
[MEDIAQUERIES-5]
815-
Dean Jackson; et al. <Media Queries Level 5. URL: https://drafts.csswg.org/mediaqueries-5/
819+
Tab Atkins Jr.; et al. <Media Queries Level 5. 19 February 2026. WD. URL: https://www.w3.org/TR/mediaqueries-5/
816820
[RFC2119]
817821
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
818822
[SELECTORS-4]
819-
Elika Etemad; Tab Atkins Jr.. <Selectors Level 4. URL: https://drafts.csswg.org/selectors/
823+
Elika Etemad; Tab Atkins Jr.. <Selectors Level 4. 22 January 2026. WD. URL: https://www.w3.org/TR/selectors-4/
820824
[WEB-ANIMATIONS-1]
821-
Brian Birtles; et al. <Web Animations>. URL: https://drafts.csswg.org/web-animations-1/
825+
Brian Birtles; et al. <Web Animations>. 5 June 2023. WD. URL: https://www.w3.org/TR/web-animations-1/
822826
[WEBIDL]
823827
Edgar Chen; Timothy Gu. <Web IDL Standard>. Living Standard. URL: https://webidl.spec.whatwg.org/
824828

825829
●●ref_informative
826830

831+
[CSS-OVERFLOW-5]
832+
Elika Etemad; Florian Rivoal; Robert Flack. <CSS Overflow Module Level 5. 17 December 2024. FPWD. URL: https://www.w3.org/TR/css-overflow-5/
827833
[CSS-POSITION-4]
828-
Elika Etemad; Tab Atkins Jr.. <CSS Positioned Layout Module Level 4. URL: https://drafts.csswg.org/css-position-4/
834+
Elika Etemad; Tab Atkins Jr.. <CSS Positioned Layout Module Level 4. 7 October 2025. WD. URL: https://www.w3.org/TR/css-position-4/
829835
[CSS-PSEUDO-4]
830-
Elika Etemad; Alan Stearns. <CSS Pseudo-Elements Module Level 4. URL: https://drafts.csswg.org/css-pseudo-4/
831-
[CSS2]
832-
Bert Bos; et al. <Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification>. URL: https://drafts.csswg.org/css2/
836+
Elika Etemad; Alan Stearns. <CSS Pseudo-Elements Module Level 4. 27 June 2025. WD. URL: https://www.w3.org/TR/css-pseudo-4/
833837

834838

835839
●●trans_metadata
@@ -1570,6 +1574,39 @@ <h2 title="Container Queries">5. 容器~query</h2>
15701574
By default, all elements are query containers for the purpose of container style queries, and can be established as query containers for container size queries and container scroll-state queries by specifying the additional query types using the container-type property (or the container shorthand). Style rules applying to a query container’s flat tree descendants can be conditioned by querying against it, using the @container conditional group rule.
15711575
</p>
15721576

1577+
<p>
1578+
~queryしている要素 %要素 の先祖~要素のうち~boxを生成するものは、
1579+
%要素 により生成される~boxの先祖~boxでない場合には、
1580+
`容器~size~query$用として適格な`~query容器$にはならない。
1581+
1582+
An ancestor element that generates a box is not an eligible container for container size queries if that box is not an ancestor box of any boxes generated by the querying element.
1583+
</p>
1584+
1585+
<div class="note">
1586+
<p>注記:
1587+
`疑似要素$用の~boxが[
1588+
その`出自の要素$が生成する~boxの同胞
1589+
]として生成される事例もある。
1590+
同胞~boxの~sizeを~queryすることを許容した場合、
1591+
~layoutに循環依存を導入することになる。
1592+
1593+
There are cases where the box for a pseudo-element is generated as a sibling box of its originating element’s box. If we allowed querying the size of a sibling box, it would introduce layout cycles.
1594+
</p>
1595+
1596+
<p>
1597+
例えば,
1598+
`scroll-marker-group$pe 疑似要素や `scroll-button()$pe 疑似要素は、
1599+
その出自の要素である`~scroll容器$の同胞~boxを生成する。
1600+
これらの疑似要素は、
1601+
当の~scroll容器を`容器~size~query$により~query可能にはならない
1602+
— 他の[
1603+
適格な`~query容器$である先祖
1604+
]は~query可能になるが。
1605+
1606+
For example, the ::scroll-marker-group and ::scroll-button() pseudo-elements generate sibling boxes of their originating element’s box. These pseudo-elements will not be able to query their originating scroller for container size queries. They will, however, be able to query other eligible query container ancestors.
1607+
</p>
1608+
</div>
1609+
15731610
<div class="example">
15741611
<p>
15751612
例えば、

0 commit comments

Comments
 (0)