Repository navigation
fix(visual): hide et masques appliqués aussi en style inline (règles !important en @layer) - #110
Merged
Merged
Conversation
…!important en @layer) Le <style> injecté perd face à un utilitaire !important déclaré en @layer (Bootstrap de Hummingbird, ex. .d-md-block) : la zone restait visible. Les éléments trouvés reçoivent désormais aussi display/visibility en inline !important (descendants inclus pour les masques), valeurs d'origine mémorisées puis restaurées après la capture, même en échec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Symptôme (vérifié dans l'app sur la boutique Flashlight 9.2 Hummingbird) : un
hidesur.header-topn'avait aucun effet, la capture restait identique (0 px changé).Cause :
visualCheckpoint()injectait seulement un<style>hors couche (display: none !importantpourhide,visibility: hidden !importantpour les masques). Hummingbird range les utilitaires Bootstrap dans@layer utilities(.d-md-block { display: block !important }). Pour les déclarations!important, une règle en couche l'emporte sur une règle hors couche : la règle de la lib perdait. Seul un style inline!importantgagne toujours.Correctif
PageScripts::APPLY_INLINE/RESTORE_INLINE: en plus du<style>(gardé, il couvre les éléments ajoutés ensuite), les éléments visés reçoivent la propriété en style inline!important(masques : descendants compris). Valeur et priorité d'origine mémorisées puis restaurées exactement, en ordre inverse, après la capture, y compris si elle échoue. Un sélecteur invalide n'empêche pas les autres.Vérification
@layer utilities { .d-block { display:block !important } }: style seul → élément visible (bug reproduit) ; avec le correctif → caché ; après restauration → état d'origine (y compris undisplay: flex !importantinline préexistant).🤖 Generated with Claude Code