-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-values-4] Restrictions on UA-default viewport units (unprefixed v*) #6454
Comments
Thanks for creating this issue! I hope I'm not overstepping here, but I would like to share some of my thoughts around this proposal. Due to the three reasons listed below, I would suggest that Backwards compatibilityGiven that, since 2015, the Browser inconsistencyIf For example, Browser1 could have it be If that's the case, I honestly can't think of a time that a web developer would ever want that experience. Working with browser inconsistencies is bad enough; working with things that are intentionally inconsistent would, I think, essentially lead all web developers to just throw their hands in the air and say "There is never a case that you should use Which leads me to my last point: Sane/Good defaultsGiven that A Potential Counter ProposalWith all that said, I DO still think it would be nice to give browser vendors a unit to play around with, and web developers a unit that always matches exactly; do you think However, if |
I just discovered that webkit engineers appear to be working on the new That said, are there any thoughts on my concerns about how the bare Thanks 🙂 |
As part of the Interop 2022 Viewport Investigation Effort we noticed that all tested User Agents use the Large Viewport as the UA-Default Viewport. We think it would be feasible to update the spec updated on this matter, to state that the UA-default viewport size (and its units) is an alias for the large viewport size. |
Agenda to accept bramus's proposal to just say v* === lv* |
Will this involve noting in the spec that the |
The CSS Working Group just discussed
The full IRC log of that discussion<dael> TabAtkins: A while back when defining the set of viewport units there was a question what old version should be. The plain ones<dael> TabAtkins: Defined as undefined but have to between small and large. I believe at the time UAs were inconsistent <dael> TabAtkins: Now the test we performed seem to show unprefixed is large viewport is where people converged. Would like to spec that <dael> astearns: Comments? Concerns? <dael> astearns: I see some research. Do we have WPT? <dael> TabAtkins: I believe research was based on WPT but we can make sure to cover <dael> TabAtkins: Issue is difference between units only shows on mobile, but WPT coverage of mobile is underdeveloped. There is work on that <dael> astearns: Prop: Define how new and old viewport units interact and that old units are eq. to large viewport units <dael> astearns: Obj? <dael> RESOLVED: Define how new and old viewport units interact and that old units are eq. to large viewport units |
For the record, I'm very disappointed that this didn't end up mapping to the small viewport units, because we do have a principle to avoid dataloss by default, and the lv* units can and do cause dataloss in many cases. |
In #4329 we added three sets of more explicit viewport units--the small, large, and dynamic viewport units
sv*
,lv*
, anddv*
--and left the unprefixed viewport units to be UA-defined.The current wording of the spec is:
Are there any other restrictions we should be adding to the UA's choices here (besides svh <= vh <= lvh)?
For example, the sv* and lv* units are explicitly not dynamic (this is their whole purpose). Should v* be likewise restricted to a non-dynamic interpretation, so that components using them are not resized as one scrolls?
The text was updated successfully, but these errors were encountered: