Add new examples, fix overlays and add a landing page#46
Merged
Conversation
Cover more examples of possible candidates for Container Timing. This is mostly for allowing to try what works and what does not work. Not supported in Chromium: - canvas-2d - webgl - video/no-poster (video element without preview). Supported in Chromium: - video/with-poster (video element with preview). - svg-as-image: an SVG image added as the src of an image. - svg-with-images: inline SVG with images inside. - svg-with-text: inline SvG with text inside. - svg-with-image: inline SVG with image deep inside paths.
New build step added that compiles demo-overlays and copies both examples/ and the overlay into a public/ folder, so the relative paths to demo-overlays resolve correctly when serving locally. The start script now always rebuilds before serving.
Lists all examples with a short description and whether they work in Chromium with --enable-blink-features=ContainerTiming, shown via a hover tooltip for the flag name.
containertiming-nesting is not part of the proposal anymore.
jasonwilliams
approved these changes
Apr 2, 2026
github-actions Bot
added a commit
that referenced
this pull request
Apr 2, 2026
SHA: 5dd28f0 Reason: push, by jasonwilliams Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
tunetheweb
reviewed
Apr 2, 2026
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1", | ||
| "start": "http-server ./examples -c-1 -a 127.0.0.1 -p 8080 -o" | ||
| "build": "rm -rf public && mkdir -p public/demo-overlays && cd demo-overlays && npm run build && cd .. && cp -r examples public/examples && cp demo-overlays/demo-overlays.js demo-overlays/demo-overlays.js.map demo-overlays/demo-overlays.css public/demo-overlays/", |
Contributor
There was a problem hiding this comment.
2 comments:
- How can
npm run buildcallnpm run build? demo-overlays/demo-overlays.jsis not checked in and there's no instructions on how to build from the checked intscfiles. Should we addtsc -p demo-overlays/tsconfig.jsonto this?
Contributor
There was a problem hiding this comment.
Ah ignore me. I missed the cd demo-overlays before that.
OK thanks to this PR the demos are working. Took me a few bits of hacking to get them working but much cleaner now!
Collaborator
There was a problem hiding this comment.
my goal is to come back to this build section and clean it up, so i merged for now with the intention of simplifiyng this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.