Diff
diff --git a/docs/cstyle/plugins/inline/index.html b/docs/cstyle/plugins/inline/index.html
index 4eeb246..aab9c82 100644
--- a/docs/cstyle/plugins/inline/index.html
+++ b/docs/cstyle/plugins/inline/index.html
@@ -42 +42 @@
-16 if n.Style[name] != value && !(value == "*") && n.Style[name] != "" {
+16 if (n.Style[name] != value || n.Style[name] == "") && !(value == "*") {
@@ -56,53 +56,55 @@
-30 // xCollect := float32(0)
-31 for i, v := range n.Parent.Children {
-32 // vState := s[v.Properties.Id]
-33 if i > 0 {
-34 if v.Style["position"] != "absolute" {
-35 if v.Properties.Id == n.Properties.Id {
-36 sib := n.Parent.Children[i-1]
-37 sibling := s[sib.Properties.Id]
-38 if sibling.X+sibling.Width+self.Width > ((parent.Width)-parent.Padding.Right)+parent.X {
-39 // Break Node.Id
-40 self.Y = sibling.Y + sibling.Height
-41 self.X = copyOfX
-42 } else {
-43 // Node did not break
-44 if sib.Style["display"] != "inline" {
-45 self.Y = sibling.Y + sibling.Height
-46 } else {
-47 self.Y = sibling.Y
-48 self.X = sibling.X + sibling.Width
-49 }
-50 }
-51 break
-52 }
-53 }
-54 }
-55
-56 }
-57 propagateOffsets(n, copyOfX, copyOfY, self, state)
-58 (*state)[n.Properties.Id] = self
-59 },
-60 }
-61}
-62
-63func propagateOffsets(n *element.Node, copyOfX, copyOfY float32, self element.State, state *map[string]element.State) {
-64 s := *state
-65 for _, v := range n.Children {
-66 vState := s[v.Properties.Id]
-67 vState.X += self.X - copyOfX
-68 vState.Y += self.Y - copyOfY
-69 if len(v.Children) > 0 {
-70 propagateOffsets(&v, copyOfX, copyOfY, self, state)
-71 }
-72 (*state)[v.Properties.Id] = vState
-73 }
-74}
-75
-76func colliderDetection(s1, s2 element.State) bool {
-77 s1Min := s1.Y
-78 s1Max := s1.Y + s1.Height
-79 s2Min := s2.Y
-80 s2Max := s2.Y + s2.Height
-81 return s1Min > s2Min && s1Min < s2Max || s1Max > s2Min && s1Min < s2Max || s2Min > s1Min && s2Min < s1Max || s2Max > s1Min && s2Min < s1Max
-82}
+30 xCollect := float32(0)
+31 for i, v := range n.Parent.Children {
+32 vState := s[v.Properties.Id]
+33 if v.Style["position"] != "absolute" {
+34 if v.Style["display"] != "inline" {
+35 xCollect = 0
+36 } else {
+37 if v.Properties.Id == n.Properties.Id {
+38 if self.X+xCollect+self.Width > ((parent.Width)-parent.Padding.Right)+parent.X+parent.Border.Width && i > 0 {
+39 // Break Node
+40 sibling := s[n.Parent.Children[i-1].Properties.Id]
+41 self.Y += sibling.Height
+42 self.X = copyOfX
+43 } else if i > 0 {
+44 // Node did not break
+45 self.X += xCollect
+46 }
+47 break
+48 } else {
+49 if colliderDetection(vState, self) {
+50 xCollect += vState.Width
+51 } else {
+52 xCollect = vState.Width
+53 self.Y = vState.Y
+54 }
+55 }
+56 }
+57 }
+58 }
+59 propagateOffsets(n, copyOfX, copyOfY, self, state)
+60 (*state)[n.Properties.Id] = self
+61 },
+62 }
+63}
+64
+65func propagateOffsets(n *element.Node, copyOfX, copyOfY float32, self element.State, state *map[string]element.State) {
+66 s := *state
+67 for _, v := range n.Children {
+68 vState := s[v.Properties.Id]
+69 vState.X += self.X - copyOfX
+70 vState.Y += self.Y - copyOfY
+71 if len(v.Children) > 0 {
+72 propagateOffsets(&v, copyOfX, copyOfY, self, state)
+73 }
+74 (*state)[v.Properties.Id] = vState
+75 }
+76}
+77
+78func colliderDetection(s1, s2 element.State) bool {
+79 s1Min := s1.Y
+80 s1Max := s1.Y + s1.Height
+81 s2Min := s2.Y
+82 s2Max := s2.Y + s2.Height
+83 return s1Min > s2Min && s1Min < s2Max || s1Max > s2Min && s1Min < s2Max || s2Min > s1Min && s2Min < s1Max || s2Max > s1Min && s2Min < s1Max
+84}