You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CSS Pseudo-Elements spec (https://drafts.csswg.org/css-pseudo-4/), I suggest having a pseudo element that merely wraps all of its content into another layer.
I don't know how this pseudo element should be named yet.
This is the use case I recently met.
Example HTML fragment:
<spanclass="example"><span><span>The quick brown fox<br>
jumps over the lazy dog.<br>
1234567890</span></span></span>
The text has line breaks (<br>), and I wish to make the text left-aligned while making the entire block aligned at the center. The text would also have inline background color.
For such styling, I need to wrap at least two layers of <span> within the outer <span> that has class specified. The inner <span> are only there to make CSS styling work.
What if, I have no control on the HTML and have just one layer of <span> to apply the style on?
<spanclass="example">The quick brown fox<br>
jumps over the lazy dog.<br>
1234567890</span>
That's the use case for the pseudo element.
The text was updated successfully, but these errors were encountered:
In CSS Pseudo-Elements spec (https://drafts.csswg.org/css-pseudo-4/), I suggest having a pseudo element that merely wraps all of its content into another layer.
I don't know how this pseudo element should be named yet.
This is the use case I recently met.
Example HTML fragment:
Example CSS:
(Simplified example)
The text has line breaks (
<br>
), and I wish to make the text left-aligned while making the entire block aligned at the center. The text would also have inline background color.For such styling, I need to wrap at least two layers of
<span>
within the outer<span>
that has class specified. The inner<span>
are only there to make CSS styling work.What if, I have no control on the HTML and have just one layer of
<span>
to apply the style on?That's the use case for the pseudo element.
The text was updated successfully, but these errors were encountered: