Skip to content

Commit

Permalink
Make ::first-letter and ::first-line pseudo-elements not applied to e…
Browse files Browse the repository at this point in the history
…lements with display: math #211
  • Loading branch information
fred-wang committed Nov 22, 2023
1 parent 6d393b5 commit be0f692
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
mdn: false,
testSuiteURI: "https://github.com/web-platform-tests/wpt/tree/master/mathml/",
implementationReportURI: "https://wpt.fyi/results/?label=master&label=experimental&aligned&q=math%20%20not%28path%3A%2Fjs%29",
xref: ['html', 'infra', 'css-display-3', 'css-text-3', 'web-animations', 'css-fonts-4', 'dom', 'cssom-view', 'css-sizing-3', 'css-align-3', 'css-box-4', 'css-values-4', 'css-backgrounds-3', 'css-text-decor-4', 'svg', 'css-writing-modes-4', 'css-color-4', 'css-box-4'],
xref: ['html', 'infra', 'css-display-3', 'css-text-3', 'web-animations', 'css-fonts-4', 'dom', 'cssom-view', 'css-sizing-3', 'css-align-3', 'css-box-4', 'css-values-4', 'css-backgrounds-3', 'css-text-decor-4', 'svg', 'css-writing-modes-4', 'css-color-4', 'css-box-4', 'css-pseudo'],
localBiblio: {
"MATHML4": {
title: "Mathematical Markup Language (MathML) Version 4.0",
Expand Down Expand Up @@ -638,6 +638,15 @@ <h4>CSS styling</h4>
<code>block math</code> or <code>inline math</code>,
and does not take them out-of-flow.
</p>
<p>
The <a data-xref-type="css-selector">::first-line</a> and
<a data-xref-type="css-selector">::first-letter</a>
pseudo-elements do not apply to elements whose computed
<code>display</code> value is
<code>block math</code> or <code>inline math</code>, and such
elements do not contribute a first formatted line or first letter
to their ancestors.
</p>
<p>
The following CSS features are not supported and must be ignored:
</p>
Expand Down

0 comments on commit be0f692

Please sign in to comment.