Bug 17124 - Negative values of padding and border-width should be explicitly illegal
Negative values of padding and border-width should be explicitly illegal
Status: NEW
Product: CSS
Classification: Unclassified
Component: CSS Level 2
unspecified
PC Windows 3.1
: P2 normal
: ---
Assigned To: Bert Bos
public-css-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-20 17:02 UTC by Anton P
Modified: 2012-12-04 00:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton P 2012-05-20 17:02:26 UTC
Reported by Peter Moulder

8.4 (Padding properties) says:

  # Unlike margin properties, values for padding values cannot be
  # negative. [...]

8.5.1 (Border width) says:

  # The border width properties specify the width of the border area.
  # The properties defined in this section refer to the <border-width>
  # value type, which may take one of the following values:
  #
  # [...]
  # <length>
  #   The border's thickness has an explicit value. Explicit border
  #   widths cannot be negative.

It's not clear what an implementation should do when it encounters a specified negative value.

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011Jan/0107
Comment 1 Anton P 2012-05-20 17:03:59 UTC
Peter proposes in http://lists.w3.org/Archives/Public/www-style/2011Jan/0107 to make negative lengths illegal for the padding and border width properties, linking to syndata.html#illegalvalues