[css-pseudo] element::selection and descendants

   data:text/html;charset=utf-8,<!DOCTYPE html>%0D%0A<style>%0D%0Ap%3A%3Aselection { background%3A rgba(0%2C255%2C0%2C0.5)%3B 
}%0D%0A<%2Fstyle>%0D%0A<p>Test me <em>and me<%2Fem>.<%2Fp>


   p::selection { background: <color> }


   <p>Some <em>text</em>.</p>

I would expect (from an authoring perspective) that, in the absence
of rules to the contrary, <em> gets the same highlight styles as <p>.
However, only Presto does this. Gecko, Trident, and Blink style the
<em>'s highlight using the system default colors.
(This probably relates to how Presto handles inheritance.)

Question: Do we want to fix this? It's quite counter-intuitive,
and makes per-element styling rather less useful.


Received on Wednesday, 7 January 2015 00:32:30 UTC