W3C home > Mailing lists > Public > www-style@w3.org > March 2012

[css3-background] Editorial: when 'border-style: inset' is treated as 'border-style: ridge' should be made clearer

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Tue, 06 Mar 2012 12:37:48 +0800
Message-ID: <4F55949C.7000101@csail.mit.edu>
To: WWW Style <www-style@w3.org>
4.2. The ‘border-style’ properties

  # ‘inset’
  # Looks as if the content on the inside of the border is sunken into
  # the canvas. Treated as ‘ridge’ in border-collapsed tables. [CSS21]

The last sentence is subject to two creative (but wrong) interpretations:

1. Anything (say, a 'block') that's a descendant of  a 'table' or
'inline-table' with 'border-collapse: collapse' might be considered /in/
a border-collapsed tables.

2. A 'table-caption' element in a 'inline-table' with 'border-collapse:
collapse' might be considered /part of/ a border-collapsed table.

CSS2.1 uses the phrase "in the collapsing border model", which I believe
to be less ambiguous than the current sentence. Or perhaps we could be
very explicit, like

  | Treated as ‘ridge’ for border-collapsed table elements except
  | table captions.


  | Treated as ‘ridge’for table elements (excluding table captions)
  | when 'border-collapse' is 'collapse'

The latter is from Applies To line for 'border-image-source'. I don't
quite like this wording because the 'border-collapse: collapse'
condition might be misinterpreted as one on the targeted element but not
it's closest ancestor 'table' or 'inline-table'.

Received on Tuesday, 6 March 2012 04:38:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:56 UTC