Devographics / surveys

YAML config files for the Devographics surveys
43 stars 8 forks source link

Feature: Viewport-percentage length units #23

Closed SebastianZ closed 1 year ago

SebastianZ commented 1 year ago

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

LeaVerou commented 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.

SachaG commented 1 year ago

I'm not sure how to formulate this question… Would this make sense?

Viewport-Percentage Length Units (sv*, lv*, dv*)

LeaVerou commented 1 year ago

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)

SebastianZ commented 1 year ago

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

LeaVerou commented 1 year ago

I think together with the code example, the wildcards make perfect sense and are fine as-is:

image