CSS WG Blog front page

This is a page from the Cascading Style Sheets Working Group Blog. Some other places to find information are the “current work” page, the www-style mailing list, the Future of CSS syndicator, and the issue list on Github.

Do you want to know how the CSS WG works? Fantasai has written about:csswg, An Inside View of the CSS Working Group at W3C.

Resolutions 2007-09 Beijing Part IV: CSS3 Borders

By fantasai September 25, 2007 (Permalink)
Categories: resolutions

border-radius Shorthand Syntax

Overlapping Radii

Inner Border Radius

Style Transitions

Resolutions 2007-09 Beijing Part III: Rotation

By fantasai September 24, 2007 (Permalink)
Categories: resolutions

Rotation

We reviewed Steve’s email and also an internal generic “transform” proposal from Hyatt (which Hyatt will hopefully post to www-style at some point), spending most of the day discussing exactly how “rotation” would fit into the CSS layout model.

Rotation is still at a very experimental stage in CSS, so the following are not final decisions.

Resolutions 2007-09 Beijing Part II: Japanese Layout and Vertical Text

By fantasai September 24, 2007 (Permalink)
Categories: i18n resolutions

Japanese Layout

Status

The W3C has a Japanese Layout Task Force, which is a joint effort of the I18n, XSL, SVG, and CSS working groups. Their current goal is to document layout requirements for Japanese documents so that W3C working groups can incorporate them into their respective technologies. Most meetings are face-to-face in Japan in Japanese, but there was a bilingual F2F last week in Tokyo, and fantasai was able to attend for the CSSWG and report back. The intention of the task force is to create a W3C Note in English. So far only Part I, which mostly covers page-level layout, has been written and translated. The task force plans to finish most of parts II and III by the November 2007 W3C Technical Plenary.

RESOLVED

Vertical Text

RESOLVED

DBaron Principle
The DBaron Principle states: If the most important cases are handled by a reasonable specification, then the remaining edge cases can be treated by a simple rule that everyone agrees to implement interoperably, even if that rule is not ideal in all cases.

Resolutions 2007-09 Beijing Part I: CSS2.1 and CSS Validator

By fantasai September 24, 2007 (Permalink)
Categories: resolutions

The CSS Working Group has about three face-to-face meetings a year. This September we had one in Beijing. Since our face-to-face meetings are approximately 24 hours of solid discussion (split across three days), I’m going to break the resolutions reports up by topic.

Margin Collapsing (CSS2.1)

RESOLVED

CSS2.1 Test Suite Status Report

Status

Other notes

CSS Validator

RESOLVED

Backlog: Resolutions

By fantasai August 29, 2007 (Permalink)
Categories: general resolutions

As I mentioned before, the CSS Working Group has adopted a policy of posting an unattributed summary of the resolutions and rationale for each decision to www-style. Richard Ishida recently suggested I also post these to the weblog, so as a start, here’s a blacklog for the past few telecons.

Resolutions 2007-08-07

RESOLVED

Other notes

Resolutions 2007-08-14

RESOLVED

Other notes

Resolutions 2007-08-21

RESOLVED

Other notes

Resolutions 2007-08-28

RESOLVED

Other notes

Backlog: New Drafts

By fantasai August 29, 2007 (Permalink)
Categories: publications

The following drafts were recently published and announced, but not announced here, so I’m announcing them now and hoping our editors will announce their own drafts in the future.

CSS3 Basic Box Model
This module describes the box layout of CSS documents in visual media, i.e. the foundation of the CSS visual formatting model. It should be equivalent to chapters 8, 9, 10, and appendix E in CSS2, minus positioning and generalized to describe vertical layout as well. It also includes some new features: overflow-x, overflow-y, marquee, and rotation.
CSS3 Advanced Layout Module
This module defines a template-based layout model that allows visual ordering independent of document order, positioning and alignment of user interface widgets, and page and window grids.
Media Queries
This module allows more precise media queries. Rather than just ‘screen’ vs. ‘print’ vs. ‘handheld’, you can also query based on device’s height, width, aspect ratio, resolution, and color depth, among other things.

You can find a list of all our other CSS drafts on the current work page.

CSS Validator UI

By fantasai August 28, 2007 (Permalink)
Categories: general

The W3C recently had two interns working on the W3C CSS Validator. One of them will be returning in September to work a bit on the user interface, and the W3C wants to know what other UI improvements should be made to the validator. So far our list includes:

Anybody else have suggestions? Trackbacks are enabled, or send feedback to www-validator-css.

New W3C CSS Working Group Mailing List Policy

By fantasai July 31, 2007 (Permalink)
Categories: general

The W3C has two mailing lists dedicated to CSS: the public www-style, and the W3C-internal w3c-css-wg. Today the CSS Working Group formally adopted the following policy:

CSS 2.1 is a Candidate Recommendation

By Bert Bos July 20, 2007 (Permalink)
Categories: publications

The CSS WG published the new Candidate
Recommendation (CR) for CSS level 2 revision 1,
with the firm
intention that there won’t be any more working drafts.

There is no doubt that we will still find (small) bugs in the
specification, but given the type of errors we fixed recently, we have
reason to believe that the spec is good enough for implementers and
users alike. We want people to start implementing and using CSS 2.1
for real (and tell us about any remaining problems, of course).

Given that the test suite isn’t complete yet and our information
about implementations is therefore largely based on anecdotal
evidence, we expect that it will be some time before we have enough
tests and enough test reports to progress the specification to
Recommendation. And even if we get more tests rapidly, we will leave
the specification in Candidate Recommendation status for the rest of
this year (2007).

(There is a mailing list dedicated to testing CSS:
<public-css-testsuite@w3.org>
If you’re involved in testing,
or want to be, please join
that list.
)

As usual, the preferred place for comments on CSS 2.1 is the
mailing list
<www-style@w3.org>,
and if you send something, please,
prefix the Subject line with [CSS21].

We are in particular looking for input from implementers: if you
write software for (some part of) CSS 2.1 and you run into problems,
we want to hear about it.

The changes relative to the old CSS2 Recommendation are in appendix C and the last set of issues solved since the last working draft are in a separate document.

CSS is still growing and we expect to add new features, but further
specifications will be in the form of smaller, partial specifications,
called
Modules.
(Several already exist and more are coming.) Those
modules will progressively replace CSS 2.1. But the way it looks now,
that will be several years of work.

Anyway, I’ve treated my colleagues to champagne today, to celebrate
CSS 2.1. I hope you enjoy the new spec, too.

Rotations and non-rectangular floats

By Bert Bos July 3, 2007 (Permalink)
Categories: general

Aaron Gustafson asked last week in an article called

“Wouldn’t it be nice?”
for rotation of text over arbitrary angles
and for wrapping text around non-rectangular floating images.

[image of a table with diagonal column headers]

Diagonal column headings save space and make the
table easier to read.

I remember discussing diagonal text when the CSS WG first added
support for tables. It often makes tables with many column easier to
read when the column headers are vertical or diagonal.

At the time, we didn’t expect rotated text to be possible in many
browsers soon. We also thought that at some point vertical text would
be added, because of languages such as Japanese, and we were happy to
leave angles other than 90° to SVG. (We are also going to have 90°
rotations of images.
)

Although it was (and is) not yet clear how to put a diagonal
heading on an HTML table with the help of SVG, from the point of view
of modularity and because of the extra possibilities that SVG
promises, we decided to focus CSS on typography and leave graphic
design for later, possibly to SVG. (It is difficult to draw the line,
but there are clearly things that are better done with one than with
the other.)

Reasons of usability may still make it desirable to add some cases
to CSS, but rotation is not a simple thing to add. The easiest may be
to rotate an element after layout and not care about overlapping other
elements (the same way relative positioning doesn’t affect other
elements). It is not clear if that is enough to put diagonal headings
on tables, though.

We will probably add a proposal for rotated blocks to the Box
Module, but we’ll have to see how much chance it is has of being
implemented.

[Image of a
flower with text wrapping around the right side]

An example of text wrapping around a
non-rectangular floating image.

Polygonal margins (instead of rectangular ones) around
floating elements is also something that was first discussed long ago.
Traces of that discussion can still be found in drafts of CSS
level 1.

One idea was to describe the shape of the float in CSS (as in
Aaron’s proposal). That is a powerful way to describe a shape, but it
is not so easy for the designer. Finding the error if the shape
doesn’t work as expected can be tedious. And every image needs its own
rule in the style sheet.

In most cases, the shape is the shape of the image and a more
direct and visual way is thus to put the image on a transparent
background and let the CSS renderer determine the shape by itself. A
single rule

img {float: left contour}

is then enough to wrap text tightly around all images, no matter
what their shape.

A famous hack to create the illusion of non-rectangular floats is

Ragged Float
(and its variants,
Curvelicious
and
Slantastic
), due to Eric Meyer.

Non-rectangular floats are simple enough for the writer of a CSS
style sheet, especially with the ‘contour’ keyword, but implementing
them is a bit more difficult. With rectangular floats, determining
where to break a line is a matter of looking at the width of words.
But adding or removing a word from a line may change the line’s height
and when floats are not rectangular, a tall line may not fit where a
lower line would. And imagine putting one floating image next to
another… (Not that that is a common thing to do, but a browser still
has to be able to handle it.)

There are some questions about how margins are added to irregularly
shaped floats, but I think ‘contour’ is still relatively easy to add,
and I would support any lobbying to get it implemented.

« Newer articles Older articles »

Archives

(Also available as Atom news feed.)

Browse by date:

Browse by category:

[Photo: group photo of the CSS working group in San Francisco] Contact: Bert Bos
Copyright © 2020 W3C®

Last updated 2026-03-06 17:10:32.000000