这里是 Frontend Focus 的中文翻译项目,每周在 己思 平台首发。
翻译及校对:richshaw2015,Yully Che
Highlights how the <input type="number">
element can be somewhat problematic in some scenarios, and offers up a solution.
来源:Hanna Laakso
From September 1, any new certificate valid for more than 398 days will be rejected by Apple’s Safari browser. While this is a Safari only move for now, if this catches on it might affect how you manage your TLS certificates.
来源:The Register
Covers the significance of establishing code guidelines and standards at the beginning of a project, and the importance of evolving those standards as a project progresses.
来源:Brad Frost
This update briefly discusses the first drafts for four specs: CSS Color Module Level 5, Media Queries 5, CSS Transforms Level 2, and CSS Conditional Rules Level 4.
来源:W3C
The web browser can now detect when a webpage is unavailable and will offer to search the Wayback Machine for a backup. The feature isn’t just for 404 errors though, as it will also trigger when hitting a 408, 410, 451, 500, 502, 503, 504, 509, 520, 521, 523, 524, 525, or 526 error.
:format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/66376265/brave_lCit4VijLK.0.png)
来源:Jon Porter
使用更精准的叫法,例如 select
、ARIA Listbox
、datalist
、ARIA Combobox
、Autocomplete
、ARIA Menu
、details/summary
、Disclosure Widget
、Accordion
、Fly-out Navigation
、Custom Display Selector
、Otherwordingness
。
This is a little opinionated because there does seem to be a place for the term, but getting the terminology right in the 11 instances discussed is important.
来源:Adrian Roselli
Each of the 10 methods has an accompanying chart that looks at various pros/cons including accessibility, browser support, layout/reflow, performance, and more.
来源:Craig Buckler
The concept here is based on the fact that the values of CSS custom properties aren’t evaluated until they’re used. This kinda sorta resembles ‘currying’ in JS.
:root {
--card-padding: 40px;
--card-background: #FAFAFA;
}
.card {
padding: var(--card-padding);
background: var(--card-background);
}
来源:Trys Mudford
Dave has created a “living document” (that he intends to keep updated) that references different problems various sources have found with the accessibility of certain HTML elements.
来源:Dave Rupert
Subjects discussed include request rates, down time, HTTP status codes, delegating business logic, CORS, and cache busting.
来源:Alexander Wang
As the author points out, this might be the only article that covers negative margins in-depth (though it doesn’t go into flexbox and grid).
来源:PETER-PAUL KOCH
If you’ve never really had a use for this feature, but want to know how it works, this is easy to follow with some simple demos.
window.requestAnimationFrame(function () {
console.log('it ran!');
});
来源:Chris Ferdinandi
A step-by-step tutorial building a search bar component. Good for those already familiar with Vue but maybe want to see another developer’s perspective on component composition.
来源:Marina Mosti
来源:Jeremy Likness
This nifty browser-based tool can create smooth looking layered box-shadows
. There is also an accompanying Figma plugin.
来源:Philipp Brumm
140 icons in total, available in solid or outline style.
来源:refactoring ui
Another icon set, this time a collection of retina-ready icons built in CSS.
来源:Astrit Malsija
The mega-popular performance and website quality tool is now available as a Firefox extension.
来源:Mozilla
Ostensibly can be done using a single line of code. Free for sites up to 10k page views per month and there are paid plans after that.
来源:pep.dev
View examples here. This is a lightweight, flexible, WebGL-based panorama viewer built on top of Three.js.
来源:Ray Chen
来源:Web Font of the Week
There’s a deeply personal story behind this font initiative, and although finding a practical use for it may prove tricky, it has been created to raise awareness and fund Parkinson’s research.
译者注:如需了解,请查看原文。
译者注:如需了解,请查看原文。
Copyright © 2015-2022 BY-NC-ND 4.0