This doesn't update when view is resized: <div id=test></div> <script> const shadow = test.attachShadow({mode: 'open'}); shadow.innerHTML = ` <style> @media (min-width:700px) { div { color: green } } </style> <div>foo</div> `; </script>
Oh no :(
Created attachment 326208 [details] patch
Comment on attachment 326208 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=326208&action=review > LayoutTests/fast/shadow-dom/media-query-in-shadow-style.html:17 > + }, 50); Can we use 1 or 10?
Created attachment 326215 [details] patch
Comment on attachment 326215 [details] patch Clearing flags on attachment: 326215 Committed r224535: <https://trac.webkit.org/changeset/224535>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35567076>