OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 @font-face { | |
6 font-family: 'Fractional Test Font'; | |
7 src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAARYA
A8AAAAABkAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABWAAAABwAAAAcaiYUvEdERUYAAAF0A
AAAHQAAACAANgAET1MvMgAAAZQAAABDAAAAVmNnigxjbWFwAAAB2AAAAF0AAAFiBZE3QWN2dCAAAAI4A
AAABAAAAAQAIgHeZ2FzcAAAAjwAAAAIAAAACAAAABBnbHlmAAACRAAAAIIAAADYJD4CvGhlYWQAAALIA
AAALgAAADYFHFlfaGhlYQAAAvgAAAAcAAAAJAwCA+JobXR4AAADFAAAACAAAAAkHH4ARGxvY2EAAAM0A
AAAFAAAABQBBAFUbWF4cAAAA0gAAAAfAAAAIABNADluYW1lAAADaAAAALwAAAFmGiY2bHBvc3QAAAQkA
AAALAAAAERyjlSJd2ViZgAABFAAAAAGAAAABtmyUs4AAAABAAAAAMw9os8AAAAAzvPnvAAAAADO9Iowe
NpjYGRgYOADYgkGEGBiYARCDiBmAfMYAASiADsAAAB42mNgZJ7BOIGBlYGF1Yh1BgMDoxyEZr7GkMYkx
MDAxMDKzAADjAxIICDNNYXBgYFX9Q8Lwx8gn4WBRQOmBgCDkwhaAHjaY2BgYGaAYBkGRgYQiAHyGMF8F
gYHIM3DwMHABGTzMhgxmDBYqP75/x8oystgCOP9//b/8v9L/8/f4oGaAAeMbAxwIUYmqD0oChgwAQsrA
1AbAzvD8AAAUK4RAwAAAAAiAd4AAQAB//8AD3jaXcyxDcIwEIXh/85OnNYlHZagBQkqpJQehYIRGIU17
HlYgZ4iirAjkEyueu990qFE0KsFg+OQhOOYneV1Sn33HLPREkmmzl2ds+tlGrPU/eyD3wcfom7nnTzmm
2UimjsglDiw/GUjwQ9Lf/Mz25hdmTamK5PG5M++V+xiPhPUIhMAAHjaY2BkYGAA4t07ExfE89t8ZZDnY
ACBc1+6DBH0HwYOBhYQl4OBCUQBAEFxCkoAAHjaY2BkYGBh+H2DgYGDAQSAJCMDKuAEADgzAfN42mN6w
+DCAAQsQMy0ioGBA8YGYkYgZn7BwAAAPR4C3QAAACwALAAsACwAOgBIAFYAZABseNpjYGRgYOBk4GBgY
gABEMnIABJzYNADCQAABQgAhwB42nWQyw7BUBCGv2oJGyuxPhFboiVxeQALSxHWJXVJGpKq9/AUHsITs
PNIfu3pQsJi5nwz888lB6iyxcXxajg0wHKJuqKcXWa0LHu0iS2XaXK1XJH6Zvmh/N3ykx4vbUgI2ZBy4
MRRHDMnYsdFFKo6zfJp9ibKRxgCuuo2TGS/JuSVER18WSCtz+CP8nvbUlHC2SqM+j6bfnWupFyrkl9XK
BfsNcvoX8Ks3zDOaoEu8hnK9+VNcdMbFM4ws3jaY2BiwA84gZiRgYmRiUGEQZRBnEGakZm9NC/TwMDAB
UQbmbo5AwAwKgTbAAFSztmxAAA=) format('woff'); | |
8 } | |
9 .shape-inside { | |
10 position: absolute; | |
11 top: 0; | |
12 left:0; | |
13 width: 100px; | |
14 height: 100px; | |
15 color: red; | |
16 font: 0.5em 'Fractional Test Font', serif; | |
17 -webkit-shape-inside: polygon(50px 0px, 100px 100px, 0px 100px); | |
18 } | |
19 .overlay { | |
20 position: absolute; | |
21 top: 0; | |
22 left:0; | |
23 width: 100px; | |
24 height: 100px; | |
25 background-color: green; | |
26 } | |
27 </style> | |
28 </head> | |
29 <body> | |
30 <div class="shape-inside">1111112<br/></div> | |
31 <div class="overlay"></div> | |
32 | |
33 <p style="margin-top: 120px;">There is a triangle shape-inside applied on the gr
een box. | |
34 The content should be inside the shape-inside. You should not see any red.</p> | |
35 <p>Issue <a href="https://code.google.com/p/chromium/issues/detail?id=333423">33
3423</a>: [CSS Shapes] First line gets incorrectly adjusted in shape-inside due
to rounding in some polygons</p> | |
36 </body> | |
37 </html> | |
OLD | NEW |