- vừa được xem lúc

How to emulate CSS user preference media features | DevTools Tips

0 0 17

Người đăng: Google Chrome Developers

You can use DevTools to emulate user preferences like device orientation, light/dark themes, color contrast, reduced motion and more. DevTools is your best friend in building user adaptive interfaces.

Learn now on today’s episode of DevTools Tips with Adam Argyle and Jecelyn Yeen.

Chapters:
0:00 - Intro
0:24 - What are user preference media features
1:13 - Why do we need DevTools?
1:34 - Simulate mobile devices with Device Mode and Sensors tab
1:44 - Render CSS media features with the Rendering tab
1:57 - Emulate light and dark themes
2:13 - Shortcuts to emulate light and dark themes
2:39 - Emulate reduced motion
2:53 - Emulate contrast preferences
3:00 - Emulate forced color preferences
3:08 - Emulate reduced data preferences
3:17 - Why build user adaptive interfaces
3:29 - Emulate user preferences with Run Command
3:44 - Learn more

Links:
New responsive → https://web.dev/new-responsive/
Emulate CSS media features with DevTools → https://goo.gle/devtools-emulate-css
Simulate mobile devices with Device Mode → https://developer.chrome.com/docs/devtools/device-mode/
Emulate location and device orientation with Sensors tab → https://developer.chrome.com/docs/devtools/#sensors
Workshop: Build user-adaptive interfaces → https://youtu.be/865olcAfwFg

Catch more DevTools Tips → https://goo.gle/DevToolsTips
Subscribe to Google Chrome Developers → https://goo.gle/ChromeDevs

#DevToolsTips #Chrome #Developer

Bình luận

Bài viết tương tự

- vừa được xem lúc

CONSOLE.LOG trên chrome iOS, tại sao không ?

Bạn đã biết mình có thể Console.log trên chính chiếc điện thoại của mình hay chưa ? Tôi thật sự kinh ngạc khi lần đầu sử dụng nó và chắc chắc rằng nó sẽ thật sự có ích đối với anh em developer chúng ta. Cách hoạt động:. .

0 0 39

- vừa được xem lúc

Các tiện ích siêu hữu ích cho Testing của Chrome (Phần 2)

Bài viết tiếp tục giới thiệu các tiện ích của Chrome hỗ trợ cho việc test giao diện, clear cookies, và lấy test evidence mà bạn không thể bỏ qua trong quá trình testing. Để đảm bảo hoạt động của một ứng dụng Web đáp ứng được mong đợi và lấy được các dữ liệu và code đúng từ server thì việc quản lý đư

0 0 25

- vừa được xem lúc

10 điều mà bạn có thể chưa biết khi dùng Chrome Dev Tools

Nếu bạn là nhà phát triển web, tôi khá chắc chắn rằng bạn đã quen thuộc với Chrome Dev Tools. Nó có một danh sách lớn các tính năng để hỗ trợ phát triển web.

0 0 23

- vừa được xem lúc

New in Chrome 90: Overflow Clip, Permissions Policy, the Declarative Shadow DOM, and more!

Chrome 90 is rolling out now! There’s a new value for the CSS overflow property. The Feature Policy API has been renamed to Permission Policy.

0 0 24

- vừa được xem lúc

Building for modern browsers: Progressively enhancing like it’s 2003 (German with English subtitles)

Switch on/off English subtitles by clicking on the CC icon. . JS Paint → https://goo.gle/2OaxqPz.

0 0 22

- vừa được xem lúc

Một vài Tips và Tricks trên trình duyệt Chrome hữu dụng mà cả Dev và Test nên biết.

Một vài Tips và Tricks trên trình duyệt Chrome khá hữu dụng mà cả Dev và Tester nên biết. Cái này trước giờ mình cũng ít khi sử dụng nhưng đợt vừa qua nó tại tỏ ra khá hiệu quả trong việc debug của mì

0 0 126