Collecting notes about using the new frame plugin.
HTML5 mp4 https://wiki.dbbs.co/assets/frames/back-and-forth-frames.mov Back and forward between frames
I begin on Ward's Wiki and open the About Frame Plugin followed by clicks alternating between the frames. The back button followed those clicks backward, alternating between the frames. I clicked all the way back to just Ward's Wiki. The forward clicks can only get as far as adding the About Frame Plugin page. The history of my clicks between the frames are apparently lost.
I re-open About Frame Plugin and click a couple times within that frame. Then move back and forward through those clicks, careful to not go so far back that I loose the About Frame Plugin page.
In an earlier revision of this page I had added a frame pointing to the back-and-forth-frames.mov. Firefox displays the movie inline. Chrome initiates an un-asked for download. Wonder if that's worth reporting as a bug to Chromium team.
Today I learned again how to reach between frames. These tricks are blocked by cross-origin security policies, but work fine if inside the frame and outside the frame are hosted on the same origin.
#!javascript let child = window.frames[0]; // parent -> child let parent = child.parent; // child -> parent if (window === parent) { console.log('this is always true'); }
See also Framed
.
2020-11-07 learned some new things about frames
CSS property object-fit might provide good default for scaling the frame content to the wiki page. Values include: fill, contain, cover, none, scale-down. mozilla
src can include data urls, and srcdoc property can include full inline html document. CSS isolation is one benefit—not sure how that compares to shadowdom isolation. Behaviors are similar between the two approaches with slightly different encoding and security implications that may favor the srcdoc option. stackoverflow
.
frames
ITEM frame SITE .*