Open cathiechen opened 1 year ago
@cathiechen note, the referred test names need updating above and in the Firefox patch, I introduced content-visibility-091.html recently, which clashes with the patch.
@cathiechen note, the referred test names need updating above and in the Firefox patch, I introduced content-visibility-091.html recently, which clashes with the patch.
Done, thanks! In the latest Firefox patch, it is *-091.html now, and I will keep updating this once the WPT test is updated.
In terms of spec text, I think we can just change the relevant to the user definition to add a bullet point for "is being scrolled into view via scrollIntoView
".
The CSS Working Group just discussed [css-contain][css-sizing] ScrollIntoView a descendant of element with content-visibility:auto
, and agreed to the following:
RESOLVED: add ScrollIntoView to the definition of relevant to the use, should also affect ancestors.
In [1], point 5 defines the behavior of
scrollIntoView
targeting on an element withcontent-visibility:auto
.However, it does not mention the behavior of
scrollIntoView
targeting on a descendant withcontent-visibility:auto
. Tested in Chromium and WebKit, thecontent-visibility:auto
is treated as visible before scrolling, it makes sense to me. The related test cases are content-visibility-075.html and content-visibility-076.html. Should we make it clear in the specification? Maybe something like this?content-visibility-vs-scrollIntoView-001.html in the FireFox patch.
overflow: clip
. See test casecontent-visibility-vs-scrollIntoView-002.html in the FireFox patch.
@emilio @vmpstr @rwlbuis WDYT?
[1] https://drafts.csswg.org/css-contain-2/#cv-notes