惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Spread Privacy
Spread Privacy
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Security Archives - TechRepublic
Security Archives - TechRepublic
S
Secure Thoughts
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
Security Latest
Security Latest
TaoSecurity Blog
TaoSecurity Blog
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Cloudbric
Cloudbric
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
H
Hacker News: Front Page
C
Cybersecurity and Infrastructure Security Agency CISA
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
AWS News Blog
AWS News Blog
AI
AI
G
GRAHAM CLULEY
IT之家
IT之家
P
Privacy & Cybersecurity Law Blog
L
Lohrmann on Cybersecurity
Last Week in AI
Last Week in AI
D
Docker
Recent Announcements
Recent Announcements
O
OpenAI News
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
Troy Hunt's Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic

fantasai: Weblog

Change of Affiliation Thoughts on the W3C’s May 2020 Advisory Board Election fantasai 69: Process 2020 Revision Thoughts on the W3C’s May 2019 Advisory Board Election Running for the W3C Advisory Board Designing CSS Thoughts on the May 2018 W3C Advisory Board Election Environmental Sustainability Recommendations for Mountain View Buildings fantasai 63: The Way of Music fantasai 62: How To Wash Dishes Open Letter on the Iran Nuclear Deal Recipe for a Minimum Viable Kitchen Creating a Paid Contributor Agreement for Mozilla On Brendan Eich and the Separation of Concerns fantasai 57: 2012 TAG Election Endorsements fantasai 56: Approaching UTR50 Evolution of CSS Layout Job Description of a Standards Engineer fantasai 52: about:csswg fantasai 53: W3C Process Holes fantasai 51: about:fantasai fantasai 50: Hiatus E Pluribus Unum Towards a Unified Ruby Model Creating the Future of CSS Testing (2011 Edition) Creating the Future of CSS Testing (2009 Edition) CSS2.1 and the Case for Collaborative Testing Introducing Brad Kemper, CSSWG Invited Expert fantasai 44: Layout Is Expensive CSS Working Group Charter 2008 fantasai 42: Riddle of the Universe Pulling Back the Curtain: Opening Up the CSS Working Group What is the CSS Working Group doing? The True Story of mpt and fantasai fantasai 38: Long Vacation fantasai 37: CSS3 Text Evolutions fantasai 36: What is Mozilla? fantasai 34: Empty fantasai 33: When to use PDF fantasai 32: Revised CSS3 Text fantasai 31: The Art of Semantics fantasai 30: Travel Notes fantasai 29: Filibuster Frist fantasai 28: UTN 22 fantasai 27: SSSS fantasai 26: CSS and Multi-Script Text fantasai 25: Free As in Freedom fantasai 24: The Law of Hospitality fantasai 23: Organizing the Documentation Effort fantasai 22: Yom Kippur Link Types for RSS and Atom Feeds fantasai 19: An Absence of Aesthetics Sitting on the Outside, Looking Up fantasai 17: A Touch of Class fantasai 16: Task Force fantasai 15: W3 fantasai 13: A Stitch in Time fantasai 11: What Is Love Content and Hype (English Composition for Marketers) fantasai 10: Reviewer at Small fantasai 09: Losing it fantasai 08: Personality Type fantasai 07: Happiness fantasai 06: Moving fantasai 05: Black Tuesday fantasai 03: Words of Wisdom fantasai 02: Big and Small fantasai 01: Why validate your pages? fantasai 00: Experiment
fantasai 21: Firefox and Switching Styles
2004-09-24 · via fantasai: Weblog

2004-09-23

Fixes

I had decided to take another shot at Bug 32372: should be able to disable CSS towards the end of this past spring. (My first one triggered a layout crasher that has since been fixed.) Once I'd written a fix for it on the 1.8alpha3 trunk, I queried Ben to see if he wanted the feature backported to the Aviary 1.0 branch, then filed bug 253332 and wrote a patch to do just that.

So when Brendan wrote about over-enthusiastic feature removals on the Aviary branch, he tapped me and asked if I could fix the buggyness in the switcher so he could argue for its re-introduction. I told him I'd work on it, but I needed 253332 checked in to do it.

Once the patch for 253332 had been checked in, I closed off all but one of the existing Firefox AltSS bugs in short order:

  1. 220975 - Style sheet selector does not display "No Theme" for pages without a base stylesheet (but shows Basic Theme) [FIXED by checkin for 253332]
  2. 224250 - Selecting "No Theme", then reselcting "Basic Theme" doesn't reapply styles [FIXED by checkin for 253332]
  3. 220649 - No Theme Selection Not Available on CSS sites that don't offer alternate stylesheets [FIXED by patch]
  4. 216424 - Can't use stylesheet switcher from keyboard [FIXED by checkin to 220649]
  5. 257157 - Alternate Style Icon shown even when no alternate styles (only one preferred one) [FIXED by patch]

Together with the fix for 253332, the effect of these changes is:

  • The alternate style switching menu has a real No Style option that disables the author style level entirely (from within Gecko). This affects linked style sheets, embedded style sheets, style attributes, and presentational HTML like <font> tags.
  • The alternate style icon is a reliable indicator of when alternate styles are available, not of when one of the style sheets happens to have a title.
  • A new submenu, View > Page Style, has been added to allow style switching from the menus. This makes the switcher accessible from the keyboard and makes the No Style option available on sites that don't offer an alternate style (and therefore won't have the switcher icon).
  • Firefox (in addition to the Mozilla trunk builds) supports document.preferredStylesheetSet.
  • Basic Page Style only shows up on pages that don't have a preferred style. This is consistent with the original intent that "Basic Page Style" only serve as a placeholder label for pages that otherwise don't have a title for their default style selection.

As Brendan noted in his roadmap post, the Aviary team re-enabled the AltSS UI on September 9th.

However, there's still one major bit of missing AltSS switching functionality, and that's selection persistence. Rob Tougher's Style Sheet Chooser extension does take care of this, but it does so in a way that I'm not comfortable adding to Firefox core. (I tried to write a temporary JS fix myself, but after spending a week exploring Mozilla's documented and undocumented interfaces for a way to trigger at the right point in page loading, I decided it wasn't worth it.) Either way, the real fix for persistence will come when bugs 200930 and 83663 are fixed, both major changes to Gecko. (Boris and I have plans for those two.)

UI Notes

There have been some questions about adapting the UI to handle this situation. We don't want users to consider the feature useless and ignore it even once we have persistence just because it doesn't persist now. One person suggested removing the AltSS UI altogether and leaving the No Style option as a main menu item in place of the Page Style submenu. However, I believe the best course is to remove the statusbar icon and to leave the View submenu intact. Once we have style history implemented, then we can put back the icon.

Advantages to this approach:

  • The placement (and checkbox vs. radio behavior) of the No Style option is consistent across releases.
  • No Style (which is drastic and certainly not more commonly-used than text zoom) is tucked away in a submenu along with related items.
  • The style switching functionality is not removed. (It's not broken or notably buggy anymore anyway.)
  • The icon is not drawing the attention of users yet, so they won't try it, be disappointed at the lack of persistence, and ignore it in the future.
  • Once we've got the style history working and are confident in how the feature behaves, we can use the addition of the icon as a non-intrusive way of advertising style switching to the user. (It will draw attention to the new persistence scheme for people who already know about the Page Style submenu, too.)

Notice

This should go without saying, but.. if you don't have any comments that will help us fix a given bug, don't comment in the bug report. (I.e. encouragement is not encouraged.) You can add yourself to the CC list or vote for it, though.

Dare to dream.