This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15890 - Description of 'vertical-align' values refers to baseline but inline replaced elements don't have one
Summary: Description of 'vertical-align' values refers to baseline but inline replaced...
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 18:16 UTC by Anton P
Modified: 2012-12-04 00:51 UTC (History)
0 users

See Also:


Attachments

Description Anton P 2012-02-04 18:16:15 UTC
Reported by Anton Prowse

In the definition of the 'vertical-align' property in 10.8.1, the values are described as follows:

  # baseline
  #     Align the baseline of the box with the baseline of the parent
  #     box. If the box does not have a baseline, align the bottom
  #     margin edge with the parent's baseline.
  # [...]
  # sub
  #     Lower the baseline of the box to the proper position for
  #     subscripts of the parent's box. (This value has no effect on
  #     the font size of the element's text.)
  # super
  #     Raise the baseline of the box to the proper position for
  #     superscripts of the parent's box. (This value has no effect
  #     on the font size of the element's text.)

Inline replaced elements don't have a baseline, and whilst that possibility is covered in the description of the 'baseline' value of 'vertical-align', it's not treated in the description of 'sub' or 'sup'.

Bert Bos suggests replacing "the baseline of the box" with

    | the baseline of the box (or the bottom margin edge,
    | if it has none)

(and presumably removing the second sentence in the description of the 'baseline' value).

Conversation begins: http://lists.w3.org/Archives/Public/www-style/2011Mar/0637.html (#3)

Bug description: http://lists.w3.org/Archives/Public/www-style/2011Mar/0689.html

Proposal: http://lists.w3.org/Archives/Public/www-style/2011Mar/0720.html
Comment 1 Anton P 2012-02-04 18:21:54 UTC
This bug has a dependency on Bug 15891 ("Proposal to define the baseline of an inline replaced element")
Comment 2 Anton P 2012-02-04 18:33:57 UTC
This bug has a dependency on Bug 15892 ("What's the baseline of an inline table with no rows?")