Open Bug 1612028 Opened 4 years ago Updated 2 years ago

[css-pseudo] Selectable SVG text (text::selection {fill: green;})

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr68 --- affected
firefox74 --- affected
firefox79 --- affected

People

(Reporter: bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: testcase)

Test:
http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/active-selection-065.html

Expected result:
http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/active-selection-065-ref.html

  • Firefox 74.0a1 buildID=20200128214036 fails this test
  • Chromium 79.0.3945.130 and Epiphany Technological Preview 3.34.0-32-g514d1bfb6 (WebKitGTK 2.26.1) pass this test
  • I searched for duplicate and did not find any
  • Linux Debian 10.2, Kernel 4.19.0-7-amd64 here.

Component could be SVG but I do not think so.

Blocks: css-pseudo-4
Keywords: testcase
Priority: -- → P3

The code style
text::selection {fill: green;}
does not succeed in Firefox 79.0a1 buildID=20200612094620
http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/svg-text-selection-001.html

but the code style
textPath#test::selection {color: green;}
succeeds in Firefox 79.0a1 buildID=20200612094620
http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/textpath-selection.svg

Chromium 80.0.3987.162 gets reverse test results.

I am not an expert in SVG.

Summary: [css-pseudo] Selectable SVG text → [css-pseudo] Selectable SVG text (text::selection {fill: green;})

I think given the current behavior of browsers in HTML, Firefox's behavior is consistent.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.