Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Update @viewport docs to say it's going away #3404

Closed
wbamberg opened this issue Jun 23, 2020 · 6 comments
Closed

Update @viewport docs to say it's going away #3404

wbamberg opened this issue Jun 23, 2020 · 6 comments
Assignees
Labels
Content:CSS This is related to CSS content

Comments

@wbamberg
Copy link

As per w3c/csswg-drafts#4766, the @viewport at-rule isn't supported in any major browsers at the moment, and is due to be removed from the spec. We should update our docs accordingly.

See also mdn/browser-compat-data#6213.

@wbamberg wbamberg added the Content:CSS This is related to CSS content label Jun 23, 2020
@chrisdavidmills
Copy link
Contributor

To start with, I've had a play with putting the deprecated notice on top of https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/@viewport, plus a note to point to the standards track removal discussion.

I'll put this into the next sprint, where I'll finalise that work, and update the BCD accordingly.

@karlcow
Copy link

karlcow commented Jul 1, 2020

This statement is not completely true. Blink has a kind of support for it as they use it in their own default css, but I'm not sure this is accessible to web developers.

the @Viewport at-rule isn't supported in any major browsers at the moment

https://bugs.chromium.org/p/chromium/issues/detail?id=1101182

Probably a test would help understand if it's still active in Chrome or not.

@rachelandrew
Copy link
Collaborator

I've been looking into this and there is now a note on the Chrome bug referenced above:

"@Viewport was never shipped to authors (apart from via an experimental flag in Chrome) and is only parsed used as an implementation detail for the default viewport on mobile."

Do we need the big BCD table for all the different descriptors? Or would dropping this down to one line for viewport be reasonable at this point. What else needs doing on the MDN page when something is being removed @chrisdavidmills ?

It does still appear to exist in the Editors Draft of the spec, so presumably that update hasn't been made yet.

@chrisdavidmills
Copy link
Contributor

@rachelandrew This is a good question. The page already has a deprecated notice up top, and I'd support you replacing the BCD with a single line — the different rows are all pretty similar anyway. I think that would be sufficient, once the removals are actually done.

@rachelandrew
Copy link
Collaborator

@chrisdavidmills BCD for this is now merged.

@chrisdavidmills
Copy link
Contributor

@rachelandrew cool, in that case it should appear soon enough on the page. I'll close this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS This is related to CSS content
Projects
None yet
Development

No branches or pull requests

4 participants