Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix update a style block to match reality and CSSWG resolution.
No browser passed the test-case that was linked from the comment. The algorithm was also inconsistent, as it looked at whether the element was in a shadow tree or in the document tree, but it was only specified to be re-run if the element becomes connected or disconnected. The CSSWG discussed this in w3c/csswg-drafts#3096 (comment) and there are WPTs for this. This also matches the definition of <link rel="stylesheet"> which does use connectedness: https://html.spec.whatwg.org/#link-type-stylesheet
- Loading branch information