Thanks for replying. You're right, that's why the children of button elements aren't in the display list with mode EVENT_DELIVERY. But those elements are in a display list with mode PAINTING.
I don't care if those elements receive mouse events. I have already been able to ignore pointer-events:none, and (backface-)visibility:hidden. I just want to include all HTML elements within a document in a single display-list, except display:none and elements outside of the visible part of a scrollable element. I only care about the absolute position (x,y,width,height) and z-order of each HTML element. So I filter out everything in the resulting display-list which isn't a HTML element, like scrollbars or list decoration. I thought I had everything until I noticed the missing button children. How can I still include those in my display list? Where in the source code are they excluded form a display list with mode EVENT_DELIVERY? Or where are they included in a display list with mode PAINTING? I thought this might be relevant https://dxr.mozilla.org/mozilla-central/rev/e5a10bc7dac4ee2453d8319165c1f6578203eac7/layout/forms/nsButtonFrameRenderer.cpp#186 but overriding this didn't change anything for me. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

