Re: [csswg-drafts] [css-content] Clearer syntax for alternative text for content (#3899)

Regarding the `alt()` proposal: functions in CSS serve to transform data, not to label it.  Most functions can be used in many different properties, creating a new data type.

The `alt()` wrapper might help a developer understand unfamiliar code, but once they _are_ familiar with it, it will just become extra characters to type.

(And quite frankly, the main obstacle to developer familiarity right now is lack of browser support!)

Regarding Christoph's comment, to clarify: you are suggesting that alt text is conceptually another type of fallback, just like different image formats? That may be relevant for `content`, but not in general for images in CSS. How would a text fallback be used for background images or border images or mask images?  So I think it's best to keep image fallbacks (the `image()` and `image-set()` functions) separate from alternative text (which is used for accessibility even when an image is displayed).

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3899#issuecomment-490724941 using your GitHub account

Received on Thursday, 9 May 2019 03:01:38 UTC