Direct Answers
Sync with parent: No. CodePen does not document or provide any mechanism to pull updates from a parent Pen into a fork. Forks are point-in-time copies.
Drift detection: No. There is no built-in diff view, comparison tool, or alert that shows divergence between a fork and its original.
Privacy and preprocessor inheritance: Yes, at the moment of forking the fork receives the parent's privacy setting (public, private, unlisted) and preprocessor selections (HTML/CSS/JS preprocessors, external resources). These become independent settings on the fork immediately after creation and can be changed without affecting the parent.
How Forks Actually Behave
A fork captures the parent's code, preprocessor choices, external resource URLs, and metadata at the instant you click Fork. After that moment the two Pens are completely independent:
- Edits to the parent never propagate to the fork.
- Edits to the fork never affect the parent.
- Preprocessor version upgrades on CodePen's side (e.g., Sass, Babel) apply to both Pens at render time, so a fork can render differently even without code changes.
- External resource URLs (CDN links, assets) are copied verbatim. If those remote files change, both parent and fork will reflect the change on next render — this is not a fork-sync feature.
The UI shows a "Forked from [user]/[pen]" link in the fork's header. This is lineage metadata only; it enables no automation.
Practical Verification Steps
- Create a test Pen with identifiable code (e.g., a comment
// parent v1).
- Fork it.
- Edit the parent (change the comment to
// parent v2) and save.
- Open the fork — it still shows
// parent v1.
- In the fork's Settings panel, confirm the privacy dropdown and preprocessor selectors match the parent's original values, then change one — the parent remains unaffected.
Workarounds
To incorporate parent updates you must either:
- Create a new fork from the current parent state, or
- Manually copy-paste the changed sections.
For drift detection, use an external diff tool (browser dev tools side-by-side, diff on exported files, or a Git repo where you commit both versions).
One Diagnostic Detail
Are you working with a private parent Pen? Private Pens can only be forked by users with access, and the fork defaults to private — but the fork owner can still change its visibility independently. This does not alter the answers above, but it affects who can create the fork in the first place.