Bugzilla
Quick Search
Browse
Advanced Search
Reports
Quick Search Help
Documentation
New Account
Log In
Login with GitHub
Remember
Forgot Password
Mozilla Home
Privacy
Cookies
Legal
Attachment 8930024 Details for
Bug 1418433
reduced html
media2.html (text/html), 586 bytes, created by
Alice0775 White
(
hide
)
Description:
reduced html
Filename:
MIME Type:
Creator:
Alice0775 White
Size:
586 bytes
patch
obsolete
><!DOCTYPE html> ><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> ><head> ><script> >var style = document.createElement('style'); >style.type = 'text/css'; >style.id = 'matchmediajs-test'; >document.head.appendChild(style); >var info = window.getComputedStyle(style, null); > >style.textContent = "@media (min-width: 2000px) { #matchmediajs-test { width: 1px; } }"; >info.width; // dummy call > >style.textContent = "@media (min-width: 1000px) { #matchmediajs-test { width: 1px; } }"; >alert(info.width == '1px'); ></script> ></head> ><body> ></body> ></html>
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script> var style = document.createElement('style'); style.type = 'text/css'; style.id = 'matchmediajs-test'; document.head.appendChild(style); var info = window.getComputedStyle(style, null); style.textContent = "@media (min-width: 2000px) { #matchmediajs-test { width: 1px; } }"; info.width; // dummy call style.textContent = "@media (min-width: 1000px) { #matchmediajs-test { width: 1px; } }"; alert(info.width == '1px'); </script> </head> <body> </body> </html>
Actions:
View
Attachments on
bug 1418433
:
8929548
|
8929760
|
8930019
|
8930022
| 8930024 |
8930055
|
8931941
|
8931942
|
8932361
|
8932802