[css-conditional-5] Add matchContainer() and ContainerQueryList API text#13551
[css-conditional-5] Add matchContainer() and ContainerQueryList API text#13551
matchContainer() and ContainerQueryList API text#13551Conversation
matchContainer() and ContainerQueryList API textmatchContainer() and ContainerQueryList API text
|
|
||
| <ol> | ||
|
|
||
| <li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run, |
There was a problem hiding this comment.
How about describe or mention what the target is? I initially thought it was element itself. But the recent issues talks and container query behavior is finding eligible ancestor of the element.
There was a problem hiding this comment.
DevSDK
left a comment
There was a problem hiding this comment.
I focused on referring to the element's target container which is already defined as a "query container" for @container.
|
|
||
| A {{ContainerQueryList}} object has an associated | ||
| <dfn for=ContainerQueryList>container</dfn> which is the | ||
| <a lt='serialize a container query list'>serialized</a> |
There was a problem hiding this comment.
we missed the serialization rule here.
We may need to create/adopt the existing rule? https://drafts.csswg.org/cssom-1/#serialize-a-media-query-list
|
|
||
| <li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run, | ||
| <a>fire an event</a> named <a event>change</a> at <var>target</var> | ||
| using {{ContainerQueryListEvent}}, |
There was a problem hiding this comment.
I suppose we missed definition ContainerQueryListEvent idl here?
FYR: https://drafts.csswg.org/cssom-view/#mediaquerylistevent
and also We may need to ContainerQueryListEventInit that correspond with MediaQueryListEventInit
|
|
||
| <ol> | ||
|
|
||
| <li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run, |
There was a problem hiding this comment.
Co-authored-by: Seokho Song <0xdevssh@gmail.com>
Co-authored-by: Seokho Song <0xdevssh@gmail.com>
Co-authored-by: Seokho Song <0xdevssh@gmail.com>
Co-authored-by: Seokho Song <0xdevssh@gmail.com>
Co-authored-by: Seokho Song <0xdevssh@gmail.com>
As per #6205.