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

推荐订阅源

T
Threatpost
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
D
DataBreaches.Net
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security Blog
B
Blog
U
Unit 42
有赞技术团队
有赞技术团队
博客园 - 聂微东
GbyAI
GbyAI
宝玉的分享
宝玉的分享
F
Full Disclosure
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MyScale Blog
MyScale Blog
Jina AI
Jina AI
Martin Fowler
Martin Fowler
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
P
Proofpoint News Feed
A
About on SuperTechFans
I
InfoQ
博客园 - 【当耐特】
C
Check Point Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog
Project Zero
Project Zero
WordPress大学
WordPress大学
小众软件
小众软件
AWS News Blog
AWS News Blog
博客园 - 司徒正美
T
The Exploit Database - CXSecurity.com
L
LINUX DO - 热门话题
I
Intezer
Engineering at Meta
Engineering at Meta
C
CXSECURITY Database RSS Feed - CXSecurity.com
J
Java Code Geeks
T
Tenable Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes

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 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 fantasai 21: Firefox and Switching Styles 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 37: CSS3 Text Evolutions
2006-02-21 · via fantasai: Weblog

2006-02-20

It's been a long time since I've given a status update on CSS3 Text, and I really owe a public draft. Hopefully we'll have one out soon, but in January I didn't feel I had completed enough of interest to warrant a new public draft. Right now the draft is changing quickly, though, and I want to have things out where people can comment.

First off, Paul Nelson of Microsoft is now co-editing the CSS3 Text draft with me. He works on international typography and related things at Microsoft and is heading work on Internet Explorer in Beijing as of this year. The two of us finally met last week. Between that and having a little more leeway for procrastinating on my other work, I'm doing a bit more on the CSS3 Text draft this month, heh. The annual W3C Technical Plenary is coming up, too, and I expect a lot of refinement and ideas from that.

One of the major themes in the revision of CSS3 Text is reducing the complexity in the spec. There were just too many properties and property combinations in the old CR, and this complexity is painful for both authors and implementors. We're aiming to simplify the spec so that it satisfies most needs without overburdening the language or the UA. The constraints for this revamp are:

  • maximize useful functionality
  • minimize complexity
  • align with what's already implemented, if anything

Obviously there's a tradeoff, and the trick is to aim for a solution that balances all three well.

The other major theme is speccing out more detail. Many properties were underspecified in the old draft, assumed esoteric knowledge in the unfortunate developer, left out lots of details, ignored interaction with other parts of the spec, or fell back on unspecified "language-specific" behavior. The point of having a spec is to make the spec-writer do the research once for everyone so the developers don't have to do it once apiece. (Well, that and it makes interoperability more attainable.)

I revamped white space, line breaking, and text wrapping last time and did a first pass on justification. Here's what I'm working on right now:

General Text Justification

The next draft adds support for Tibetan justification. I'm also in the midst of improving the justification prose in general. There will be more details on Arabic, a few corrections in the table (which has been reorganized to make it clearer), and the size value will be dropped. Paul plans to write an appendix on kashida justification.

East Asian Justification Trimming

Tweaking extra space in punctuation and kana glyphs is a common justification technique for East Asian text. We need to work out the details of exactly how that works, how it interacts with regular justification, how it applies to non-justified text, and whether indeed we need two separate properties to control it, as CSS3 Text CR specifies. There's someone from the Japanese company Justsystem coming to the plenary; he can expect to be ambushed and interrogated on said topic.

Text Decoration

We think there are too many text-decoration properties right now and would like to reduce them. I mean, how often do you want to set a red dashed underline with a blue wavy overline and a strike-through that's 5px thick and skips white space? Probably not often enough to offset the cost of the extra complexity needed to make that possible. We would like to keep the ability to pick colors and styles for the text decoration, though. They'll just all have to be the same when you have multiple decorations on the same element. :)

Shadows and Outlines

Text shadows are nothing new, but they're back in. I'm also adding a text-outline property in response to feedback from another WG. We'll see how they hold up under CR criteria.

One potential problem is the stacking rules. If I have a text shadow up and to the left, I believe, under normal line stacking rules it will paint over the actual text of the previous element. I'll have to see what Safari does, but I'm pretty sure we'd like to avoid that if possible, especially since it'll show up at otherwise invisible element boundaries.

Emphasis Marks

We decided to steal the font-emphasize property from the CSS3 Fonts draft and rename it text-emphasis. (We might give the Fonts module our kerning properties as compensation.)

Hanging Punctuation

The idea here is to take away the language-specific aspect and let the author decide whether they want just the first line's punctuation to hang or all lines to be affected. We also need to define which punctuation hangs, and how that interplays with justification and text indents.

Automatic Ellipsis

The text-overflow property has already been implemented by both IE and Safari. They don't really agree on how to do it, though. I need to sit down with Windows and Mac computers side by side and figure out what, exactly, they're doing. Then we need to figure out what, exactly, they should be doing, and then spec that. The old CR also has a few extra controls for this behavior, which may be dropped if there isn't a good argument for keeping them.