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
[css-pseudo] Add text-emphasis-color and text-shadow to ::selection properties. Remove issue about wash requirement, since nobody objected. Clarify that text decoration should be repainted with selection color (current behavior is so weird); this probably needs an example. Wordsmithing.
<li><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-ui-3/#outline0title=outline>outline</a> and its longhands (optional)
589
589
<li><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-decor-3/#propdef-text-decorationtitle=text-decoration>text-decoration</a> and its associated properties (optional)
<pclass=issueid=issue-c0c29618><aclass=self-linkhref=#issue-c0c29618></a>What properties should be included here?
593
-
Only color and bgcolor seem supported; but text-decoration is needed for spellcheck.</p>
594
+
<pclass=issueid=issue-7be57116><aclass=self-linkhref=#issue-7be57116></a>Are there any other properties that should be included here?
595
+
[Caret-color should be added once we have it.]</p>
594
596
595
-
<p>If <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> is not specified, the text’s actual color must be used for the highlight.
597
+
<pclass=issueid=issue-b0e74d3c><aclass=self-linkhref=#issue-b0e74d3c></a>Only <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-backgrounds-3/#background-colortitle=background-color>background-color</a> are cross-browser.
598
+
Should any others be required?</p>
599
+
600
+
<p>If <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> is not specified, the text (and text decoration)'s
601
+
unselected color must be used for the highlight.
596
602
(As usual, the initial <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-backgrounds-3/#background-colortitle=background-color>background-color</a> is <spanclass=css>transparent</span>.)</p>
597
603
598
604
<pclass=issueid=issue-73cb06fc><aclass=self-linkhref=#issue-73cb06fc></a>Can we reuse <spanclass=css>currentColor</span> for this, now that it computes to itself?</p>
599
605
600
606
<p>The UA should use the OS-default selection color
601
607
when neither <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> nor <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-backgrounds-3/#background-colortitle=background-color>background-color</a> has been specified by the author.</p>
602
608
603
-
<pclass=note>Note: This behavior does not let allow <ahref=http://lists.w3.org/Archives/Public/www-style/2008Oct/0268.html>using the normal cascade</a>
609
+
<pclass=note>Note: This paired-cascading behavior
610
+
does not allow <ahref=http://lists.w3.org/Archives/Public/www-style/2008Oct/0268.html>using the normal cascade</a>
604
611
to represent the OS default selection colors.
605
-
However it has been interoperably implemented in browsers and is thus probably a Web-compatibility requirement.</p>
612
+
However it has been interoperably implemented in browsers
613
+
and is thus probably a Web-compatibility requirement.</p>
606
614
607
615
<p>The <aclass=cssdata-link-type=maybehref=#selectordef-selectiontitle=::selection>::selection</a> pseudo element draws its background
It also suppresses the drawing of any selected text
612
620
and instead redraws that text
613
621
(and any text decorations)
614
-
over that background.</p>
622
+
over that background
623
+
using the specified <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a>.</p>
615
624
616
625
<pclass=issueid=issue-8f96bd90><aclass=self-linkhref=#issue-8f96bd90></a>Implementations seem to redraw text decorations and text shadows over the selection background.
617
626
This seems particularly weird if the text decoration color doesn’t match the text.
else the specified <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a>;
629
638
however the UA may adjust the alpha channel if it is opaque.</p>
630
639
631
-
<pclass=issueid=issue-81c4e72d><aclass=self-linkhref=#issue-81c4e72d></a>The wash requirement is a minor update on WebKit’s behavior. Gecko & Opera just use the default selection color for the wash.</p>
So, how do we want <spanclass=css>inherit</span> to behave here?
1052
1059
Should it inherit from the parent <aclass=cssdata-link-type=maybehref=#selectordef-selectiontitle=::selection>::selection</a>
1053
1060
or the <adata-link-type=dfnhref=http://dev.w3.org/csswg/selectors-4/#originating-elementtitle="originating element">originating element</a>?
1054
-
Opera does the former, Gecko/Blink the latter.<ahref=#issue-64a36ad9> ↵ </a></div><divclass=issue>What properties should be included here?
1055
-
Only color and bgcolor seem supported; but text-decoration is needed for spellcheck.<ahref=#issue-c0c29618> ↵ </a></div><divclass=issue>Can we reuse <spanclass=css>currentColor</span> for this, now that it computes to itself?<ahref=#issue-73cb06fc> ↵ </a></div><divclass=issue>Implementations seem to redraw text decorations and text shadows over the selection background.
1061
+
Opera does the former, Gecko/Blink the latter.<ahref=#issue-64a36ad9> ↵ </a></div><divclass=issue>Are there any other properties that should be included here?
1062
+
[Caret-color should be added once we have it.]<ahref=#issue-7be57116> ↵ </a></div><divclass=issue>Only <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-backgrounds-3/#background-colortitle=background-color>background-color</a> are cross-browser.
1063
+
Should any others be required?<ahref=#issue-b0e74d3c> ↵ </a></div><divclass=issue>Can we reuse <spanclass=css>currentColor</span> for this, now that it computes to itself?<ahref=#issue-73cb06fc> ↵ </a></div><divclass=issue>Implementations seem to redraw text decorations and text shadows over the selection background.
1056
1064
This seems particularly weird if the text decoration color doesn’t match the text.
1057
1065
Perhaps the only thing visible should be the text itself (unless the background is transparent)
1058
1066
and any text decorations specified for the selection itself.
1059
1067
(Alternately the decorations should get the color of the selected text,
1060
-
not the unselected text.)<ahref=#issue-8f96bd90> ↵ </a></div><divclass=issue>The wash requirement is a minor update on WebKit’s behavior. Gecko & Opera just use the default selection color for the wash.<ahref=#issue-81c4e72d> ↵ </a></div><divclass=issue>This whole section needs vocabulary cleanup.<ahref=#issue-a5c22c51> ↵ </a></div><divclass=issue>
1068
+
not the unselected text.)<ahref=#issue-8f96bd90> ↵ </a></div><divclass=issue>This whole section needs vocabulary cleanup.<ahref=#issue-a5c22c51> ↵ </a></div><divclass=issue>
0 commit comments