-
Notifications
You must be signed in to change notification settings - Fork 20
Make display:contents map to display:none #90
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
Comments
Probably we can also add a note in the core spec, pointing to https://drafts.csswg.org/css-display/#unbox-mathml |
It should be working in Gecko AFAICT: https://searchfox.org/mozilla-central/rev/11cfa0462a6b5d8c5e2111b8cfddcf78098f0141/servo/components/style/style_adjuster.rs#127 |
Thanks @emilio , yes I think I saw this code recently :-) |
Spec update: w3c/mathml-core@d4bb13a |
Any chance of getting a dedicated mathml element that functions like e.g.: <mrow>
<!-- Would have styles effectively like display: contents -->
<mgroup id="energyTerm">
<mi>E</mi>
</mgroup>
<mo>=</mo>
<mgroup id="resultTerm">
<mi>m</mi>
<mo>⁢</mo>
<msup>
<mi>c</mi>
<mn>2</mn>
</msup>
</mgroup>
</mrow> |
@Jamesernator In the short term, I personally don't think we are going to introduce new MathML elements in MathML Core since the goal is to try to find a core subset to implement in browsers. We are doing more css compat work, so maybe we could reopen the discussion in the future about |
The example isn't very good I just wanted to be short, this is a better example: <!doctype html>
<style>
#container {
border: 1px solid grey;
width: 100px;
}
#firstTerm:hover {
color: green;
}
#restOfSeries:hover {
color: blue;
}
</style>
<div id="container">
<math>
<mn id="firstTerm">1</mn>
<mo>+</mo>
<mgroup id="restOfSeries">
<mi>A</mi>
<mo>+</mo>
<msup>
<mi>A</mi>
<mi>2</mi>
</msup>
<mo>+</mo>
<msup>
<mi>A</mi>
<mi>3</mi>
</msup>
<mo>+</mo>
<msup>
<mi>A</mi>
<mi>4</mi>
</msup>
<mo>+</mo>
<mi>...</mi>
</mgroup>
</math>
</div> This can't be replaced with e.g. With an But trying to use |
@Jamesernator OK, I guess you are testing in Gecko? Ideally linebreaking should be improved and supported in any mrow, so you won't need such an mgroup element ( w3c/mathml-core#127 ). But defining a full linebreaking is going to be tricky so it's also postponed for later until we sort out the other issues... |
Yes. I had looked for |
The MathML 3 spec has a section on linebreaking: https://www.w3.org/TR/MathML3/chapter3.html#presm.linebreaking. As @fred-wang said, it is not well supported in Gecko and other places. I suspect we will revisit linebreaking for core to see what can be done to make it easier to implement, but that's a lower priority item. |
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668 UltraBlame original commit: 518f1d58aca0f6172291259876cedb195550e53f
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668 UltraBlame original commit: 518f1d58aca0f6172291259876cedb195550e53f
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668 UltraBlame original commit: 518f1d58aca0f6172291259876cedb195550e53f
…L elements, a=testonly Automatic update from web-platform-tests Add tests for display: contents on MathML elements (#18668) w3c/mathml#90 -- wpt-commits: 94a0b420301fc9d7da16097083ecdce927e22343 wpt-pr: 18668
cc @rwlbuis @bkardell @mrego @emilio
From https://drafts.csswg.org/css-display/#unbox-mathml
TODO: check the implementation status in webkit/firefox and write tests for these.
Rob did https://github.com/Igalia/chromium-dev/commit/177eb951392219339c47526c65c1789439a1d6b0
The text was updated successfully, but these errors were encountered: