mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fully implement the "align descendants" rule for div.
This adds -servo-left and -servo-right to complement -servo-center. This intentionally doesn't try to address issue #7301.
This commit is contained in:
parent
0c64e4a2c9
commit
69ca066802
8 changed files with 193 additions and 22 deletions
|
@ -7,12 +7,9 @@ https://html.spec.whatwg.org/multipage/#presentational-hints
|
|||
|
||||
pre[wrap] { white-space: pre-wrap; }
|
||||
|
||||
/*
|
||||
FIXME: also "align descendants"
|
||||
https://html.spec.whatwg.org/multipage/#align-descendants
|
||||
*/
|
||||
div[align=left i] { text-align: left; }
|
||||
div[align=right i] { text-align: right; }
|
||||
div[align=left i] { text-align: -servo-left; }
|
||||
div[align=right i] { text-align: -servo-right; }
|
||||
div[align=center i], div[align=middle i] { text-align: -servo-center; }
|
||||
div[align=justify i] { text-align: justify; }
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue