You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have nested containers, with different contained axes, do we only query the nearest container -- or do we query the nearest container which has the proper containment? For example:
If we query the nearest ancestor that is a container (main), the match is false because the block-size is not contained, and cannot be queried
If we look for the nearest ancestor with block containment (html), the match is true because the block size matches the given condition
I think in this case we want option 2, and should only consider an ancestor to be "a container" if it meets all the required containment criteria. But maybe I'm missing something?
Yeah, that concern makes sense to me - I don't think we should go down that path. If we allow queries to search for proper containment, then the individual queries act as an implicit way of selecting their own containers. That could get pretty complicated, and hard to debug.
When we have nested containers, with different contained axes, do we only query the nearest container -- or do we query the nearest container which has the proper containment? For example:
main
), the match isfalse
because the block-size is not contained, and cannot be queriedhtml
), the match istrue
because the block size matches the given conditionI think in this case we want option 2, and should only consider an ancestor to be "a container" if it meets all the required containment criteria. But maybe I'm missing something?
@andruud @lilles - do you have thoughts on this?
The text was updated successfully, but these errors were encountered: