[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#231179: konqueror: background-color for HTML or BODY does not seem to work



tag       231179 - unreproducible moreinfo
tag       231179 + confirmed
severity  231179 wishlist
retitle   231179 konqueror: handle gracefully missing title element in alternate stylesheets
forwarded 231179 http://bugs.kde.org/86173
quit

* Ambrose Li [Tue, 27 Jul 2004 15:41:02 -0400]:

  hi Ambrose,

> I tried with Konquerer 3.2.2 with the following web page:
> http://www.cccgt.org/F_P_2004_Woodbine.html

  for the record, the page inside the frame is:

    http://www.cccgt.org/2004/Woodbine/directions.html

> The content of the page (in a frame) shows up with a white background
> in Konqueror, but shows up as green in both Mozilla and IE.

> (The frame in question sets the background-color for both HTML and BODY.)

  the real problem here is that the alternate stylesheet test.css does
  not have a title element:

    <link rel="alternate stylesheet" type="text/css" media=screen
          href="../../test.css">

  which is, as per the relevant W3C specification [1] and AIUI, not a
  valid scenario for an alternate stylesheet:

      [1] http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2

      Specify that the style sheet is persistent, preferred, or alternate: 

        - To make a style sheet persistent, set the rel attribute to
          "stylesheet" and don't set the title attribute.

        - To make a style sheet preferred, set the rel attribute to
          "stylesheet" and name the style sheet with the title
          attribute.

        - To specify an alternate style sheet, set the rel attribute to
          "alternate stylesheet" and name the style sheet with the title
          attribute.

  the user fix for this is to specify a title="foo" element in the
  alternate stylesheet link tag, like this:

    <link rel="alternate stylesheet" type="text/css" media=screen
          href="../../test.css" title="test stylesheet">

  however, as seems reasonable to handle the missing title element
  gracefully, and other browsers certainly do so, I'm forwarding this to
  upstream developers to see what they think.

  other relevant KDE BTS entries:

      http://bugs.kde.org/54335
      http://bugs.kde.org/47304

  thanks,

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
 
Wedding rings are the world's smallest handcuffs




Reply to: