Re: [csswg-drafts] [css-scoping] $a > $b { $property: inherit; } behaves absurdly under shadow DOM transformations such as <details> (#8184)

See this [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cmain%20style%3D%22border%3A%20solid%20magenta%22%3E%0A%20%20bar%0A%20%20%3Cp%20style%3D%22border%3A%20inherit%3B%20margin%3A%205px%22%3Ebaz%3C%2Fp%3E%0A%3C%2Fmain%3E%0A%3Cscript%3E%0Avar%20s%20%3D%20document.querySelector(%22main%22).attachShadow(%7Bmode%3A%20%22open%22%7D)%3B%0Avar%20slot%20%3D%20document.createElement(%22slot%22)%3B%0Aslot.style.cssText%20%3D%20%22display%3A%20block%3B%20border%3A%20solid%20cyan%3B%20margin%3A%205px%22%3B%0As.append(%22foo%22%2C%20slot)%3B%0A%3C%2Fscript%3E). Would you really prefer inheriting the magenta border instead of the cyan one? I wouldn't.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8184#issuecomment-1338244423 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 5 December 2022 22:10:50 UTC