haikuwebkit/LayoutTests/fast/media
Youenn Fablet 1ba7ca81a9 <video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only)
https://bugs.webkit.org/show_bug.cgi?id=222115
<rdar://problem/74546659>

Reviewed by Eric Carlson.

Source/WebCore:

Update element visibility if changing of document. Add internals API to test this.

Test: fast/media/template-hidden.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::didMoveToNewDocument):
* testing/Internals.cpp:
(WebCore::Internals::isMediaElementHidden):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

* fast/media/template-hidden-expected.txt: Added.
* fast/media/template-hidden.html: Added.


Canonical link: https://commits.webkit.org/237944@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-05-20 15:33:12 +00:00
..
ios/ipad
resources
color-does-not-include-alpha-expected.txt
color-does-not-include-alpha.html
getStartDate-NaN-expected.txt
getStartDate-NaN.html
implicit-media-all-expected.html
implicit-media-all.html
import-p-green.css
import-p-red.css
invalid-lengths-expected.txt
invalid-lengths.html
invalid-media-query-list-expected.html
invalid-media-query-list.html
lifetime-expected.txt
lifetime.html
matchMedia-print-expected.txt
matchMedia-print.html
matchmedium-query-api-expected.txt
matchmedium-query-api.html
media-disable-crash-expected.txt
media-disable-crash.html
media-query-dynamic-with-font-face-expected.html Resolve dynamic media queries without reconstructing RuleSets 2019-12-17 09:51:54 +00:00
media-query-dynamic-with-font-face.html Resolve dynamic media queries without reconstructing RuleSets 2019-12-17 09:51:54 +00:00
media-query-dynamic-with-keyframes-expected.html REGRESSION (r253875?): Element styles incorrect after media query evaluation changes 2020-06-05 14:39:07 +00:00
media-query-dynamic-with-keyframes.html REGRESSION (r253875?): Element styles incorrect after media query evaluation changes 2020-06-05 14:39:07 +00:00
media-query-invalid-value-expected.html
media-query-invalid-value.html
media-query-keyframes-resolution-count-expected.txt REGRESSION (r262618): Very slow typing in a github issue 2020-06-12 18:22:31 +00:00
media-query-keyframes-resolution-count.html REGRESSION (r262618): Very slow typing in a github issue 2020-06-12 18:22:31 +00:00
media-query-lengths-evaluate-with-double-precision-expected.html Media queries with max-width greater than 999999999px evaluate to false 2021-04-17 22:21:20 +00:00
media-query-lengths-evaluate-with-double-precision.html Media queries with max-width greater than 999999999px evaluate to false 2021-04-17 22:21:20 +00:00
media-query-list-01-expected.txt
media-query-list-01.html
media-query-list-07-expected.txt MediaQueryList should extend EventTarget 2020-04-17 10:16:36 +00:00
media-query-list-07.html MediaQueryList should extend EventTarget 2020-04-17 10:16:36 +00:00
media-query-list-callback-expected.txt
media-query-list-callback.html
media-query-list-mutation-expected.txt Nullptr crash in MediaQueryMatcher::evaluateAll 2020-05-16 04:32:20 +00:00
media-query-list-mutation.html Nullptr crash in MediaQueryMatcher::evaluateAll 2020-05-16 04:32:20 +00:00
media-query-non-ASCII-case-folding-expected.txt
media-query-non-ASCII-case-folding.html
media-query-serialization-expected.txt
media-query-serialization.html Drop sorting and deduplication of media queries. 2020-10-26 11:00:26 +00:00
media-query-with-scaled-content-expected.html REGRESSION (r167937): Do not use effective zoom factor while resolving media query's min-, max-(device)width/height values. 2014-06-10 23:13:20 +00:00
media-query-with-scaled-content.html
media-svg-crash-expected.txt
media-svg-crash.html
media-type-syntax-01-expected.html
media-type-syntax-01.html
media-type-syntax-02-expected.html
media-type-syntax-02.html
mediaqueryevaluator-crash-expected.txt
mediaqueryevaluator-crash.html
monochrome-expected.html
monochrome.html
mq-animation-expected.html
mq-animation.html
mq-any-hover-cssom-expected.txt [mediaqueries] Remove "on-demand" value for any-hover/hover & "forced" value for prefers-contrast 2021-05-06 07:36:29 +00:00
mq-any-hover-cssom.html [mediaqueries] Remove "on-demand" value for any-hover/hover & "forced" value for prefers-contrast 2021-05-06 07:36:29 +00:00
mq-any-hover-invalid-expected.txt
mq-any-hover-invalid.html
mq-any-hover-matchMedia-expected.txt
mq-any-hover-matchMedia.html
mq-any-hover-styling-expected.txt
mq-any-hover-styling.html
mq-any-pointer-cssom-expected.txt
mq-any-pointer-cssom.html
mq-any-pointer-invalid-expected.txt
mq-any-pointer-invalid.html
mq-any-pointer-matchMedia-expected.txt
mq-any-pointer-matchMedia.html
mq-any-pointer-styling-expected.txt
mq-any-pointer-styling.html
mq-aspect-ratio-expected.html
mq-aspect-ratio.html
mq-color-gamut-expected.html
mq-color-gamut.html
mq-color-index-01-expected.html
mq-color-index-01.html
mq-color-index-02-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
mq-color-index-02.html
mq-compound-query-01-expected.html
mq-compound-query-01.html
mq-compound-query-02-expected.html
mq-compound-query-02.html
mq-compound-query-03-expected.html
mq-compound-query-03.html
mq-compound-query-04-expected.html
mq-compound-query-04.html
mq-compound-query-05-expected.html
mq-compound-query-05.html
mq-grid-01-expected.html
mq-grid-01.html
mq-grid-02-expected.html
mq-grid-02.html
mq-highdynamicrange-live-update-expected.txt Experimental support for HDR media query 2019-11-22 05:17:02 +00:00
mq-highdynamicrange-live-update.html Experimental support for HDR media query 2019-11-22 05:17:02 +00:00
mq-hover-cssom-expected.txt [mediaqueries] Remove "on-demand" value for any-hover/hover & "forced" value for prefers-contrast 2021-05-06 07:36:29 +00:00
mq-hover-cssom.html [mediaqueries] Remove "on-demand" value for any-hover/hover & "forced" value for prefers-contrast 2021-05-06 07:36:29 +00:00
mq-hover-invalid-expected.txt
mq-hover-invalid.html
mq-hover-matchMedia-expected.txt
mq-hover-matchMedia.html
mq-hover-styling-expected.txt
mq-hover-styling.html
mq-invalid-media-feature-01-expected.html
mq-invalid-media-feature-01.html
mq-invalid-media-feature-02-expected.html
mq-invalid-media-feature-02.html
mq-invalid-media-feature-03-expected.html
mq-invalid-media-feature-03.html
mq-invalid-media-feature-04-expected.html
mq-invalid-media-feature-04.html
mq-invalid-syntax-03-expected.html
mq-invalid-syntax-03.html
mq-invalid-syntax-04-expected.html
mq-invalid-syntax-04.html
mq-inverted-colors-expected.html
mq-inverted-colors-forced-value-expected.html Better testing for accessibility media queries 2016-11-18 22:30:44 +00:00
mq-inverted-colors-forced-value.html
mq-inverted-colors-live-update-expected.html
mq-inverted-colors-live-update-for-listener-expected.txt Integrate media query evaluation into HTML5 event loop 2019-11-01 18:16:13 +00:00
mq-inverted-colors-live-update-for-listener.html Integrate media query evaluation into HTML5 event loop 2019-11-01 18:16:13 +00:00
mq-inverted-colors-live-update-in-subframes-expected.html AX: "(inverted-colors)" media query only matches on page reload; should match on change 2016-11-19 02:51:15 +00:00
mq-inverted-colors-live-update-in-subframes.html AX: "(inverted-colors)" media query only matches on page reload; should match on change 2016-11-19 02:51:15 +00:00
mq-inverted-colors-live-update.html
mq-inverted-colors.html
mq-js-media-except-01-expected.html
mq-js-media-except-01.html
mq-js-update-media-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
mq-js-update-media.html
mq-max-pixel-ratio-expected.html
mq-max-pixel-ratio.html
mq-min-constraint-expected.html
mq-min-constraint.html
mq-min-pixel-ratio-expected.html
mq-min-pixel-ratio.html
mq-monochrome-expected.html
mq-monochrome-forced-value-expected.html
mq-monochrome-forced-value.html
mq-monochrome-live-update-expected.html
mq-monochrome-live-update.html
mq-monochrome.html
mq-orientation-expected.html
mq-orientation.html
mq-pixel-ratio-expected.html
mq-pixel-ratio-print-expected.txt
mq-pixel-ratio-print.html
mq-pixel-ratio.html
mq-pointer-cssom-expected.txt
mq-pointer-cssom.html
mq-pointer-expected.txt
mq-pointer-invalid-expected.txt
mq-pointer-invalid.html
mq-pointer-matchMedia-expected.txt
mq-pointer-matchMedia.html
mq-pointer-styling-expected.txt
mq-pointer-styling.html
mq-pointer.html
mq-prefers-contrast-forced-value.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast-live-update-for-listener-expected.txt AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast-live-update-for-listener.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast-live-update.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast-matchMedia-expected.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast-matchMedia.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-contrast.html AX: implement prefers-contrast: more 2020-12-15 06:28:57 +00:00
mq-prefers-reduced-motion-expected.html
mq-prefers-reduced-motion-forced-value-expected.html
mq-prefers-reduced-motion-forced-value.html
mq-prefers-reduced-motion-live-update-expected.html
mq-prefers-reduced-motion-live-update-for-listener-expected.txt Integrate media query evaluation into HTML5 event loop 2019-11-01 18:16:13 +00:00
mq-prefers-reduced-motion-live-update-for-listener.html Integrate media query evaluation into HTML5 event loop 2019-11-01 18:16:13 +00:00
mq-prefers-reduced-motion-live-update.html
mq-prefers-reduced-motion-matchMedia-expected.txt
mq-prefers-reduced-motion-matchMedia.html
mq-prefers-reduced-motion.html
mq-relative-constraints-02-expected.html
mq-relative-constraints-02.html
mq-relative-constraints-03-expected.html
mq-relative-constraints-03.html
mq-relative-constraints-04-expected.html
mq-relative-constraints-04.html
mq-relative-constraints-05-expected.html
mq-relative-constraints-05.html
mq-relative-constraints-06-expected.html
mq-relative-constraints-06.html
mq-relative-constraints-07-expected.html
mq-relative-constraints-07.html
mq-relative-constraints-08-expected.html
mq-relative-constraints-08.html
mq-relative-constraints-09-expected.html
mq-relative-constraints-09.html
mq-resolution-dpi-dpcm-warning-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
mq-resolution-dpi-dpcm-warning.html
mq-resolution-expected.txt
mq-resolution.html
mq-simple-neg-query-01-expected.html
mq-simple-neg-query-01.html
mq-simple-neg-query-02-expected.html
mq-simple-neg-query-02.html
mq-simple-neg-query-03-expected.html
mq-simple-neg-query-03.html
mq-simple-neg-query-04-expected.html
mq-simple-neg-query-04.html
mq-simple-neg-query-05-expected.html
mq-simple-neg-query-05.html
mq-simple-query-01-expected.html
mq-simple-query-01.html
mq-simple-query-02-expected.html
mq-simple-query-02.html
mq-simple-query-03-expected.html
mq-simple-query-03.html
mq-simple-query-04-expected.html
mq-simple-query-04.html
mq-simple-query-05-expected.html
mq-simple-query-05.html
mq-transform-01-expected.html
mq-transform-01.html
mq-transform-02-expected.html
mq-transform-02.html
mq-transform-03-expected.html
mq-transform-03.html
mq-transform-04-expected.html
mq-transform-04.html
mq-transition-expected.html
mq-transition.html
mq-valueless-expected.html
mq-valueless.html
mq-viewport-units-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
mq-viewport-units.html
mq-width-absolute-01-expected.html
mq-width-absolute-01.html
mq-width-absolute-02-expected.html
mq-width-absolute-02.html
mq-width-absolute-03-expected.html
mq-width-absolute-03.html
mq-width-absolute-04-expected.html
mq-width-absolute-04.html
mq-width-pagezoom-expected.html
mq-width-pagezoom.html
print-restores-previous-mediatype-expected.txt
print-restores-previous-mediatype.html
template-hidden-expected.txt <video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only) 2021-05-20 15:33:12 +00:00
template-hidden.html <video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only) 2021-05-20 15:33:12 +00:00
update-media-query-css-parser-expected.txt
update-media-query-css-parser.html
use-system-appearance-user-stylesheet-parsing-expected.txt Reparse user stylesheets when _useSystemAppearance changes 2018-07-05 03:50:56 +00:00
use-system-appearance-user-stylesheet-parsing.html
video-element-in-details-collapse-expected.txt RenderElements should unregister for viewport visibility callbacks when they are destroyed 2017-03-15 01:20:57 +00:00
video-element-in-details-collapse.html
video-playable-inline-media-query-expected.txt Media Query (-webkit-video-playable-inline) is failing as an invalid media query expression 2016-01-15 22:28:03 +00:00
video-playable-inline-media-query.html
viewport-media-query-expected.html
viewport-media-query-synchronous-expected.txt Source/WebCore: REGRESSION (r104060): Layout Test fast/media/viewport-media-query.html is occasionally failing 2012-01-08 11:45:58 +00:00
viewport-media-query-synchronous.html
viewport-media-query.html
window-name-expected.txt
window-name.html
window-oncuechange-expected.txt
window-oncuechange.html