layout: Implement box-sizing: border-box.

Improves GitHub.
This commit is contained in:
Patrick Walton 2014-09-26 12:13:34 -07:00
parent f7d2fb6ff8
commit 885fc1c28b
6 changed files with 139 additions and 70 deletions

View file

@ -1075,6 +1075,12 @@ pub mod longhands {
// FIXME(SimonSapin): Add 'mixed' and 'upright' (needs vertical text support)
// FIXME(SimonSapin): initial (first) value should be 'mixed', when that's implemented
${single_keyword("text-orientation", "sideways sideways-left sideways-right", experimental=True)}
// CSS Basic User Interface Module Level 3
// http://dev.w3.org/csswg/css-ui/
${switch_to_style_struct("Box")}
${single_keyword("box-sizing", "content-box border-box")}
}