Skip to content

Commit df7e564

Browse files
committed
Remove UA styles for h1 in article, aside, nav, and section
https://bugs.webkit.org/show_bug.cgi?id=292765 Reviewed by NOBODY (OOPS!). Firefox has rolled this out to 5% of its release audience as of 138, 100% of the beta audience, and plans to ship this in 140 which is now riding the trains. Chrome has also taken steps in deprecating this pattern and plans to fast follow Firefox. I think we should do the same. For testing I removed a redundant local test and imported a PR that will be merged once the specification change goes in: web-platform-tests/wpt#51673
1 parent 7a2104f commit df7e564

File tree

10 files changed

+6
-731
lines changed

10 files changed

+6
-731
lines changed

LayoutTests/fast/css/h1-in-section-elements.html

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

LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/sections-and-headings/headings-styles.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@
1212
display: block;
1313
}
1414

15-
h1 { margin-block-start: 0.67em; margin-block-end: 0.67em; font-size: 2.00em; font-weight: bold; }
16-
h2 { margin-block-start: 0.83em; margin-block-end: 0.83em; font-size: 1.50em; font-weight: bold; }
17-
h3 { margin-block-start: 1.00em; margin-block-end: 1.00em; font-size: 1.17em; font-weight: bold; }
18-
h4 { margin-block-start: 1.33em; margin-block-end: 1.33em; font-size: 1.00em; font-weight: bold; }
19-
h5 { margin-block-start: 1.67em; margin-block-end: 1.67em; font-size: 0.83em; font-weight: bold; }
20-
h6 { margin-block-start: 2.33em; margin-block-end: 2.33em; font-size: 0.67em; font-weight: bold; }
21-
22-
:is(article, aside, nav, section) h1 { margin-block-start: 0.83em; margin-block-end: 0.83em; font-size: 1.50em; }
23-
:is(article, aside, nav, section) :is(article, aside, nav, section) h1 { margin-block-start: 1.00em; margin-block-end: 1.00em; font-size: 1.17em; }
24-
:is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 { margin-block-start: 1.33em; margin-block-end: 1.33em; font-size: 1.00em; }
25-
:is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 { margin-block-start: 1.67em; margin-block-end: 1.67em; font-size: 0.83em; }
26-
:is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 { margin-block-start: 2.33em; margin-block-end: 2.33em; font-size: 0.67em; }
15+
h1 { margin-block: 0.67em; font-size: 2.00em; font-weight: bold; }
16+
h2 { margin-block: 0.83em; font-size: 1.50em; font-weight: bold; }
17+
h3 { margin-block: 1.00em; font-size: 1.17em; font-weight: bold; }
18+
h4 { margin-block: 1.33em; font-size: 1.00em; font-weight: bold; }
19+
h5 { margin-block: 1.67em; font-size: 0.83em; font-weight: bold; }
20+
h6 { margin-block: 2.33em; font-size: 0.67em; font-weight: bold; }
2721

2822
</style>
2923

LayoutTests/platform/glib/fast/css/h1-in-section-elements-expected.txt

Lines changed: 0 additions & 217 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)