Closed Bug 2077936 Opened 1 month ago Closed 1 month ago

background-blend-mode: plus-lighter is not supported

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 157
defect

Tracking

()

RESOLVED DUPLICATE of bug 2072718

People

(Reporter: takutoyakke, Unassigned)

Details

Steps to reproduce

Open the page below and look at the box and the console output.

<!DOCTYPE html>
<style>
  .t {
    width: 200px;
    height: 100px;
    background:
      linear-gradient(rgb(50% 0% 0%), rgb(50% 0% 0%)),
      linear-gradient(rgb(50% 0% 0%), rgb(50% 0% 0%));
    background-blend-mode: plus-lighter;
  }
</style>
<div class="t"></div>
<script>
  console.log(CSS.supports("background-blend-mode", "plus-lighter"));
  console.log(CSS.supports("mix-blend-mode", "plus-lighter"));
</script>

Actual results

The declaration is rejected. CSS.supports("background-blend-mode", "plus-lighter") returns false, while CSS.supports("mix-blend-mode", "plus-lighter") returns true. The box renders the normal composite (50% red).

Expected results

The box renders pure red (the two 50% red layers add up), and CSS.supports("background-blend-mode", "plus-lighter") returns true.

Spec:
Compositing Level 2 defines background-blend-mode as <'mix-blend-mode'>#, and mix-blend-mode includes plus-lighter. The PR that added plus-lighter (w3c/fxtf-drafts#444) was explicitly titled "Add plus-lighter to mix-blend-mode and background-blend-mode".

Test:
WPT css/compositing/background-blending/background-blend-mode-plus-lighter.html fails.

See also: bug 1746248, which added plus-lighter for mix-blend-mode only.

Discussion: w3c/csswg-drafts#14297

This was fixed in bug 2072718.

Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Duplicate of bug: 2072718
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.