Closed Bug 1554723 Opened 5 years ago Closed 5 years ago

[Inactive CSS] Make the `vertical-align` warning appear correctly

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(firefox69 verified)

VERIFIED FIXED
Firefox 69
Tracking Status
firefox69 --- verified

People

(Reporter: pbro, Assigned: pbro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 1551812 I added an InactiveCSS warning for misuse of vertical-align. Turns out the way this was done isn't totally correct.
See bug 1551812 comment 4:

vertical-align applies at least to display types like inline-block inline-table and table-row table-row-group table-header-group table-footer-group <tr> <tbody> <thead> <tfoot> (cells default is vertical-align:inherit)

So we should fix it.

Here's an example of it working for inline-flex and inline-grid actually:

data:text/html,<style>.one {display:inline-flex} .two {display:inline-grid;vertical-align:sub;}</style><div class="one">one</div><div class="two">two</div>

Assignee: nobody → pbrosset
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by pbrosset@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/346ed53489fc
Correctly exclude all inline-level elements when warning for misuse of vertical-align r=miker
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69

Confirmed the issue with 68.0a1 (2019-05-15).

Adjusted the TC to confirm the inline-flex part as well:
data:text/html,<style>.one {display:inline-flex; vertical-align:sub;} .two {display:inline-grid;vertical-align:sub;}</style><div class="one">one</div><div class="two">two</div>

Fix confirmed with 69.0b3.

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

Attachment

General

Created:
Updated:
Size: