[Webkit-unassigned] [Bug 206842] New: WPT test importer only rewrites the first URL on <style> tags.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 27 13:27:25 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=206842

            Bug ID: 206842
           Summary: WPT test importer only rewrites the first URL on
                    <style> tags.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clopez at igalia.com
                CC: simon.fraser at apple.com, youennf at gmail.com

When importing WPT tests, the WebKit WPT importer tries to rewrite any URL() reference inside the <style> tags of the ref-tests to fix issues related to moving the ref-test to a new directory.
But its currently only doing that for the first URL() reference it finds.

Example:

1) WPT test css/css-backgrounds/css-border-radius-002.html has as test reference css/css-backgrounds/reference/css-border-radius-ref-002.html 
2) WPT test importer imports css/css-backgrounds/reference/css-border-radius-ref-002.html as css/css-backgrounds/css-border-radius-002-expected.html 
3) Since the ref-test has been moved to a different directory, it tries to update relative urls() on the <style> tag:

Originally css-border-radius-ref-002.html had:
    <style type="text/css">
        .redSquare {
            position: absolute;
                        left:50px;
            width: 100px;
            height: 100px;
                        background-image:url(../support/yyy.png);
        }
                .greenSquare {
            position: absolute;
                        left:50px;
            width: 100px;
            height: 100px;
                        background-image:url(../support/yy.png);
        }
        .container {
            position: absolute;
        }
    </style>

Therefore, the style on css-border-radius-002-expected.html should have been rewrote as:
    <style type="text/css">
        .redSquare {
            position: absolute;
                        left:50px;
            width: 100px;
            height: 100px;
                        background-image:url(support/yyy.png);
        }
                .greenSquare {
            position: absolute;
                        left:50px;
            width: 100px;
            height: 100px;
                        background-image:url(support/yy.png);
        }
        .container {
            position: absolute;
        }
    </style>



The problem it is currently doing that only for the first URL (yyy.png) but not for the second (yy.png)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200127/092def11/attachment.htm>


More information about the webkit-unassigned mailing list