Commit 265751e
committed
fix(painter-dom): restore viewing-mode hover suppression on inline SDTs (SD-3110)
The previous fix added a second chained :not([data-appearance='hidden'])
to the inline lock-hover rule, which bumped its specificity from (0,4,0)
to (0,5,0). The viewing-mode suppression rule below sits at (0,4,0), so
it lost the cascade and the lock-hover blue re-appeared on hover in
viewing mode — regressing the SD-2232 behavior test
"inline SDT hover does not show background in viewing mode".
Collapse the two predicates into a single :not(a, b). Comma-list :not()
takes the max specificity of its arguments, not the sum, so the selector
stays at (0,4,0), viewing-mode suppression wins again, and the
hidden-appearance exclusion is preserved.
Verified: 22/22 SDT behavior cases on chromium, 44/44 on firefox+webkit;
painter-dom unit tests still 1071/1071.1 parent 3ac7c40 commit 265751e
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| |||
0 commit comments