Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
206 views
in Technique[技术] by (71.8m points)

css - Home page of visually-hidden?

I can't find it on GitHub. Where does the pattern live and grow? I found at least 10+ it's versions, Including: Click to see an Image

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The .visually-hidden and its properties are a documented CSS pattern versus a maintained project by any single source. You can find references to it in this 2011 snook.ca article as .element-invisible, this 2015 The A11Y Project article as .visually-hidden, and HTML5 Boilderplate project here as .visuallyhidden.

I believe the Snook.ca article is the first source of this variation of the pattern.

The exact syntax and formatting are a bit different between each reference, but the properties are mostly the same with the exception of some minor differences such as the H5BP project removing legacy Internet Explorer support.

I don't have an exact number, but I am sure this code or variations of it show up in dozens, if not hundreds, of projects.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...