From be0f692c3a36048e23945bdde51dd284ba87351a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 22 Nov 2023 15:35:35 +0100 Subject: [PATCH] Make ::first-letter and ::first-line pseudo-elements not applied to elements with display: math #211 --- spec.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 9a1b032..9db8e03 100644 --- a/spec.html +++ b/spec.html @@ -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", @@ -638,6 +638,15 @@

CSS styling

block math or inline math, and does not take them out-of-flow.

+

+ The ::first-line and + ::first-letter + pseudo-elements do not apply to elements whose computed + display value is + block math or inline math, and such + elements do not contribute a first formatted line or first letter + to their ancestors. +

The following CSS features are not supported and must be ignored: