[Webkit-unassigned] [Bug 143262] New: Invalid media feature evaluates to true

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 31 06:21:16 PDT 2015


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

            Bug ID: 143262
           Summary: Invalid media feature evaluates to true
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zcorpan at gmail.com

See http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3473

<!DOCTYPE html>
<link rel=stylesheet href="data:text/css,p { color:red }" media="(width invalid)">
<p>There should be no red

The stylesheet is incorrectly applied.

Blink/Gecko/IE11 do not have this issue.

This is an issue for introducing comparison operators in media features, since WebKit will just evaluate them to true. e.g. (width < 500px)

https://drafts.csswg.org/mediaqueries/#mq-range-context

https://drafts.csswg.org/mediaqueries/#error-handling

-- 
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/20150331/3fb09a0a/attachment-0002.html>


More information about the webkit-unassigned mailing list