- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 31 Jan 2012 14:56:02 -0500
- To: www-style@w3.org
On 1/31/12 2:41 PM, Brian Manthos wrote: > The latter, they both should have the full complement of most atomic all the way up... > - border-top-width, border-right-width, border-bottom-width, border-left-width > - border-top-style, border-right-style, border-bottom-style, border-left-style > - border-top-color, border-right-color, border-bottom-color, border-left-color > - border-width > - border-style > - border-color > - border Have in what sense? What if the style were: <span style="border: 7px dashed red; border-right-color: green"> What should happen then? >> Given this example :<div style="border-width: 1px 2px 3px >> 4px;"></div>. What would be the length of the style for the div? >> >> - 4 ? (border-top-width, border-right-width, border-bottom-width, >> border-left-width) >> - 5 ? (border-top-width, border-right-width, border-bottom-width, >> border-left-width, border-width) > > I believe the length should be 5. > > border-top-width: 1px; > border-right-width: 2px; > border-bottom-width: 3px; > border-left-width: 4px; > border-width: 1px 2px 3px 4px; If the style were: <div style="border-top-width: 1px; border-right-width: 2px; border-bottom-width: 3px; border-left-width: 4px"> should the length still be 5? Why or why not? Note that .cssText on that div will return "border-width: 1px 2px 3px 4px" in some UAs and the expanded version in others, but UAs tend to have the shorthand and longhand form return the _same_ thing for .cssText. -Boris
Received on Tuesday, 31 January 2012 19:56:30 UTC