Open Bug 1359615 Opened 7 years ago Updated 2 years ago

stylo: Support multivalued text-align

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

Tracking Status
firefox57 --- wontfix

People

(Reporter: manishearth, Unassigned)

References

Details

We currently parse text-align as a single keyword.

It's possible to specify text-align as two keywords, as long as one of them is `unsafe`. In this case mTextAlignTrue is set to true, and the non-unsafe keyword is set to mTextAlign (in the case of two keywords being unsafe this gets set to unsafe too)

layout.css.text-align-unsafe-value.enabled must be on for this to work


Shouldn't be hard to implement, but probably low priority.

Tests: layout/reftests/text/text-align-unsafe.html
What's the meaning of text-align: unsafe?
https://dxr.mozilla.org/mozilla-central/source/layout/generic/nsLineLayout.cpp#3128

I believe it forces the text to be aligned even if it overflows.
status-firefox57=wontfix unless someone thinks this bug should block 57
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.