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 17124 - Negative values of padding and border-width should be explicitly illegal
Summary: Negative values of padding and border-width should be explicitly illegal
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 17:02 UTC by Anton P
Modified: 2012-12-04 00:54 UTC (History)
0 users

See Also:


Attachments

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