[Webkit-unassigned] [Bug 68008] Would like a CSS function that represents an image that will only be loaded if a given media query is matched

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 14:57:26 PDT 2011


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





--- Comment #11 from Tab Atkins <tabatkins at google.com>  2011-09-28 14:57:26 PST ---
Okay, so based on Simon's latest comment this functionality doesn't seem to be limited to just dpi queries - you want more types of media queries, and so we might as well just use the full MQ set and be done with it.

Now, is this problem (styles for different MQ are defined separate from each other, with selectors repeated) usually unique to images, or is it a more general issue that will apply to other properties?

If the former, we can make a function for MQ, or add a term to image() for it.  If the latter, we should really push for a more general solution like nesting @media inside of declaration blocks.  This is already present in preprocessors like SASS, so we can potentially look for SASS code to see how much this functionality is used in the wild and how it is used.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list