This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6928 - STYLE_SHEETS_USE-4 may be triggered incorrectly on embedded styles
Summary: STYLE_SHEETS_USE-4 may be triggered incorrectly on embedded styles
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 15:26 UTC by fd
Modified: 2009-06-05 14:33 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-05-20 15:26:52 UTC
This is actually a reappearance of bug 5891.

The following code would trigger the warning:
 <link rel="stylesheet" href="style.css" type="text/css" media="all" />
 <style type="text/css" media="print">
  font-size: small;
 </style>

No warning should be raised because the external stylesheet does contain some styles that apply to "all".

This case is not taken into account in the definition of the "css" variable in StyleSheetsUseTest.xsl

[Note the second part that checks for STYLE_SHEETS_USE-4 in external stylesheets is good, the warning should be raised whenever an external stylesheet is downloaded for nothing]
Comment 1 fd 2009-06-05 14:33:24 UTC
- Call to empty($css/*) was incorrect as $css is defined as a mere string. Replaced with:
 string-length(normalize-space($css)) eq 0

- Definition of $css completed to include styles defined in external stylesheets that apply to "handheld" or "all".

StyleSheetsUseTest/15 test added to the test suite as a regression test.