Bug 38771 - IE9 test failure: "HIERARCHY_REQUEST_ERR raised if @import rule inserted after a regular rule"
Summary: IE9 test failure: "HIERARCHY_REQUEST_ERR raised if @import rule inserted afte...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://samples.msdn.microsoft.com/iet...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 13:25 PDT by James Robinson
Modified: 2022-07-11 17:14 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Robinson 2010-05-07 13:25:18 PDT
Firefox 3.6 and IE9 preview pass.
Comment 1 Alexey Proskuryakov 2010-05-07 23:01:37 PDT
I had some trouble parsing the original summary - hopefully the reworded one is better. I wanted to reword even more, but then the relationship to IE test suite would be lost. Maybe we should have a meta bug for these to avoid filing duplicates with different titles.

<style type="text/css">
  body { color: blue; }
  div { color: red; }
</style>
<script>
  // Should raise an exception
  document.styleSheets[0].insertRule("@import url(testStyle1.css);", 1);
</script>
Comment 2 Rob Buis 2010-06-06 08:49:04 PDT
I looked into this, the problem is not that there is no exception thrown (there is already a test for that in the LayoutTests). The problem rather is that the check after the exception catch relies on backgroundColor returning transparant, where WebKit returns rgba(0, 0, 0, 0). So either the linked test needs to be fixed (may be unlikely) or we need to return transparant instead of rgba(0, 0, 0, 0). If there are plans to do that anyway this issue could be closed. Thoughts?
Cheers,

Rob.
Comment 3 Simon Fraser (smfr) 2010-06-06 08:58:41 PDT
Is this a dup of bug 36281?
Comment 4 Rob Buis 2010-06-06 09:03:38 PDT
Hello Simon,

(In reply to comment #3)
> Is this a dup of bug 36281?

I think so. However if you try the linked original MS testcase trunk still seems to fail it? So either that bug was closed incorrectly, the original test changed or the fix was thought to mean "good enough" anyway. Unless I am missing something, IMHO best thing may be to close this one aw well and consider either fixing the transparant vs.rgba issue or contact the original testcase writers to make it more tolerant.
Cheers,

Rob.
Comment 5 Alexey Proskuryakov 2010-06-06 10:38:53 PDT
The fix for bug 36281 was partially reverted, because it caused a regression. See bug 36700.