Closed Bug 1570172 Opened 5 years ago Closed 5 years ago

:target {outline: ...} fails on display:table elements with padding

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 1567108

People

(Reporter: moz, Unassigned)

References

()

Details

Attachments

(2 files)

expected:
red dashed outline around the box near bottom

actual result:
no red outline
red outline appears after reload (F5)

Works in other browsers (tested Safari, Chromium, IE11)

Seems a problem with :target { outline: } styling of a
display: table element with padding.
Reduced testcase coming.

Attached file reduced testcase (deleted) —
Attached file testcase2 (more generic) (deleted) —

This is not a problem with the :target selector, see testcase2.
Can't add an outline to <div style="display:table; padding:5px"> by script.

Should work on Nightly, this is bug 1567108.

Let me know if it doesn't work for you and reopen the bug / ni? me if so so I can take a look, thanks!

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)

Should work on Nightly, this is bug 1567108.

Confirmed, works on Nightly (thought I tested with)

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: