JDK-7025525 : CSS property list in javax.swing.text.html.CSS is incomplete
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-03-08
  • Updated: 2017-05-16
  • Resolved: 2011-05-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b140Fixed
Related Reports
Relates :  
Description
The class comment on javax.swing.text.html lists 51 CSS properties "that are suppored [sic] by the rendering engine". But if you count the number of public CSS.Attribute instances that are defined, there are 61 of them. The two lists should be made consistent. Additionally, I believe the list of properties that "are modeled, but currently not rendered" is incorrect, in that some of them *are* rendered.

An example of an attribute that is defined and supported, but not listed as a CSS property, is border-top-color.

It would also be useful to call out explicitly the rule that maps the name of a CSS.Attribute field to the name of the corresponding CSS property. I believe the rule is simply that capitals become lower-case and underscores (_) become dashes (-), but users have no easy way to know that.

Comments
EVALUATION The background-repeat property is listed twice in the doc and the following properties are missed: border-bottom-color border-bottom-style border-color border-left-color border-left-style border-right-color border-right-style border-top-color border-top-style list-style-image padding Duplicated property should be fixed and the missed properties should be added in javadoc. I attached a test which checks, that all missed properties are rendered correctly. The following part of description "I believe the list of properties that "are modeled, but currently not rendered" is incorrect, in that some of them *are* rendered." should be clarified and filed as a separated CR.
08-04-2011