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

stddoclet: Creates invalid stylesheet.css file (font-size: normal)

XMLWordPrintable

    • mantis
    • generic, x86
    • other, linux_redhat_7.2, windows_2000

      Name: boT120536 Date: 02/20/2001

      java version "1.3.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)

      Java Source Code (Empty.java):
      public class Empty { }

      Steps to Reproduce:
      javadoc Empty

      The generated stylesheet.css file contains the lines:
      .FrameTitleFont { font-size: normal; font-family: normal }
      .FrameHeadingFont { font-size: normal; font-family: normal }
      .FrameItemFont { font-size: normal; font-family: normal }

      These lines generate the following errors when run through the W3C CSS
      validator (http://jigsaw.w3.org/css-validator/):
      Line: 14 Context : .FrameTitleFont Invalid number : font-size
      normal is not a font-size value : normal
      Line: 15 Context : .FrameHeadingFont Invalid number : font-size
      normal is not a font-size value : normal
      Line: 16 Context : .FrameItemFont Invalid number : font-size
      normal is not a font-size value : normal
      (Review ID: 117336)
      ======================================================================
      Another submitter:

          http://java.sun.com/j2se/1.3/docs/api/stylesheet.css references
          font-family: normal in several styles. This is not correct per
          w3c spec since normal is not a keyword.

          I recently added fonts to my system including one named
          "normal" which this stylesheet causes to be used in the javadoc
          left-hand frames. It is a large and whimsically styled font family
          which is quite annoying in this context.
          Perhaps this should have been
          font-style: normal
          instead. But in any case please leave off the
          font-family specification to allow it to default instead of
          specifying "normal".
          
           ###@###.###

            dkramersunw Douglas Kramer (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: