* @since 1.33
*/
public function setAttributeForTest( $name, array $value ) {
+ // @codeCoverageIgnoreStart
if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
throw new RuntimeException( __METHOD__ . ' can only be used in tests' );
}
+ // @codeCoverageIgnoreEnd
if ( isset( $this->testAttributes[$name] ) ) {
throw new Exception( "The attribute '$name' has already been overridden" );
}
}
/* Show/hide animation is incorrect if the table has a margin set. Extra
- * "table.wikitable" is needed in the selector for CSS specificity. */
-table.wikitable.preview-limit-report {
+ * ".wikitable" is needed in the selector for CSS specificity. */
+.wikitable.preview-limit-report {
margin: 0;
}
/**
* Table rendering
*/
-/* Compare `table.wikitable` in shared.css */
-table.wikitable,
+/* Compare `.wikitable` in shared.css */
+.wikitable,
.mw_metadata {
background: #fff;
margin: 1em 0;
font-size: 10pt;
}
-table.wikitable > caption,
+.wikitable > caption,
.mw_metadata caption {
padding: 5px;
font-size: 10pt;
}
-table.wikitable > tr > th,
-table.wikitable > tr > td,
-table.wikitable > * > tr > th,
-table.wikitable > * > tr > td,
+.wikitable > tr > th,
+.wikitable > tr > td,
+.wikitable > * > tr > th,
+.wikitable > * > tr > td,
.mw_metadata th,
.mw_metadata td {
/* Important is required to override any inline styles provided by editors */
padding: 0.4em 0.6em;
}
-table.wikitable > tr > th,
-table.wikitable > * > tr > th,
+.wikitable > tr > th,
+.wikitable > * > tr > th,
.mw_metadata th {
text-align: center;
}
* wikitable class for skinning normal tables
* keep in sync with commonPrint.css
*/
-table.wikitable {
+.wikitable {
background-color: #f8f9fa;
color: #222;
margin: 1em 0;
border-collapse: collapse;
}
-table.wikitable > tr > th,
-table.wikitable > tr > td,
-table.wikitable > * > tr > th,
-table.wikitable > * > tr > td {
+.wikitable > tr > th,
+.wikitable > tr > td,
+.wikitable > * > tr > th,
+.wikitable > * > tr > td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
-table.wikitable > tr > th,
-table.wikitable > * > tr > th {
+.wikitable > tr > th,
+.wikitable > * > tr > th {
background-color: #eaecf0;
text-align: center;
}
-table.wikitable > caption {
+.wikitable > caption {
font-weight: bold;
}