Re: [csswg-drafts] [css-position-3] Section 3.5.1 Conflicts with CSS2 Positioning Behavior (#11258)

 >this is just for computing the inset-modified containing block
 
What is the expected output for the first example under CSS3 ?

```css
#child {
  position: absolute;
  background-color: red;
  left: 10px;
  width: 100px;
  height: 50px;
  /* Computes to 90px in compliance with CSS 2, Case 6 */
  /* https://drafts.csswg.org/css2/#abs-non-replaced-width */
  right: auto; 
  margin-left: auto;
  margin-right: auto;
}
```

```js
  const element = document.getElementById("child");
  const styles = getComputedStyle(element);
  console.log("Right:", styles.right);
```

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11258#issuecomment-2491825193 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 21 November 2024 17:15:37 UTC