<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6928</bug_id>
          
          <creation_ts>2009-05-20 15:26:52 +0000</creation_ts>
          <short_desc>STYLE_SHEETS_USE-4 may be triggered incorrectly on embedded styles</short_desc>
          <delta_ts>2009-06-05 14:33:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="Abel Rionda">abel.rionda</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25222</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-20 15:26:52 +0000</bug_when>
    <thetext>This is actually a reappearance of bug 5891.

The following code would trigger the warning:
 &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt;
 &lt;style type=&quot;text/css&quot; media=&quot;print&quot;&gt;
  font-size: small;
 &lt;/style&gt;

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

This case is not taken into account in the definition of the &quot;css&quot; 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]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25475</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-06-05 14:33:24 +0000</bug_when>
    <thetext>- 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 &quot;handheld&quot; or &quot;all&quot;.

StyleSheetsUseTest/15 test added to the test suite as a regression test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>