summaryrefslogtreecommitdiff
path: root/tests/Framework
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-10-26 11:49:02 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-10-26 11:49:02 +0200
commitfdb30f32790857797ae91520995b02316d2d3673 (patch)
treee534c006e76743bd1baaa9e997b0fbef93bfdeac /tests/Framework
parentf202a7e8b17c5284daf554c2de91a1ec68c76da0 (diff)
Fix CSS selector modifications when nested in @media blocks
Diffstat (limited to 'tests/Framework')
-rw-r--r--tests/Framework/Utils.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Framework/Utils.php b/tests/Framework/Utils.php
index 3f7f48c3a..2f4aec32e 100644
--- a/tests/Framework/Utils.php
+++ b/tests/Framework/Utils.php
@@ -171,6 +171,12 @@ class Framework_Utils extends PHPUnit_Framework_TestCase
$this->assertRegExp('/#rcmbody h1\s\{/', $mod, "Prefix tag styles (single)");
$this->assertRegExp('/#rcmbody h1, #rcmbody h2, #rcmbody h3, #rcmbody textarea\s+\{/', $mod, "Prefix tag styles (multiple)");
$this->assertRegExp('/#rcmbody \.noscript\s+\{/', $mod, "Prefix class styles");
+
+ $css = file_get_contents(TESTS_DIR . 'src/media.css');
+ $mod = rcube_utils::mod_css_styles($css, 'rcmbody');
+
+ $this->assertContains('#rcmbody table[class=w600]', $mod, 'Replace styles nested in @media block');
+ $this->assertContains('#rcmbody {width:600px', $mod, 'Replace body selector nested in @media block');
}
/**