Re: [csswg-drafts] [css-device-adapt] Should Device Adaptation include a normative definition of <meta> viewport? (#331)

To enable a CSS solution (perhaps a less powerful `@viewport` rule, to be extended if needed in future levels), which would be definitely better in terms of separation of concerns (it's styling after all, not document semantics) and applicable beyond HTML, as well as serve @bradkemper's [use case](https://github.com/w3c/csswg-drafts/issues/258#issuecomment-230075955) (which is general and in my opinion important), I suggest specifying it anyway and adding some hints which user agents can heed to improve performance. Like an additional link relation indicating that the linked resource is likely to influence the viewport. Link relations can be used in HTML `rel` and `rev` attributes as well as in HTTP headers, in both directions (also with `rel` and `rev` parameters). Maybe even `@viewport` should be defined to do nothing in an external stylesheet if it doesn't have this link relation with the resource whose representation is styled.

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


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

Received on Sunday, 31 October 2021 00:06:19 UTC