A selection is broken into multiple span elements. Sometimes, we may want to apply styling to these using :first-child and :last-child CSS selectors. However, the elements are not necessarily added in order (ie I'd expect the top line of a selection to be the first span in the DOM, and so on). This seems to work in order in Chrome by accident, but isn't necessarily the case eg in Firefox.
A selection is broken into multiple
span
elements. Sometimes, we may want to apply styling to these using:first-child
and:last-child
CSS selectors. However, the elements are not necessarily added in order (ie I'd expect the top line of a selection to be the firstspan
in the DOM, and so on). This seems to work in order in Chrome by accident, but isn't necessarily the case eg in Firefox.