Skip to content

Commit 4c92c57

Browse files
committed
Bug 1987493: Simplify WPTs fieldset-display.html and legend-display.html to not require support for display:run-in. r=zcorpan
Differential Revision: https://phabricator.services.mozilla.com/D264125
1 parent e28ebed commit 4c92c57

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

testing/web-platform/meta/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-display.html.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

testing/web-platform/meta/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-display.html.ini

Lines changed: 0 additions & 14 deletions
This file was deleted.

testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-display.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
const inlineWidth = getComputedStyle(document.querySelector('#inline-ref')).width;
1414
const testElm = document.querySelector('#test');
1515
// Please only add canonical values to these lists:
16+
// (Also, note that we're not testing "display:run-in" here; it's mentioned
17+
// in several CSS specs, but no browser engines appear likely to support it.)
1618
const blocks = ['block', 'table', 'table-row-group', 'table-header-group', 'table-footer-group', 'table-row', 'table-cell',
17-
'table-column-group', 'table-column', 'table-caption', 'list-item', 'flow-root', 'run-in', 'block ruby'];
19+
'table-column-group', 'table-column', 'table-caption', 'list-item', 'flow-root', 'block ruby'];
1820
const inlines = ['inline', 'inline-block', 'inline-table', 'ruby', 'ruby-base', 'ruby-text', 'ruby-base-container', 'ruby-text-container'];
1921

2022
function test_display(val, expectedWidth) {

testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-display.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
const refElm = document.querySelector('#ref');
1212
const refStyle = getComputedStyle(refElm);
1313
const testElm = document.querySelector('#test');
14+
// Note that we're not testing "display:run-in" here; it's mentioned in
15+
// several CSS specs, but no browser engines appear likely to support it.
1416
const values = ['block', 'table', 'table-row-group', 'table-header-group', 'table-footer-group', 'table-row', 'table-cell',
15-
'table-column-group', 'table-column', 'table-caption', 'list-item', 'flow', 'flow-root','run-in','inline',
17+
'table-column-group', 'table-column', 'table-caption', 'list-item', 'flow', 'flow-root', 'inline',
1618
'inline-block', 'inline-table', 'block ruby', 'ruby', 'ruby-base', 'ruby-text', 'ruby-base-container', 'ruby-text-container',
1719
'grid', 'inline-grid', 'flex', 'inline-flex'];
1820
const extraStyle = ['', 'overflow:hidden', 'columns:1', 'overflow:hidden;columns:1'];

0 commit comments

Comments
 (0)