Re:Browsers
by magicalist on Monday December 17, 2018 @08:46PM
(#18703922)
> How many sites put invisible DOM elements over the videos?
A lot of them? Vimeo, for instance, has a number of opacity: 0 and hidden divs over the video. Twitch has at least a couple of opacity: 0 divs on top.
Maybe we're interpreting the phrase
> hidden empty div over YouTube videos
differently? That's the structure I assume they were talking about.
I'd assume that it was actually an invisible, but not technically hidden div, leading to a fully transparent blending pass - divs with opacity:0 or display:none are trivial to optimize for this case.
Re:Browsers
by magicalist on Tuesday December 18, 2018 @03:43AM
(#18705284)
> I'd assume that it was actually an invisible, but not technically hidden div
Considering that it's now optimized and that's not what the original post said, I don't know why you'd assume that.
Remember, if you put visible DOM elements on top of the videos, then you lose scanout compositing no matter what.