Repository navigation
feat(style): record own visibility after cascade - #2
Open
lanyue-llk wants to merge 4 commits into
Open
lanyue-llk wants to merge 4 commits into
lanyue-llk wants to merge 4 commits into
Conversation
Author
Author
|
更正此前“已归并到 #1、#2 重复”的说明:复核后确认两项 PR 解决的是不同问题。#1 是 preferred text scale 环境支持;本 PR #2 提供 Moli #919 实际需要的 resolved visibility / final opacity content provenance,不能由 #1 替代。 本 PR 已同步 Stylo |
This was referenced Oct 8, 2026
lanyue-llk
force-pushed
the
codex/moli-style-provenance
branch
from
October 22, 2026 04:11
1032a29 to
e2baa14
Compare
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.
Why
Moli's Markdown export distinguishes an inherited page-loading veil from an explicit hidden subtree. Only the resolved cascade can tell whether the element establishes its own
visibilityvalue after variable substitution and cascade rollback.Change
Record
HAS_OWN_VISIBILITYwhen the winning declaration is applied. This is a read-only style fact; consumers do not parse stylesheets or repeat the cascade.The base is
moli-update-main-20261018, the Stylo revision already pinned by Moli main (973988b9). The diff contains only the flag and its cascade assignment. The earlier animation-opacity API has been removed because current document export does not use paint effects to select source content.Consumer and validation
Moli #1337 consumes the flag in a single style-observation batch. Its page-export tests cover inherited visibility, explicit hidden descendants, variable substitution, cascade rollback, disclosure panels and ordinary article siblings. All 28 Markdown renderer tests and affected-crate Clippy pass against this revision; the published historical benchmark remains bound to its original binary.