惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Securelist
C
CERT Recently Published Vulnerability Notes
Forbes - Security
Forbes - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
L
LINUX DO - 最新话题
The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
The Last Watchdog
The Last Watchdog
S
Schneier on Security
T
Troy Hunt's Blog
N
News | PayPal Newsroom
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Schneier on Security
Schneier on Security
P
Privacy & Cybersecurity Law Blog
T
Tor Project blog
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
S
Secure Thoughts
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Security Latest
Security Latest
Scott Helme
Scott Helme
Security Archives - TechRepublic
Security Archives - TechRepublic
Latest news
Latest news
PCI Perspectives
PCI Perspectives
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Project Zero
Project Zero
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
Webroot Blog
Webroot Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
大猫的无限游戏
大猫的无限游戏
T
Tenable Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
H
Hacker News: Front Page
Simon Willison's Weblog
Simon Willison's Weblog
AWS News Blog
AWS News Blog

Recent Commits to csswg-drafts:main

[css-color-4][editorial] fix warning about variable only used once [css-color-4][editorial] wpt · w3c/csswg-drafts@f37938a [css-color-4] Clarify carry-forward in color interpolation #14134 · w3c/csswg-drafts@526bc74 [css-link-params][editorial] Prepare for FPWD · w3c/csswg-drafts@c7d565c [css-view-tranitions-2] Update two-phase view transition explainer (#… [css-navigation-1] Remove controversial parts (#14138) [css-speech-1][editorial] Enforce positive <generic-voice> variant us… · w3c/csswg-drafts@b99f0c7 [selectors-4][editorial] Update previous versions · w3c/csswg-drafts@a3a7543 [selectors-4][editorial] silence bikeshed nitpicking · w3c/csswg-drafts@7780a1f [selectors-4][editorial] wpt · w3c/csswg-drafts@aa61b2c [selectors-4] Better description of :lang() psuedo class selector #3022. · w3c/csswg-drafts@1ed57ea [css-navigation-1] Change `:trigger-link` to `:nav-source` and includ… · w3c/csswg-drafts@d554423 Clarify note on ViewTransition/types manipulation. (#14110) · w3c/csswg-drafts@14685cd [selectors-4] Add CanIUse panels #1193 (#14120) [css-navigation-1] Move parameter resolution into <<route-location>> … Initial plan [cssom-view-1] Per flackr feedback, not worth making quirks mode care… · w3c/csswg-drafts@169b434 [css-overscroll-1] Clarify the wording to be about scrollable axis. · w3c/csswg-drafts@d5541f2 [css-conditional-5] Clarify a little bit that we can skip containers. · w3c/csswg-drafts@416c971 [css-overscroll-1] Never mind, exclude single-axis scrollers from the… · w3c/csswg-drafts@23ba67b [css-nav-1] Fix up 'can be manually scrolled' to care about axises, u… · w3c/csswg-drafts@8f211ee [css-nav-1] Clean up some of the bikeshed errors · w3c/csswg-drafts@f746899 [css-conditional-5] For the scroller queries, elements are only CQ co… · w3c/csswg-drafts@a017379
[css-conditional-5][editorial] Rewrap to semantic linebreaks · w3c/csswg-drafts@4be4924
tabatkins · 2026-07-01 · via Recent Commits to csswg-drafts:main

@@ -1541,32 +1541,37 @@ Style Container Features</h3>

15411541

<h3 id="scroll-state-container">

15421542

Scroll State Container Features</h3>

154315431544-

A <dfn export>container scroll-state query</dfn> allows querying a container for

1545-

state that depends on scroll position. It is a boolean combination of

1546-

individual <dfn lt="scroll-state feature">scroll-state features</dfn>

1547-

(<<scroll-state-feature>>) that each query a single feature of the

1548-

[=query container=]. The syntax of a <dfn><<scroll-state-feature>></dfn> is the

1549-

same as for a [=media feature=]: a feature name, a comparator, and a value.

1550-1551-

[=Scroll-state features=] can either match state of the scroller itself,

1552-

or an element that is affected by the scroll position of an ancestor

1553-

[=scroll container's=] [=scrollport=]. An example of the former is the

1554-

''scrollable'' feature, ''snapped'' the latter.

1544+

A <dfn export>container scroll-state query</dfn>

1545+

allows querying a container for state that depends on scroll position.

1546+

It is a boolean combination

1547+

of individual <dfn lt="scroll-state feature">scroll-state features</dfn>

1548+

(<<scroll-state-feature>>)

1549+

that each query a single feature of the [=query container=].

1550+

The syntax of a <dfn><<scroll-state-feature>></dfn> is the same as for a [=media feature=]:

1551+

a feature name, a comparator, and a value.

1552+1553+

[=Scroll-state features=] can either match state of the scroller itself

1554+

(such as the ''scollable'' feature),

1555+

or an element that is affected by the scroll position

1556+

of an ancestor [=scroll container's=] [=scrollport=]

1557+

(such as the ''snapped'' feature).

1555155815561559

<h4 id="updating-scroll-state">

15571560

Updating Scroll State</h4>

1558156115591562

Scroll state may cause layout cycles since queried scroll state may cause style changes,

15601563

which may lead to scroll state changes as a result of layout.

156115641562-

To avoid such layout cycles, ''scroll-state'' [=query containers=] update their

1563-

current state as part of [=run snapshot post-layout state steps=] which is only

1564-

run at specific points in the

1565+

To avoid such layout cycles,

1566+

''scroll-state'' [=query containers=] update their current state

1567+

as part of [=run snapshot post-layout state steps=]

1568+

which is only run at specific points in the

15651569

<a href="https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model">HTML event loop processing model</a>.

156615701567-

When asked to [=run snapshot post-layout state steps=], update the current state

1568-

of every ''scroll-state'' [=query container=]. This snapshotted state will be used

1569-

for any style and layout updates until the next time these steps are run.

1571+

When asked to [=run snapshot post-layout state steps=],

1572+

update the current state of every ''scroll-state'' [=query container=].

1573+

This snapshotted state will be used for any style and layout updates

1574+

until the next time these steps are run.

1570157515711576

<h4 id="stuck">

15721577

Sticky positioning: the '@container/stuck' feature</h4>

@@ -1648,9 +1653,10 @@ Scroll snapping: the '@container/snapped' feature</h4>

16481653

container-queries/scroll-state/scroll-state-snapped-pseudo.html

16491654

</wpt>

165016551651-

The '@container/snapped' [=container feature=] queries whether a [=snap target=]

1652-

is, or would be, snapped to its [=scroll snap container=], in the given axis. That is,

1653-

it matches any [=snap target=] that the {{scrollsnapchanging}} event is fired for.

1656+

The '@container/snapped' [=container feature=] queries

1657+

whether a [=snap target=] is, or would be,

1658+

snapped to its [=scroll snap container=] in the given axis.

1659+

That is, it matches any [=snap target=] that the {{scrollsnapchanging}} event is fired for.

1654166016551661

<dl dfn-type=value dfn-for="@container/snapped">

16561662

<dt><dfn>none</dfn>

@@ -1700,15 +1706,15 @@ Scrollable: the '@container/scrollable' feature</h4>

17001706

container-queries/scroll-state/scroll-state-scrollable-root.html

17011707

</wpt>

170217081703-

The '@container/scrollable' [=container feature=] queries whether a

1704-

[=scroll container=] has clipped [=scrollable overflow rectangle=] content

1705-

in the given direction which is reachable through user initiated scrolling.

1706-

That is, '@container/scrollable' does not match for a ''overflow/hidden''

1707-

container, nor for a [=unreachable scrollable overflow region=].

1709+

The '@container/scrollable' [=container feature=] queries

1710+

whether a [=scroll container=] has clipped [=scrollable overflow rectangle=] content in the given direction

1711+

which is reachable through user initiated scrolling.

1712+

That is, '@container/scrollable' does not match for a ''overflow/hidden'' container,

1713+

nor for a [=unreachable scrollable overflow region=].

170817141709-

The logical values map to physical based on the direction and writing-mode of

1710-

the [=query container=]. None of the values match if the container is not a

1711-

[=scroll container=].

1715+

The logical values map to physical

1716+

based on the direction and writing-mode of the [=query container=].

1717+

None of the values match if the container is not a [=scroll container=].

1712171817131719

<dl dfn-type=value dfn-for="@container/scrollable">

17141720

<dt><dfn>none</dfn>

@@ -1784,8 +1790,10 @@ Scrolled: the '@container/scrolled' feature</h4>

17841790

</wpt>

1785179117861792

For a [=query container=] that is a [=scroll container=],

1787-

the '@container/scrolled' [=container feature=] queries the direction of its most recent [=relative scroll=].

1788-

The logical values map to physical based on the direction and writing-mode of the [=query container=].

1793+

the '@container/scrolled' [=container feature=] queries the direction

1794+

of its most recent [=relative scroll=].

1795+

The logical values map to physical

1796+

based on the direction and writing-mode of the [=query container=].

17891797

None of the values match if the container is not a [=scroll container=].

1790179817911799

<dl dfn-type=value dfn-for="@container/scrolled">

@@ -1836,8 +1844,8 @@ Container Relative Lengths: the ''cqw'', ''cqh'', ''cqi'', ''cqb'', ''cqmin'', '

1836184418371845

<dfn export lt="container query length | container query length unit">Container query length units</dfn>

18381846

specify a length relative to the dimensions of a [=query container=].

1839-

Style sheets that use [=container query length=] units can more easily move components

1840-

from one [=query container=] to another.

1847+

Style sheets that use [=container query length=] units

1848+

can more easily move components from one [=query container=] to another.

1841184918421850

The [=container query length=] units are:

18431851