Closed Bug 1662314 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 25310 - HTML: make sure the default opacity of ::placeholder is 1

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 25310 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/25310
Details from upstream follow.

b'Karl Dubost <karl+github@la-grange.net>' wrote:

HTML: make sure the default opacity of ::placeholder is 1

This test relates to the opacity difference in between Gecko, Blink and WebKit as mentioned by @fvsch

/* Gecko style */
::placeholder {
  color: inherit;
  opacity: 0.54;
}

/* WebKit style */
::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

/* Blink style */
::placeholder {
  color: #757575;
  opacity: 1;
}

See https://github.com/whatwg/html/issues/2561#issuecomment-569920124
and https://codepen.io/webcompat/pen/bWEEJv

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/html/rendering/non-replaced-elements/form-controls/placeholder-opacity-default.tentative.html
Default opacity value is '1': FAIL

New Tests That Don't Pass

/html/rendering/non-replaced-elements/form-controls/placeholder-opacity-default.tentative.html
Default opacity value is '1': FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b9f0335428c [wpt PR 25310] - HTML: make sure the default opacity of ::placeholder is 1, a=testonly https://hg.mozilla.org/integration/autoland/rev/ae9349acc4a1 [wpt PR 25310] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.