[Bug 10589] figure and figcaption shouldn't automatically close p

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10589

Henri Sivonen <hsivonen@iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |TrackerRequest

--- Comment #12 from Henri Sivonen <hsivonen@iki.fi> 2010-10-01 10:52:11 UTC ---
Escalating per Decision Policy step 5.d.

I volunteer to write a Change Proposal. The key parts of the proposal will be:
 1) Validity should allow <figure> where <img> is allowed
 2) <figure> should not close <p> in the tree builder
 3) <figure> should be scoping in the tree builder
 4) The display property for figure and figcaption should probably not be block
in the UA style sheet. (I'm not yet sure what the appropriate defaults would
be, but I'm guessing table and table-row respectively.)

Proposed text for Tracker:

Short name:
figure-in-p

Title:
Authors should be able to use <figure> where <img> can be used

Description:
Escalated from http://www.w3.org/Bugs/Public/show_bug.cgi?id=10589

Currently, HTML5 makes it impossible to for HTML authors to use <figure> as a
child of <p>, because <figure> automatically closes <p> in the tree builder.

This is bad for authors on the conceptual level, because <figure> is primarily
supposed to be a way to express images that have a caption, so being unable to
use <figure> in places where <img> can be used is conceptually confusing.

This is bad for authors on the pragmatic level, because given the CSS features
available to authors currently and in the foreseeable future, the easiest way
to make the top edge of a float align with the top edge of the text in a block
regardless of margin/padding/border on the block box is to place the float as
the first child of the block. That is, one would want to place <figure> as the
first child of <p> when making a floating figure associated with a paragraph.
Floating figures are the typical expected use for <figure>.

For <figure> to be useful to authors, it is essential to make it easy to use
<figure> where <img> can be used and, in particular, to make it easy to use
floating figures within the practical constraints arising from the CSS
formatting model as it is available to authors today.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 1 October 2010 10:52:13 UTC