Closed SebastianZ closed 1 year ago
Agreed, we should definitely ask about this. We should list out the units though, otherwise people will have no idea and think we're asking about the old viewport units.
I'm not sure how to formulate this question… Would this make sense?
Viewport-Percentage Length Units (
sv*
,lv*
,dv*
)
Hmmm if people don't know what the wildcard represents, they will not be able to answer, but also we can't list 3 × 4 = 12 units. Maybe just list the w and h versions as examples? Something like:
Viewport-Percentage Length Units (e.g.
svw
,svh
,lvw
,lvh
,dvw
,dvh
)
also we can't list 3 × 4 = 12 units.
Just for the record, there are 20 new units in total when including the logical versions.
Anyway, I agree that some of them should be picked as examples as they are too many and wildcards might be confusing to some people.
Sebastian
I think together with the code example, the wildcards make perfect sense and are fine as-is:
Spec: https://drafts.csswg.org/css-values/#viewport-relative-lengths MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/length#relative_length_units_based_on_viewport
(Split off from #1)
As they are already implemented in Gecko and WebKit, they should probably be added to the survey.
Sebastian