Re: Problem on implementing ::backdrop pseudo-element

"Robert O'Callahan" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout
Message-ID <CAOp6jLbOfDBncUrp5wJLWXNXZrRJci3nYmfWZMGFuo_mj1apQA@mail.gmail.com>
On Tue, Nov 3, 2015 at 12:20 AM, Xidorn Quan <[email protected]> wrote:

> On Mon, Nov 2, 2015 at 9:50 PM, Robert O'Callahan <[email protected]>
> wrote:
> > On Mon, Nov 2, 2015 at 6:58 PM, Xidorn Quan <[email protected]>
> wrote:
> >>
> >> However, ::backdrop cannot be implemented that way, becasue any
> >> element can go fullscreen, which means the frame of the fullscreen
> >> element can be video, image, or iframe. Those frame are not container
> >> frame, and thus cannot be a parent frame.
> >
> >
> > nsVideoFrame is a container frame.
> >
> > How about we make nsImageFrame and nsSubdocumentFrame inherit from
> > nsContainerFrame?
>
> Well, any HTML element can enter fullscreen. Does that mean we would
> make all possible frame inherit from nsContainerFrame?
>
> Hmmm, it seems most of them already have been. The left ones, as far
> as I can see, are: image, subdocument, form control, and br. (It seems
> table col does not become a normal block as expected. I'll have a look
> at it.) Do we want all of them to inherit from nsContainerFrame?
>

Sure!

There are text frames, but they're not elements and can't be fullscreen I
hope!

It looks like the easiest approach. I'm not quite comfortable with it,
> though. FWIW that would bloat those frames by four pointers.
>

I don't think it matters for those frame types.

Rob
-- 
lbir ye,ea yer.tnietoehr  rdn rdsme,anea lurpr  edna e hnysnenh hhe uresyf
toD
selthor  stor  edna  siewaoeodm  or v sstvr  esBa  kbvted,t
rdsme,aoreseoouoto
o l euetiuruewFa  kbn e hnystoivateweh uresyf tulsa rehr  rdm  or rnea
lurpr
.a war hsrer holsa rodvted,t  nenh hneireseoouot.tniesiewaoeivatewt sstvr
esn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.