-
Notifications
You must be signed in to change notification settings - Fork 4
Use the viewport meta tag instead of a CSS property #1
Comments
Originally I preferred a CSS property over a viewport meta due to the following:
(1) is non-critical hypothetical use-case and (2) seems to being covered by |
@rune-opera @frivoal : does something like the proposed overscroll-action is a good fit for viewport meta and CSS Device Adaptation spec? We like to implement something of the sort in Blink whether it is a new css attribute or a viewport meta. /cc @RByers who had some concerns about @Viewport needing a major overhaul. |
Is really not an argument at all. The new proposal is totally un-supported by all the browsers, and not well specified either. I'd rather fix the existing stuff than add new stuff to the already complicated platform. |
HTML coding and CSS coding is often done by separate teams, often with little or no control over each other. Often the HTML is made available by a vendor for their clients to style/brand, and one such client often has zero chance of changing the HTML. What viewport does (currently as an HTML tag) is clearly presentation style. It should be in CSS. Also, it is very often a logistical nightmare to try to change a tag on every single page of a large site, which may contain old legacy pages, pages done by different teams, third party sub-sites, etc. With one or two (or a few) style sheets though, it becomes a simple matter to make sweeping styling changes, and this is an important reason for viewport styling to be part of linked CSS style sheets. |
viewport behavior is not presentation style. It is way closer to event handling. But anyhow, what I'd like to see here is to first reuse the existing viewport since that is rather commonly supported feature already, and then sort out the issues in https://drafts.csswg.org/css-device-adapt/ and let also CSS to control the behavior of viewport. What I don't want is to invent something totally new for this kind of feature when the platform already has some very similar APIs elsewhere. |
The proposed And similar to |
Olli, @smaug----, suggested that we should perhaps spec this as a new attribute in the viewport meta tag.
The text was updated successfully, but these errors were encountered: