layout: Make box-sizing only affect explicitly-specified or percentage

sizes, not automatically computed ones.

Improves GitHub significantly.
This commit is contained in:
Patrick Walton 2014-10-08 10:24:04 -07:00
parent 510f8a817f
commit 611c54ce8c
5 changed files with 74 additions and 57 deletions

View file

@ -168,3 +168,4 @@ fragment=top != ../html/acid2.html acid2_ref.html
!= input_height_a.html input_height_ref.html
== pre_ignorable_whitespace_a.html pre_ignorable_whitespace_ref.html
== many_brs_a.html many_brs_ref.html
== box_sizing_sanity_check_a.html box_sizing_sanity_check_ref.html

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div style="box-sizing: border-box; float: left; background: yellow;">Heeheehee</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div style="float: left; background: yellow;">Heeheehee</div>
</body>
</html>