<?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>8625</bug_id>
          
          <creation_ts>2010-01-04 12:03:20 +0000</creation_ts>
          <short_desc>Possibility not to resolve @import (and other URLs) during CSS validation</short_desc>
          <delta_ts>2010-01-04 12:03:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Parser</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30378</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-01-04 12:03:20 +0000</bug_when>
    <thetext>Description
-----
One may sometimes want to manage resources retrieval on its own, including resolution of @import rules, and run the CSS validator on each of the resources. As an example, the mobileOK Checker that performs various tests on the HTTP headers sent when stylesheets are retrieved, and thus already retrieves images and stylesheets that are referenced in the CSS content.

Additionally, as described in Bug 8624, there may be cases when the URL of the CSS content that is being validated is unknown.

In these cases, the caller does not want the CSS validator to resolve and retrieve URLs that appear in the CSS content, but merely to validate its syntax. There is no proper way to forbid the CSS validator from processing @import rules right now. The only way I am aware of is to provide the org.w3c.css.css.StyleSheetParser.StyleSheetParser#parseStyleElement method with a &quot;file&quot; URL, as the &quot;file&quot; scheme seems to be used to indicate that &quot;direct input&quot; was used, which is not so great.


Suggested functionality
-----
Add a validation flag that instructs the CSS validator to ignore URLs that appear in the CSS content when set.


Additional note
-----
This request for enhancement is somewhat related to Bug 8624 in that resolution of relative URIs that may be used in @import rules is de facto impossible if the base URL is not provided.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>