Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7025525

CSS property list in javax.swing.text.html.CSS is incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • client-libs
    • b140
    • generic
    • generic
    • Verified

      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.

            rupashka Pavel Porvatov (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: