You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2c14438
Browse filesBrowse the repository at this point in the historyBrowse files
message: `Selector "${selector}" requires #${repeatedId} to be nested inside another #${repeatedId}. IDs must be unique, so this selector cannot match a valid composition.`,
410
+
selector,
411
+
fixHint: `Remove the duplicate ancestor: change \`#${repeatedId} #${repeatedId}\` to \`#${repeatedId}\`.`,
412
+
});
413
+
}
414
+
415
+
if(
416
+
!forcesOpacityZero||
417
+
reportedHiddenStyleSelectors.has(selector)||
418
+
!selectorAliasesRuntimeHiddenStyle(selector)
419
+
){
420
+
continue;
421
+
}
422
+
reportedHiddenStyleSelectors.add(selector);
357
423
findings.push({
358
-
code: "repeated_id_descendant_selector",
424
+
code: "runtime_hidden_style_opacity",
359
425
severity: "error",
360
-
message: `Selector "${selector}" requires #${repeatedId} to be nested inside another #${repeatedId}. IDs must be unique, so this selector cannot match a valid composition.`,
426
+
message: `Selector "${selector}" observes HyperFrames' runtime-owned hidden style and forces opacity to zero. The renderer hides each native video before copying its computed opacity to the visible replacement frame, so this rule makes both transparent.`,
361
427
selector,
362
-
fixHint: `Remove the duplicate ancestor: change \`#${repeatedId} #${repeatedId}\` to \`#${repeatedId}\`.`,
428
+
fixHint:
429
+
'Restrict the guard to sub-composition hosts, for example `[data-composition-src][style*="visibility: hidden"]` and `[data-composition-file][style*="visibility: hidden"]`. Do not derive arbitrary element or media opacity from runtime-owned inline visibility.',
0 commit comments