Open
Bug 1356739
Opened 8 years ago
Updated 3 years ago
display:none via CSS variable set in ::first-line produces shrink-to-fit block
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
NEW
People
(Reporter: Oriol, Unassigned)
References
Details
Attachments
(1 file)
|
621 bytes,
text/html
|
Details |
Steps to reproduce:
1. In a block container, set some CSS variable to `block`
2. In its ::first-line pseudo-element, change the variable to `none`
3. Set the `display` property of some first-line descendant to the value of that variable.
Result: The descendant is displayed as a shrink-to-fit block.
Expected result: not obvious, since ::first-line depends on the box tree, and the box tree depends on the display values. So maybe let the descendant behave as if it weren't in the first line, and display it as a block. But don't shrink-to-fit it, that's nonsense.
| Reporter | ||
Comment 1•4 years ago
|
||
This was fixed as a side-effect of bug 1694729. But you may want to add a test or something.
Depends on: 1694729
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•