-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make ::first-letter and ::first-line pseudo-elements not applied to elements with display: math
#211
Comments
Seems logical. |
Looks like a reasonable simplification. With ~5 minutes of consideration, I can mostly see I can also imagine |
I pushed some change for that. I plan to add tests later when doing some changes in Chromium. |
I concur -- it is hard to come up with a case where that makes sense for math and Deyan mentioned a workaround if needed. |
I've tagged this with agenda+ just so we can get a resolution to confirm it - should be easy. |
Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b
This is related to w3c/mathml-core#211 Note that this does not necessarily aligned with current browser implementations.
Sorry I misunderstood this was already agreed in a previous meeting. I've opened the related web-platform-tests/wpt#43334 for that. |
Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1229096}
Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1229096}
Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1229096}
Let's talk about #2 in https://github.com/web-platform-tests/wpt/pull/43334/files specifically in todays call... |
…er, a=testonly Automatic update from web-platform-tests CHECK failure with MathML + ::first-letter Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1229096} -- wpt-commits: 245a37d4371b4e2a47e322482de8e443de04aca3 wpt-pr: 43323
…er, a=testonly Automatic update from web-platform-tests CHECK failure with MathML + ::first-letter Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1229096} -- wpt-commits: 245a37d4371b4e2a47e322482de8e443de04aca3 wpt-pr: 43323
…er, a=testonly Automatic update from web-platform-tests CHECK failure with MathML + ::first-letter Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Commit-Queue: Frédéric Wang <fwangigalia.com> Cr-Commit-Position: refs/heads/main{#1229096} -- wpt-commits: 245a37d4371b4e2a47e322482de8e443de04aca3 wpt-pr: 43323 UltraBlame original commit: 4476e33e8e6d0872e74ac5e8e16e8b1243812715
…er, a=testonly Automatic update from web-platform-tests CHECK failure with MathML + ::first-letter Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Commit-Queue: Frédéric Wang <fwangigalia.com> Cr-Commit-Position: refs/heads/main{#1229096} -- wpt-commits: 245a37d4371b4e2a47e322482de8e443de04aca3 wpt-pr: 43323 UltraBlame original commit: 4476e33e8e6d0872e74ac5e8e16e8b1243812715
…er, a=testonly Automatic update from web-platform-tests CHECK failure with MathML + ::first-letter Ensure that display: math elements handle ::first-letter the same as flexbox/grid in order to fix a CHECK failure. display: math elements do not support linebreaking, so an equivalent testcase for ::first-line is not possible. The WG is agreeing about whether these pseudo-elements should indeed be ignored for math layout [1]. [1] w3c/mathml-core#211 Bug: 1495811 Change-Id: Id4eda5573f64e79ece3a94b6f09f991f3251434b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054276 Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Commit-Queue: Frédéric Wang <fwangigalia.com> Cr-Commit-Position: refs/heads/main{#1229096} -- wpt-commits: 245a37d4371b4e2a47e322482de8e443de04aca3 wpt-pr: 43323 UltraBlame original commit: 4476e33e8e6d0872e74ac5e8e16e8b1243812715
* Add tests for ::first-letter and ::first-line with MathML This is related to w3c/mathml-core#211 Note that this does not necessarily aligned with current browser implementations. * fix indent * Correct tests as display math elements _should_ apply first-letter/line for non-mathml elements. Make the 'do not contribute to parents' test use MathML elements * resolve fred's comments about style consistency and using math elements * remove space before period nit --------- Co-authored-by: Brian Kardell <bkardell@gmail.com>
…-line with MathML, a=testonly Automatic update from web-platform-tests Add tests for ::first-letter and ::first-line with MathML (#43334) * Add tests for ::first-letter and ::first-line with MathML This is related to w3c/mathml-core#211 Note that this does not necessarily aligned with current browser implementations. * fix indent * Correct tests as display math elements _should_ apply first-letter/line for non-mathml elements. Make the 'do not contribute to parents' test use MathML elements * resolve fred's comments about style consistency and using math elements * remove space before period nit --------- Co-authored-by: Brian Kardell <bkardell@gmail.com> -- wpt-commits: 58bd6e4080be7067719c5a516cd91d9e4356d280 wpt-pr: 43334
…-line with MathML, a=testonly Automatic update from web-platform-tests Add tests for ::first-letter and ::first-line with MathML (#43334) * Add tests for ::first-letter and ::first-line with MathML This is related to w3c/mathml-core#211 Note that this does not necessarily aligned with current browser implementations. * fix indent * Correct tests as display math elements _should_ apply first-letter/line for non-mathml elements. Make the 'do not contribute to parents' test use MathML elements * resolve fred's comments about style consistency and using math elements * remove space before period nit --------- Co-authored-by: Brian Kardell <bkardell@gmail.com> -- wpt-commits: 58bd6e4080be7067719c5a516cd91d9e4356d280 wpt-pr: 43334
These are used to provide special stylistic effects on a paragraph of text:
https://drafts.csswg.org/css-pseudo-4/#first-line-styling
https://drafts.csswg.org/css-pseudo-4/#selectordef-first-letter
They don't apply to flexbox or grid and we should probably specify the same for MathML:
https://drafts.csswg.org/css-flexbox/#flex-containers
https://www.w3.org/TR/css-grid-1/#grid-containers
The text was updated successfully, but these errors were encountered: