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

REGRESSION: Suns Default CSS has bad styles for lists

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, x86
    • OS:
      windows_2000, windows_xp

      Backports

        Description

        Name: rmT116609 Date: 08/17/2004


        FULL PRODUCT VERSION :
        java version "1.5.0-beta2"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
        Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows 2000 [Version 5.00.2195]

        A DESCRIPTION OF THE PROBLEM :
        Suns Default CSS has bad styles for lists.

        I traced the cause of the problem to Suns default.css.
        It has been written as though margins are inheritted when in fact they are not.
        The right margin is set to 50 on ul and never reset to 0 on nested uls.
        This causes the margins to be an upside down pyramid shape, instead of the desired rectangular shape.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Compile and run the test case.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        to see 4 rows of *'s
        ACTUAL -
        the 1st 2 rows are fine the next is split into 2, the last is shown vertically instead of horizontally

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javax.swing.*;

        public class Test {
          public static void main(String[] args) {
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new JEditorPane("text/html",
              "<HTML>" +
                "<BODY>" +
                  "<UL>" +
                    "<LI>* * * * * * * * * *" +
                      "<UL>" +
                        "<LI>* * * * * * * * * *" +
                          "<UL>" +
                            "<LI>* * * * * * * * * *</LI>" +
                              "<UL>" +
                                "<LI>* * * * * * * * * *</LI>" +
                              "</UL>" +
                            "</LI>" +
                          "</UL>" +
                        "</LI>" +
                      "</UL>" +
                    "</LI>" +
                  "</UL>" +
                "</BODY>" +
              "</HTML>"));
            frame.setSize(300, 500);
            frame.setVisible(true);
          }
        }


        ---------- END SOURCE ----------

        Release Regression From : 1.4.2_05
        The above release value was the last known release where this
        bug was known to work. Since then there has been a regression.

        (Incident Review ID: 297293)
        ======================================================================
        ###@###.### 10/25/04 19:24 GMT

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                idk Igor Kushnirskiy (Inactive)
                Reporter:
                rmandalasunw Ranjith Mandala (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: