Open jamesnw opened 1 week ago
Describe the bug If a anchor-name is defined inside a media query, the context of the media query is stripped out. This means that you can't use the polyfill to dynamically select the anchor based on screen size or other media queries.
anchor-name
To Reproduce
@media print
Expected behavior Media Queries should be respected for the anchor-name
Browsers tested on Safari
Describe the bug If a
anchor-name
is defined inside a media query, the context of the media query is stripped out. This means that you can't use the polyfill to dynamically select the anchor based on screen size or other media queries.To Reproduce
@media print
block, even though the non-polyfilled declarations are not applied.Expected behavior Media Queries should be respected for the
anchor-name
Browsers tested on Safari